Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [SOLVED] Zypper error

    Reply
    nieldk | # 1 | 2014-01-01, 20:29 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by nieldk; 2014-01-02 at 09:34.

     
    rainisto | # 2 | 2014-01-02, 08:50 | Report

    try as root:
    rm -rf /var/lib/rpm/__db*
    rpm --rebuilddb

    Edit | Forward | Quote | Quick Reply | Thanks

     
    nieldk | # 3 | 2014-01-02, 09:03 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    nieldk | # 4 | 2014-01-02, 09:34 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    juiceme | # 5 | 2014-01-02, 10:20 | Report

    Strange. I wonder what could go awry in the RPM database to make that necessary so that just cleaning cache does not help??

    Edit | Forward | Quote | Quick Reply | Thanks

     
    nieldk | # 6 | 2014-01-02, 10:23 | Report

    would like to had known that
    but probably some of the compilations I did allthough, dont think any of those should have that impact

    Edit | Forward | Quote | Quick Reply | Thanks

     
    minimos | # 7 | 2014-01-02, 12:44 | Report

    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)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    nieldk | # 8 | 2014-01-02, 12:48 | Report

    time to install strace ?

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout