I’m running Fedora 41 in a distrobox on a Debian host. Permission is being denied for any kind of operation involving rpm: sudo rpm --import [package]
returns sudo: rpm: command not found
There is an opinion that upgrading container images is not recommended. I don’t think it’s a big issue, as long as we accept the limitations, one of them being that post-install scripts often result in errors.
Regarging the rpm issue, I’m using a Fedora 41 image in Toolbx, not Distrobox, and don’t have such issues. Does reinstalling the rpm package via dnf work?
I could try to replicate in my fedora-toolbox-41 container. Can you give me an example of an install command that resulted in the above error?
Are you installing packages from the repos with dnf, or local packages with rpm? Are you receiving that error for simple package installations, e.g. sudo dnf install task as well?
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo > /dev/null
as for the post install scripts like with the mesa-amdgpu-va-drivers that was just a regular update
sudo dnf update --refresh
Edit: I tested it and I can install local rpm packages.
Installations worked without errors as long as they didn’t have post install scripts before you advised to reinstall rpm. Just to make sure I’ve installed task using the command you suggested and it installed without any errors.