无法在 arm64 架构上安装 podman

无法在 arm64 架构上安装 podman

我发现这个页面说的是 arm64 版本的 podman https://launchpad.net/~projectatomic/+archive/ubuntu/ppa/+build/16688612

所以我按照 ubuntu 下的步骤进行操作https://podman.io/getting-started/installation.html IE

. /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

答案1

这是您添加的源中的 Packages 文件:点击数:10https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04

(没错,这是一个普通的网址,你可以在浏览器中打开它。)

Package: podman
Version: 2.0.4~1
Architecture: amd64
Maintainer: Lokesh Mandvekar <[email protected]>
Installed-Size: 73417
Depends: libseccomp2, libdevmapper1.02.1, libgpgme11, catatonit, conmon (>= 2.0.18~1), containers-common (>= 1.0.0~2), containernetworking-plugins (>= 0.8.6~1), runc | cri-o-runc, iptables, podman-plugins
Recommends: crun, slirp4netns, uidmap, varlink
Conflicts: podman-rootless
Filename: ./amd64/podman_2.0.4~1_amd64.deb
Size: 18709272
MD5sum: de24c24e4a2d990f244d41326e4afbce
SHA1: 22a610027770313e290f34a18f43a31b0f377810
SHA256: 7b7a579b4c77a6adde51235a6c77a3431d10323b4dd7378e52edf499bc709b27
Section: devel
Priority: optional
Homepage: https://github.com/containers/libpod.git
Description: Manage pods, containers and container images.

坏消息:请注意,“Architecture:”字段只有“amd64”,而不是“arm64”或“armhf”。此源不会为您做任何事情。将其删除。

现在来看看好消息:

$ rmadison podman
 podman | 2.0.4+dfsg2-1ubuntu1 | groovy/universe | amd64, arm64, armhf, ppc64el, riscv64, s390x

适用于 arm64 和 armhf 的 Podman 已添加到常规 Ubuntu 存储库中。它目前正在进行 20.10 的预发布测试。欢迎随时帮助测试它。

相关内容