PDA

View Full Version : [SOLVED] Zypper error


nieldk
2014-01-01, 20:29
Did anyone encounter this error before in Sailfish on the device:

Happens since a good week now when doing zypper in (some-package), for example:

[nemo@localhost ~]$ sudo zypper in mce-tools
Password:
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
mce-tools

1 new package to install.
Overall download size: 57.7 KiB. After the operation, additional 116.9 KiB will
be used.
Continue? [y/n/?] (y):
Installing: mce-tools-1.22.1-1.14.1 .....................................[error]
Installation of mce-tools-1.22.1-1.14.1 failed:
(with --nodeps --force) Error: Subprocess failed. Error: RPM failed: error: db6 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db6 - (-30969)
error: cannot open Packages database in /var/lib/rpm
warning: /var/cache/zypp/packages/jolla/mw/armv7hl/mce-tools-1.22.1-1.14.1.armv7hl.rpm: Header V3 DSA/SHA1 Signature, key ID 3647af9c: NOKEY
error: db6 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages database in /var/lib/rpm


Abort, retry, ignore? [a/r/i] (a):

I have tried a few things, like reinstall zypper, rpm
rpm --rebuilddb
zypper clean --all

Still, getting this error, allthough, installing using rpm and pkcon works without issues.

rainisto
2014-01-02, 08:50
try as root:
rm -rf /var/lib/rpm/__db*
rpm --rebuilddb

nieldk
2014-01-02, 09:03
try as root:
rm -rf /var/lib/rpm/__db*
rpm --rebuilddb

tried that, doesnt work .
Also tried (thanks to Stefano Mosconi)
cd /var/lib
mv rpm rpmold
pkcon refresh

zypper in (package) then wants to install ~347 packages, I tried to say 'ok', but, it fails with same error after downloading all packages

nieldk
2014-01-02, 09:34
Solved by doing a device reset now, back to install all my stuff :)
Had hoped this would not be needed, but, oh well - it did the trick

juiceme
2014-01-02, 10:20
Strange. I wonder what could go awry in the RPM database to make that necessary so that just cleaning cache does not help??

nieldk
2014-01-02, 10:23
would like to had known that :)
but probably some of the compilations I did allthough, dont think any of those should have that impact

minimos
2014-01-02, 12:44
Strange. I wonder what could go awry in the RPM database to make that necessary so that just cleaning cache does not help??
Also, what is pkcon doing that zypper doesn't? (or viceversa)

nieldk
2014-01-02, 12:48
time to install strace ?