Distrobox-enter fails for cooker image

Hello,

Requirements:

I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the the Release Notes and Errata

OpenMandriva Lx version:

NAME="OpenMandriva Lx"
VERSION="25.06 (ROME) Rolling"
ID="openmandriva"
VERSION_ID="25.06"
PRETTY_NAME="OpenMandriva Lx 25.06 (ROME) Rolling"
BUILD_ID="20250605.11"
VERSION_CODENAME="rome"
ANSI_COLOR="1;43"
LOGO="openmandriva"
CPE_NAME="cpe:/o:openmandriva:openmandriva_lx:25.06"
HOME_URL="http://openmandriva.org/"
BUG_REPORT_URL="https://github.com/OpenMandrivaAssociation/distribution/issues/"
SUPPORT_URL="https://forum.openmandriva.org"
PRIVACY_POLICY_URL="https://www.openmandriva.org/tos"

Desktop environment (KDE, LXQT…):
KDE Plasma6 on x11

Description of the issue (screenshots if relevant):
I am trying to run cooker as a container using distrobox. I am unable to enter the container. The command distrobox enter cooker (where ‘cooker’ is name of my container) fails with below message (I am attaching what I think as relevant (?) information but if full log of distrobox enter -v cooker is required, I can attach).

++ dnf list -q bash bash-completion bc bzip2 cracklib-dicts curl diffutils dnf-plugins-core findutils glibc-all-langpacks glibc-common glibc-locale-source gnupg2 gnupg2-smime hostname iproute iputils keyutils krb5-libs less lsof man-db man-pages mtr ncurses nss-mdns openssh-clients pam passwd pigz pinentry procps-ng rsync shadow-utils sudo tcpdump time traceroute tree tzdata unzip util-linux vte-profile wget which whois words xorg-x11-xauth xz zip mesa-dri-drivers mesa-vulkan-drivers vulkan
++ grep x86_64
+ dnf install --allowerasing -y bash.x86_64 findutils.x86_64 pam.x86_64 pigz.x86_64 unzip.x86_64 xz.x86_64 bash.x86_64 bash.x86_64 bash-completion.noarch bash-completion.noarch bc.x86_64 bc.x86_64 bzip2.x86_64 bzip2.x86_64 cracklib-dicts.x86_64 cracklib-dicts.x86_64 curl.x86_64 curl.x86_64 diffutils.x86_64 diffutils.x86_64 dnf-plugins-core.noarch dnf-plugins-core.noarch hostname.x86_64 hostname.x86_64 iputils.x86_64 iputils.x86_64 keyutils.x86_64 keyutils.x86_64 less.x86_64 less.x86_64 lsof.x86_64 lsof.x86_64 man-db.x86_64 man-db.x86_64 man-pages.noarch man-pages.noarch ncurses.x86_64 ncurses.x86_64 openssh-clients.x86_64 openssh-clients.x86_64 passwd.x86_64 passwd.x86_64 pinentry.x86_64 pinentry.x86_64 procps-ng.x86_64 procps-ng.x86_64 rsync.x86_64 rsync.x86_64 sudo.x86_64 sudo.x86_64 tcpdump.x86_64 tcpdump.x86_64 time.x86_64 time.x86_64 traceroute.x86_64 traceroute.x86_64 tree.x86_64 tree.x86_64 util-linux.x86_64 util-linux.x86_64 wget.x86_64 wget.x86_64 which.x86_64 which.x86_64 whois.x86_64 whois.x86_64 words.noarch words.noarch zip.x86_64 zip.x86_64
Updating and loading repositories:
Repositories loaded.
Failed to resolve the transaction:
Package "bash-5.2.37-1.x86_64" is already installed.
Package "findutils-4.10.0-1.x86_64" is already installed.
Package "pam-1:1.6.1-1.x86_64" is already installed.
Package "pigz-2.8-1.x86_64" is already installed.
Package "unzip-6.00-3.x86_64" is already installed.
Package "xz-5.8.1-1.x86_64" is already installed.
Package "bash-5.2.37-1.x86_64" is already installed.
Package "bash-5.2.37-1.x86_64" is already installed.
Problem: conflicting requests
  - package util-linux-2.41.1-1.x86_64 from cooker-x86_64 requires shadow >= 4.2.1-24, but none of the providers can be installed
  - package util-linux-2.41.1-1.x86_64 from openmandriva-x86_64 requires shadow >= 4.2.1-24, but none of the providers can be installed
  - installed package shadow-4.17.4-1.x86_64 obsoletes passwd < 0.80-6 provided by passwd-0.80-5.x86_64 from openmandriva-x86_64
  - package shadow-4.18.0-1.x86_64 from cooker-x86_64 obsoletes passwd < 0.80-6 provided by passwd-0.80-5.x86_64 from openmandriva-x86_64
  - package shadow-4.18.0-1.x86_64 from openmandriva-x86_64 obsoletes passwd < 0.80-6 provided by passwd-0.80-5.x86_64 from openmandriva-x86_64
  - installed package shadow-4.17.4-1.x86_64 obsoletes passwd < 0.80-6 provided by passwd-0.80-5.x86_64 from cooker-x86_64
  - package shadow-4.18.0-1.x86_64 from cooker-x86_64 obsoletes passwd < 0.80-6 provided by passwd-0.80-5.x86_64 from cooker-x86_64
  - package shadow-4.18.0-1.x86_64 from openmandriva-x86_64 obsoletes passwd < 0.80-6 provided by passwd-0.80-5.x86_64 from cooker-x86_64
