Giter Club home page Giter Club logo

Comments (31)

crramirez avatar crramirez commented on May 31, 2024 100

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.

Thorfin avatar Thorfin commented on May 31, 2024 34

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.

christianfosli avatar christianfosli commented on May 31, 2024 18

In my case it was enough to simply delete the lock file

sudo rm /var/lib/rpm/.rpm.lock

from fedora-remix-for-wsl.

cbowlesatx avatar cbowlesatx commented on May 31, 2024 16

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.

ACTom avatar ACTom commented on May 31, 2024 6

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.

from fedora-remix-for-wsl.

BlackthornYugen avatar BlackthornYugen commented on May 31, 2024 6

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.

whiteear avatar whiteear commented on May 31, 2024 5

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.

Miriam-CID avatar Miriam-CID commented on May 31, 2024 4

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.

DrLove73 avatar DrLove73 commented on May 31, 2024 4

I just had this problem and rm -f /var/lib/rpm/__db* fixed it at once.

from fedora-remix-for-wsl.

ElvenSpellmaker avatar ElvenSpellmaker commented on May 31, 2024 2

@crramirez's solution worked for me too, even if the two dnf commands said "nothing to do" haha.

from fedora-remix-for-wsl.

tqmillerusa avatar tqmillerusa commented on May 31, 2024 2

Just removing the lock file worked for me, as well.

from fedora-remix-for-wsl.

ggress avatar ggress commented on May 31, 2024 2

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.

PhilBarila avatar PhilBarila commented on May 31, 2024 1

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.

fritzr avatar fritzr commented on May 31, 2024 1

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.

crramirez avatar crramirez commented on May 31, 2024 1

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.

crramirez avatar crramirez commented on May 31, 2024 1

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.

MohitR1999 avatar MohitR1999 commented on May 31, 2024 1

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.

crramirez avatar crramirez commented on May 31, 2024 1

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.

nirosha-r avatar nirosha-r commented on May 31, 2024 1

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.

Thorfin avatar Thorfin commented on May 31, 2024

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.

crramirez avatar crramirez commented on May 31, 2024

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.

WSLUser avatar WSLUser commented on May 31, 2024

yep, removing the lock file is enough.

from fedora-remix-for-wsl.

crramirez avatar crramirez commented on May 31, 2024

Try the new script upgrade.sh and see if it fixes it as well

from fedora-remix-for-wsl.

BlackthornYugen avatar BlackthornYugen commented on May 31, 2024

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.

charterchap avatar charterchap commented on May 31, 2024

Does anyone know why the dd commands fix this?

from fedora-remix-for-wsl.

crramirez avatar crramirez commented on May 31, 2024

@DrLove73 excellent. Also, sudo rm /var/lib/rpm/.rpm.lock helps.

from fedora-remix-for-wsl.

sumojee avatar sumojee commented on May 31, 2024

Below command worked for me

rm -f /var/lib/rpm/__db*

https://barchive.wordpress.com/2016/10/28/error-db5-error-30969-from-dbenv-open-bdb0091-db_version_mismatch-database-environment-version-mismatch/

from fedora-remix-for-wsl.

macardosa avatar macardosa commented on May 31, 2024

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.

cxy-uestc avatar cxy-uestc commented on May 31, 2024

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.

cgome2 avatar cgome2 commented on May 31, 2024

I just needed to rebuild de database and it worked:
cd /var/lib/rpm
rpm --rebuilddb

from fedora-remix-for-wsl.

ganesh-at-wiw avatar ganesh-at-wiw commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.