Install podman 4.6 on Pop!_OS 22.04 LTS

Installing podman 4.6 on Pop!_OS/Ubuntu 22.04 using third party package repository

Warning

This article includes instructions for adding a third party package repository marked as unstable. Make sure that you check that this complies with your security and operational requirements before following these instructions.

I’m not the maintainer of the kubic repo and I’ve only investigated it enough to trust it for my own personal work.

The latest version of Pop!_OS is, at the time of writing, 22.04 which is based of Ubuntu 22.04. Although podman is available in Ubuntu 22.04, it is only version 3.4.4.

There is a third party package repository that has unstable builds, not for production, of podman version 4.6.2 at https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:

Links to repository was part of the official podman documentation before podman was included in upstream Ubuntu.

First you need to remove podman 3.4.4 and accompanying packages, if you have them installed.

1
2
apt remove golang-github-containers-common containers-common \
  buildah skopeo containers-common podman golang-github-containers-image

You can now install podman 4.6.2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#!/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 golang-github-containernetworking-plugin-dnsname