Lost of the policy.json and registries.conf file after reinstall podman
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| golang-github-containers-common (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
| golang-github-containers-image (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
| libpod (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bug Description
In oracular, fresh install of podman provides `libpod.conf networks/ policy.json registries.conf registries.conf.d/ systemd/` under /etc/containers/
But if you remove the podman with `sudo apt purge podna && sudo apt autoremove` (with container folder removed) then reinstall the podman back, it now only has `libpod.conf networks/ registries.conf.d/ systemd/` which causes problem to resolve the short name
ProblemType: Bug
DistroRelease: Ubuntu 24.10
Package: podman 5.0.3+ds1-5ubuntu1
ProcVersionSign
Uname: Linux 6.11.0-9-generic x86_64
ApportVersion: 2.30.0-0ubuntu4
Architecture: amd64
CasperMD5CheckM
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Mon Oct 28 18:01:13 2024
InstallationDate: Installed on 2024-09-29 (29 days ago)
InstallationMedia: Ubuntu 24.10 "Oracular Oriole" - Beta amd64 (20240919)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
SourcePackage: libpod
UpgradeStatus: No upgrade log present (probably fresh install)
| no longer affects: | ubuntu |

Solution:
sudo apt purge golang- github- containers*
then rm the conffile
sudo rm -r /etc/containers
sudo apt install podman
Creata and edit the file /etc/subuid and /etc/subgid ( replace the username with current user) :
/etc/subuid
username: 100000: 65536
/etc/subgid
username: 100000: 65536
The run `podman system migrate`