無法在arm64架構上安裝podman

無法在arm64架構上安裝podman

我發現這個頁面說 podman 的arm64版本 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 檔案:Hit:10https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04

(沒錯,就是一個普通的URL,你可以在瀏覽器中開啟它。)

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 的預發布測試。歡迎幫忙測試一下。

相關內容