You can try to add to command line:
  --skip-broken to skip uninstallable packages
+ '[' 1 -ne 0 ']'
+ printf 'Error: An error occurred\n'
Error: An error occurred

I guess the cooker image is not very frequently updated. The image available on the docker hub is 4 months old.

Is there anything I can try to fix the issue or an updated image is the only solution? If it is the latter, is there any chance the image will be updated?

I do run cooker on my newish windows laptop on virtual machine but on my main laptop which is old (RAM is limited), the experience of running a full-blown VM is not good. So, was trying to run it as a container. There is no lxc template for openmandriva, so I was looking at a distrobox solution.

OK, I managed to ‘fix’ the issue, albeit in a ridonculous way :nerd_face:. I made followed changes to the /usr/bin/distrobox-init file.

  • removed ‘passwd’ from list of packages to be installed (for ‘dnf’ package-manager).
  • commented-out the following lines because it was failing trying to install glibc-common.
        # In case the locale is not available, install it
        # will ensure we don't fallback to C.UTF-8
#       if [ ! -e /usr/share/i18n/charmaps ]; then
#               ${manager} reinstall -y glibc-common
#       fi

After this, I ran the distrobox-enter cooker command and this time was able to enter the container.

📦[sv@cooker sv]$ cat /etc/os-release
NAME="OpenMandriva Lx"
VERSION="25.90 (Nickel) Cooker"
ID="openmandriva"
VERSION_ID="25.90"
PRETTY_NAME="OpenMandriva Lx 25.90 (Nickel) Cooker"
BUILD_ID="20250419.15"
VERSION_CODENAME="nickel"
ANSI_COLOR="1;43"
LOGO="openmandriva"
CPE_NAME="cpe:/o:openmandriva:openmandriva_lx:25.90"
HOME_URL="http://openmandriva.org/"
BUG_REPORT_URL="https://github.com/OpenMandrivaAssociation/distribution/issues/"
SUPPORT_URL="https://forum.openmandriva.org"
PRIVACY_POLICY_URL="https://www.openmandriva.org/tos"

I ran the distro-sync command and the initial upgrade went well without any issue.

I know it is not a ‘solution’ but as it allows me to work with cooker container, I can live with this workaround! :sunglasses:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.