Active Topics

 


Reply
Thread Tools
Guest | Posts: n/a | Thanked: 0 times | Joined on
#1
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:

Code:
[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.

Last edited by nieldk; 2014-01-02 at 09:34.
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#2
try as root:
rm -rf /var/lib/rpm/__db*
rpm --rebuilddb
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#3
Originally Posted by rainisto View Post
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
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#4
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
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#5
Strange. I wonder what could go awry in the RPM database to make that necessary so that just cleaning cache does not help??
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#6
would like to had known that
but probably some of the compilations I did allthough, dont think any of those should have that impact
 
Posts: 646 | Thanked: 1,124 times | Joined on Jul 2010 @ Espoo, Finland
#7
Originally Posted by juiceme View Post
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)
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#8
time to install strace ?
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:52.