31

Ubuntu 22.04 only has Podman 3.4.4 in its repos and the former PPA for latest Podman was discontinued for 22.04

Kubic packages have been discontinued for Ubuntu 22.04 LTS. Current users of the Kubic repos for Ubuntu are highly recommended to uninstall the packages from the Kubic repos before upgrading to Ubuntu 22.04 LTS.

Therefore I would love to know how to get the current Podman version installed on Ubuntu 22.04 in a sane manner that allows getting updates without having to check and install a binary manually.

Artur Meinild
  • 31,035

3 Answers3

16

The manual instructions at the moment use a wrong url for the repo key. The following gives you podman version 4.3.1:

  • Run this script as root:
#!/bin/sh

ubuntu_version='22.04' key_url="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/Release.key" sources_url="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}"

echo "deb $sources_url/ /" | tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list curl -fsSL $key_url | gpg --dearmor | tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_unstable.gpg > /dev/null apt update apt install podman

  • Podman v4 is also available in the Ubuntu 23.10 repos
1

You can't install, the recommended version is 3.4

https://podman.io/blogs/2022/04/05/ubuntu-2204-lts-kubic.html

The package versions available currently are: Podman 3.4, Buildah 1.23 and Skopeo 1.4.

There won’t be any further updates to the Kubic repos as far as Podman, Buildah and Skopeo are concerned, so users are recommended to use the default repos on 22.04 LTS.

But you can "Build from Scratch" per:

https://podman.io/getting-started/installation.html#building-from-scratch

There are good instructions specifically for each OS to install dependencies, build dependencies from scratch and build Podman 4 (no point reproducing it all here as its maintained there)

Kickaha
  • 159
  • 1
  • 10
1

Suggestions from https://github.com/containers/podman/issues/14065 include

I installed from brew and I'm happy with the result.

user7610
  • 173