我发现这个页面说 arm64 版本的 podman https://launchpad.net/~projectatomic/+archive/ubuntu/ppa/+build/16688612
所以我在https://podman.io/getting-started/installation.html上按照 ubuntu 下的步骤进行操作, 即
. /etc/os-release
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add -
sudo apt-get update
的记录apt-get update
Hit:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Hit:2 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB]
Hit:4 http://repo.linaro.org/ubuntu/linaro-overlay stretch InRelease
Get:5 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease [74.6 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88.7 kB]
Hit:7 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:9 https://repos.influxdata.com/ubuntu bionic InRelease
Hit:10 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04 InRelease
Hit:11 https://deb.nodesource.com/node_10.x bionic InRelease
Hit:8 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
Hit:12 http://apt.radxa.com/bionic bionic InRelease
Get:13 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 DEP-11 Metadata [289 kB]
Get:14 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 DEP-11 Metadata [280 kB]
Get:15 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe arm64 DEP-11 Metadata [9284 B]
Get:16 http://ports.ubuntu.com/ubuntu-ports bionic-security/main arm64 DEP-11 Metadata [42.7 kB]
Get:17 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe arm64 DEP-11 Metadata [50.9 kB]
Fetched 925 kB in 5s (173 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
之后我尝试升级。
sudo apt-get -y upgrade
sudo apt-get -y install podman
但我不断收到未找到的包裹
$ sudo apt -y install podman
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package podman
请帮助在 arm64 上安装 podman
这是您添加的源中的 Packages 文件:Hit:10 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04
(没错,就是一个普通的网址,可以在浏览器中打开。)
坏消息:请注意,“架构:”字段只有“amd64”,而不是“arm64”或“armhf”。这个来源不会为你做任何事情。去掉它。
现在是好消息:
用于 arm64 和 armhf 的 Podman 已添加到正常的 Ubuntu 存储库中。它目前处于 20.10 的预发布测试中。随时帮助测试它。