Closed 0xADD1E closed 4 years ago
Hello @0xADD1E
Try this
sudo dnf upgrade --refresh rpm glibc
sudo rm /var/lib/rpm/.rpm.lock
sudo dnf upgrade dnf
Regards
Thanks! That resolves that issue!
# dnf upgrade --refresh rpm glibc
...
Dependencies resolved.
Nothing to do.
Complete!
# rm /var/lib/rpm/.rpm.lock
# dnf upgrade dnf
...
Dependencies resolved.
Nothing to do.
Complete!
And then, attempting to install a new package succeeds. Was it really just the lockfile? or did the dnf commands do something that they're not mentioning?
If the former, do you think there's a case for this being an upstream issue with rpm's error messages?
In either case, thank you for your help!
Just for reference, I just encountered this same issue. Had not had issue since I installed FedoraRemix on this PC in Oct 2019. I updated my PC to 2004, upgraded to release 32, and issue began. Not sure exactly what caused it, but the same resolution fixed it.
This error is really erratic, this happened to me once. We don't know how to reproduce it or which is the cause. We create a script called upgrade.sh that takes care of it. Just run it every time that you want to call dnf update or very time when you see this error.
Regards
Following only @crramirez 's suggestion, still have the following (on CentOS Linux release 8.5.2111)
RPM: error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
RPM: error: cannot open Packages index using db5 - (-30969)
RPM: error: cannot open Packages database in /var/lib/rpm
but then after that, having run sudo rpmdb --rebuilddb
it seems to work.
rpmdb --rebuilddb
worked for me too, thanks! I didn't have to use sudo
since I was already running as root
Describe the bug When attempting to install a package:
To Reproduce
Unknown. I haven't been doing anything abnormal, so far as I know.
I also encountered this when attempting to upgrade from 30 to 31, but I opted to fix that by completely reinstalling the application. I would really rather not do that here.
Basic Troubleshooting Checklist
What other troubleshooting have you attempted?
WLinux Version
1.31.5.0
Windows Build
10.0.18362