32

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,385

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
  • Because Ubuntu podman has version 100:3.4.2-5 I had to install the specific version I wanted, eg apt install podman=4:4.3.1-0ubuntu22.04+obs65.14 to use these packages – Geoff Williams Jan 17 '23 at 07:19
  • Podman 3.4 has number of problems. Running the above update into 4.4 fixes all I had on Ubuntu 22 LTS. – Jari Turkia Mar 07 '23 at 16:47
  • It worked for me now in Proxmox-7.3-3/lxc-5.0.0/ubuntu-22.04/podman-4.5.0 with podman run -dt -p 8080:80/tcp docker.io/library/httpd: It works! – Jako Apr 16 '23 at 08:13
  • Is the kubic repo still the recommended way of getting the latest (or at least newer) version of Podman on Ubuntu 22.04? – cjt Dec 18 '23 at 11:56
  • @cjt - another option is to upgrade to Ubuntu 23.10 which has podman 4.3.1 & some new security features for unprivileged user namespaces – Stuart Cardall Dec 19 '23 at 12:08
  • 2
    I don't think it's very responsible to tell people to install from a repo without adding any information about who maintains it -- who maintains devel:/kubic:/libcontainers:/? The podman developers or is it a community effort? Why are builds only available under unstable? I really think this answer needs to be amended to make people understand what they are actually doing and to what extent they can expect it to work in the future -- this is an entirely unsupported third party repo from what I can see. – pzkpfw Feb 26 '24 at 10:08
  • @pzkpfw - the Kubic project was an opensuse funded project (now superceded by MicroOS) - I added a note about podman v4 in the Ubuntu repos – Stuart Cardall Feb 26 '24 at 20:42
  • The manual install instructions linked in the answer now work well as they are, and I've just installed podman 4.6.2 – Guss May 23 '24 at 11:07
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
    Well, I know that there's now official PPA any more (I explicitly mentioned this in my post) and I also know that I can build it from scratch (I explicitly mentioned that manually maintaining a binary is not the solution). – alexanderadam Aug 14 '22 at 07:11
  • Yea, and I'm still trying to install from scratch. Currently stuck on cni plugins installation... but I'm out of time. My options now are stick with 3.4 from the PPA or wipe my OS and install Fedora. ... Like me, or others in this situation you're probably SOL, For now unless you or I develop the package we're lookong for this is the answer sorry ... can't help any more. – Kickaha Aug 14 '22 at 13:31
  • 1
    There is a repo that is not intended for production use https://github.com/containers/podman/issues/14302#issuecomment-1192617223 . Quote: This repo gets the latest upstream podman and other packages soon after upstream release. – Erik Sjölund Aug 26 '22 at 13:27
  • It's an old post, so i wonder is this still the case, that you can only install podman version 3.4.4 through apt install? Were there any changes recently? The latest podman version is now 5.5.2 – lewis4u Jul 09 '25 at 10:44
1

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

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

user7610
  • 173
  • 1
  • 8