20

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
  • 21,605
  • 21
  • 56
  • 89
alexanderadam
  • 909
  • 1
  • 8
  • 23
  • 1
    It looks like [Ubuntu 22.10 ships with Podman 3.4.4](https://packages.ubuntu.com/kinetic/admin/podman) as well, so that does not appear to be a way to get podman v 4 either. – jeffmcc Feb 07 '23 at 00:45

2 Answers2

9

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

Stuart Cardall
  • 329
  • 2
  • 7
  • 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
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
  • 10
  • 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