Skip to content

Instantly share code, notes, and snippets.

@leiless
Last active July 11, 2024 10:35
Show Gist options
  • Save leiless/43233485a45c5bc0203292a1c3d00418 to your computer and use it in GitHub Desktop.
Save leiless/43233485a45c5bc0203292a1c3d00418 to your computer and use it in GitHub Desktop.
HOWTO install podman in Armbian Ubuntu
# 1. Install podman
# https://podman.io/getting-started/installation#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
sudo apt-get -y upgrade
sudo apt-get -y install podman
# 2. Install missing dependencies
sudo apt-get install -y uidmap fuse-overlayfs slirp4netns
# 3. Install cni-plugins
# https://github.com/containernetworking/plugins/releases
# Or sudo apt-get install -y containernetworking-plugins
sudo mkdir -p /usr/local/lib/cni
sudo tar xf cni-plugins-linux-arm64-v1.0.1.tgz -C /usr/local/lib/cni
ls -l /usr/local/lib/cni
# 4. Make an alias
sudo ln -s "$(which podman)" "$(dirname "$(which podman)")/docker"
@leiless
Copy link
Author

leiless commented May 19, 2022

Sometimes when you met the SHASUM hash mismatch, you would like to download the deb directly.

Get:20 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04  podman 100:3.4.2-1 [17.7 MB]
Err:20 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04  podman 100:3.4.2-1 
  File has unexpected size (17679080 != 17706544). Mirror sync in progress? [IP: 130.236.254.253 443]
  Hashes of expected file:
   - SHA256:4eb9b58413f602cf18ec21a742acd99ae10e71df467e7b9a63c3b1f7e8229f16
   - SHA1:cf1fefe5c85321fe9b562339a79494c9eda9dd60 [weak]
   - MD5Sum:58fa232055dff2700aa55e13c7932536 [weak]
   - Filesize:17706544 [weak]
...
E: Failed to fetch https://ftp.lysator.liu.se/pub/opensuse/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/amd64/podman_3.4.2-1_amd64.deb  File has unexpected size (17679080 != 17706544). Mirror sync in progress? [IP: 130.236.254.253 443]
   Hashes of expected file:
    - SHA256:4eb9b58413f602cf18ec21a742acd99ae10e71df467e7b9a63c3b1f7e8229f16
    - SHA1:cf1fefe5c85321fe9b562339a79494c9eda9dd60 [weak]
    - MD5Sum:58fa232055dff2700aa55e13c7932536 [weak]
    - Filesize:17706544 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Like:
https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/amd64/podman_3.4.2-1_amd64.deb.mirrorlist
Download from original source(not from the mirror): https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/amd64/podman_3.4.2-1_amd64.deb

curl -LO https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/amd64/podman_3.4.2-1_amd64.deb
sudo apt install -y ./podman_3.4.2-1_amd64.deb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment