Comments (31)
Run this
sudo dnf upgrade --refresh rpm glibc
sudo rm /var/lib/rpm/.rpm.lock
sudo dnf upgrade dnf
And try again.
From: #46 (comment)
from fedora-remix-for-wsl.
The above just hung for me and didn't do anything.
I found https://github.com/WhitewaterFoundry/Pengwin-Enterprise/issues/20 and followed:
sudo -s
cd /var/lib/rpm
rpm --rebuilddb
dd if=/dev/zero of=__db.001 bs=1M count=1
dd if=/dev/zero of=__db.002 bs=1M count=1
dd if=/dev/zero of=__db.003 bs=1M count=1
rpm -qa rpm
yum install vim
Which seems to have fixed the issue now.
Thankyou for your help.
from fedora-remix-for-wsl.
In my case it was enough to simply delete the lock file
sudo rm /var/lib/rpm/.rpm.lock
from fedora-remix-for-wsl.
sudo dnf upgrade --refresh rpm glibc
sudo rm /var/lib/rpm/.rpm.lock
sudo dnf upgrade dnf
Same issue, this worked for me.
from fedora-remix-for-wsl.
The above just hung for me and didn't do anything.
I found https://github.com/WhitewaterFoundry/Pengwin-Enterprise/issues/20 and followed:
sudo -s
cd /var/lib/rpm
rpm --rebuilddb
dd if=/dev/zero of=__db.001 bs=1M count=1
dd if=/dev/zero of=__db.002 bs=1M count=1
dd if=/dev/zero of=__db.003 bs=1M count=1
rpm -qa rpm
yum install vimWhich seems to have fixed the issue now.
Thankyou for your help.
cd /var/lib/rpm
dd if=/dev/zero of=__db.001 bs=1M count=1
dd if=/dev/zero of=__db.002 bs=1M count=1
dd if=/dev/zero of=__db.003 bs=1M count=1
this worked for me.
from fedora-remix-for-wsl.
The above just hung for me and didn't do anything.
I found https://github.com/WhitewaterFoundry/Pengwin-Enterprise/issues/20 and followed:
sudo -s
cd /var/lib/rpm
rpm --rebuilddb
dd if=/dev/zero of=__db.001 bs=1M count=1
dd if=/dev/zero of=__db.002 bs=1M count=1
dd if=/dev/zero of=__db.003 bs=1M count=1
rpm -qa rpm
yum install vim
Which seems to have fixed the issue now.
Thankyou for your help.cd /var/lib/rpm dd if=/dev/zero of=__db.001 bs=1M count=1 dd if=/dev/zero of=__db.002 bs=1M count=1 dd if=/dev/zero of=__db.003 bs=1M count=1
this worked for me.
I tried this and it didn't fix my issue:
sudo dnf upgrade --refresh rpm glibc
sudo rm /var/lib/rpm/.rpm.lock
sudo dnf upgrade dnf
I'm not a fan of sudo -s so I tried this and it worked:
cd /var/lib/rpm/
sudo rpm --rebuilddb
sudo rpm -qa rpm
I didn't need to use dd to zero out __db.xxx files. I would have tried that next if I still had issues.
from fedora-remix-for-wsl.
simply, this worked in my case [windows WSL fedora 31]
In my case it was enough to simply delete the lock file
sudo rm /var/lib/rpm/.rpm.lock
from fedora-remix-for-wsl.
In my case, it was useful for installing libcanberrra in RHEL8
cd /var/lib/rpm
rpm --rebuilddb
rpm -qa rpm
yum install -y
libcanberra-gtk*
Result:
Installed:
libcanberra-gtk2-0.30-16.el8.x86_64
Complete!
PROBLEM BEFORE
yum
install -y libcanberra-gtk
Result:
Running transaction
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
from fedora-remix-for-wsl.
I just had this problem and rm -f /var/lib/rpm/__db*
fixed it at once.
from fedora-remix-for-wsl.
@crramirez's solution worked for me too, even if the two dnf commands said "nothing to do" haha.
from fedora-remix-for-wsl.
Just removing the lock file worked for me, as well.
from fedora-remix-for-wsl.
rpm -qa rpm
In my case, it was useful for installing libcanberrra in RHEL8
cd /var/lib/rpm
rpm --rebuilddb
rpm -qa rpm
yum install -y
libcanberra-gtk*
Result:
Installed:
libcanberra-gtk2-0.30-16.el8.x86_64
Complete!PROBLEM BEFORE
yum
install -y libcanberra-gtk
Result:
Running transaction
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
works for me !!! RHEL8
from fedora-remix-for-wsl.
I can't comment on the store version, but @Thorfin's resolution worked for me in 1.30.1.0 that I downloaded from here.
from fedora-remix-for-wsl.
After installing many packages just fine this error randomly occurred when trying to dnf install cmake ninja-build
. After removing the lock file and cleaning packages with sudo dnf clean packages
I was able to successfully install the packages.
from fedora-remix-for-wsl.
The above just hung for me and didn't do anything.
I found https://github.com/WhitewaterFoundry/Pengwin-Enterprise/issues/20 and followed:
sudo -s
cd /var/lib/rpm
rpm --rebuilddb
dd if=/dev/zero of=__db.001 bs=1M count=1
dd if=/dev/zero of=__db.002 bs=1M count=1
dd if=/dev/zero of=__db.003 bs=1M count=1
rpm -qa rpm
yum install vim
Which seems to have fixed the issue now.
Thankyou for your help.cd /var/lib/rpm dd if=/dev/zero of=__db.001 bs=1M count=1 dd if=/dev/zero of=__db.002 bs=1M count=1 dd if=/dev/zero of=__db.003 bs=1M count=1
this worked for me.
I tried this and it didn't fix my issue:
sudo dnf upgrade --refresh rpm glibc sudo rm /var/lib/rpm/.rpm.lock sudo dnf upgrade dnf
I'm not a fan of sudo -s so I tried this and it worked:
cd /var/lib/rpm/ sudo rpm --rebuilddb sudo rpm -qa rpm
I didn't need to use dd to zero out __db.xxx files. I would have tried that next if I still had issues.
Hello @BlackthornYugen
Are you using Fedora Remix 33? or 32?
Regards
from fedora-remix-for-wsl.
Hello @BlackthornYugen
Are you using Fedora Remix 33? or 32?
Regards@crramirez oops... I'm running Centos 8 Stream. This page turned up in a google search for my issue. I didn't even notice it was a Fedora for WSL issue.
==> /etc/os-release <== NAME="CentOS Stream" VERSION="8" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="8" PLATFORM_ID="platform:el8" PRETTY_NAME="CentOS Stream 8" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:8" HOME_URL="https://centos.org/"
Good to know that there is a solution for this for CentOS Stream and RHEL 8
from fedora-remix-for-wsl.
The above just hung for me and didn't do anything.
I found https://github.com/WhitewaterFoundry/Pengwin-Enterprise/issues/20 and followed:
sudo -s
cd /var/lib/rpm
rpm --rebuilddb
dd if=/dev/zero of=__db.001 bs=1M count=1
dd if=/dev/zero of=__db.002 bs=1M count=1
dd if=/dev/zero of=__db.003 bs=1M count=1
rpm -qa rpm
yum install vim
Which seems to have fixed the issue now.
Thankyou for your help.cd /var/lib/rpm dd if=/dev/zero of=__db.001 bs=1M count=1 dd if=/dev/zero of=__db.002 bs=1M count=1 dd if=/dev/zero of=__db.003 bs=1M count=1
this worked for me.
This worked for me as well, thanks
from fedora-remix-for-wsl.
Yes, because it fails when trying to grow the files. The dd command creates files with 1MB with enough space to fill.
from fedora-remix-for-wsl.
Run this
sudo dnf upgrade --refresh rpm glibc sudo rm /var/lib/rpm/.rpm.lock sudo dnf upgrade dnf
And try again.
From: #46 (comment)
This worked for me
from fedora-remix-for-wsl.
I've tried "normal fixes" for this issue but they don't fix it in this case, I think it might be to do with the WSL element?
from fedora-remix-for-wsl.
A fix was uploaded to the store with the version 1.30.5.0 if someone can check if the error is gone away.
from fedora-remix-for-wsl.
yep, removing the lock file is enough.
from fedora-remix-for-wsl.
Try the new script upgrade.sh and see if it fixes it as well
from fedora-remix-for-wsl.
Hello @BlackthornYugen
Are you using Fedora Remix 33? or 32?
Regards
@crramirez oops... I'm running Centos 8 Stream. This page turned up in a google search for my issue. I didn't even notice it was a Fedora for WSL issue.
==> /etc/os-release <==
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
from fedora-remix-for-wsl.
Does anyone know why the dd commands fix this?
from fedora-remix-for-wsl.
@DrLove73 excellent. Also, sudo rm /var/lib/rpm/.rpm.lock
helps.
from fedora-remix-for-wsl.
Below command worked for me
rm -f /var/lib/rpm/__db*
from fedora-remix-for-wsl.
I just had this problem and
rm -f /var/lib/rpm/__db*
fixed it at once.
Thanks for posting. This worked for me
from fedora-remix-for-wsl.
What the real reason for the problem 'dbenv version mismatch'? And How to fix it in the source code? such as rpm or librpm
from fedora-remix-for-wsl.
I just needed to rebuild de database and it worked:
cd /var/lib/rpm
rpm --rebuilddb
from fedora-remix-for-wsl.
Run this
sudo dnf upgrade --refresh rpm glibc sudo rm /var/lib/rpm/.rpm.lock sudo dnf upgrade dnf
And try again.
From: #46 (comment)
You made my day. :)
from fedora-remix-for-wsl.
Related Issues (20)
- Misleading error message on reinstalling same(?) version
- Reinstalling does not reinstall HOT 1
- SystemD not in github-downloaded AppBundle? HOT 4
- bash: /mnt/c/WINDOWS/system32/wsl.exe: Permission denied HOT 1
- Port arm64 fedora using WSA backend HOT 4
- Using fish shell breaks ssh ProxyJump HOT 3
- Document Fedora distro version upgrade process HOT 3
- wsl: Nested virtualization is not supported on this machine. HOT 5
- system provided julia 1.9.0-rc2 segmentation fault on fedoraremix 38 HOT 11
- version `GLIBC_2.36' not found HOT 4
- Fedora 39 release HOT 3
- remove custom background HOT 1
- about ${HOME}/.wslconfig error HOT 1
- mesa broken HOT 14
- after latest mesa update rendering is software only HOT 3
- Fedora 39 Prompt defaulting to `-bash-5.2#` -> `\s-\v\$` HOT 3
- dnf fails with ssl error HOT 4
- Initial user creation fail because of password missmatch create another user with uid 1001. HOT 1
- README badge broken HOT 1
- Fedora 40 - zink_dri.so missing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fedora-remix-for-wsl.