Results 1 to 6 of 6

Thread: what has happened to my zypper

  1. #1

    Default what has happened to my zypper

    when try to install libqt4-devel, it stucked like this
    Code:
    /usr/share/man> sudo zypper install libqt4-devel
    Loading repository data...
    Reading installed packages...
    Resolving package dependencies...
    
    The following NEW packages are going to be installed:
      dbus-1-devel libdrm-devel libjpeg-devel liblcms-devel libmng-devel libqt4-devel 
      libtiff-devel Mesa-devel sqlite3 sqlite3-devel 
    
    10 new packages to install.
    Overall download size: 8.6 MiB. After the operation, additional 44.2 MiB will be used.
    Continue? [y/n/?] (y): 
    Installing: sqlite3-3.6.23-4.1 [error]
    Installation of sqlite3-3.6.23-4.1 failed:
    (with --nodeps --force) Error: Subprocess failed. Error: RPM 失败:warning: waiting for exclusive lock on /var/lib/rpm/Packages
    error: cannot get exclusive lock on /var/lib/rpm/Packages
    error: cannot open Packages index using db3 - Operation not permitted (1)
    error: cannot open Packages database in /var/lib/rpm
    
    
    Abort, retry, ignore? [a/r/i] (a):
    And then I tried to install smplayer, the same problem occured...........

    who can help me

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    37,194
    Blog Entries
    17

    Default Re: what has happened to my zypper

    Try running as su -

    Code:
    zypper clean --all
    Code:
    rpmdb --rebuilddb
    13.2_Laptop_Spec
    My Articles
    Was I any help? If yes: Click the star below

  3. #3

    Default Re: what has happened to my zypper

    It works, thanks a lot!

  4. #4
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    37,194
    Blog Entries
    17

    Default Re: what has happened to my zypper

    Quote Originally Posted by partner1985 View Post
    It works, thanks a lot!
    You are most welcome
    13.2_Laptop_Spec
    My Articles
    Was I any help? If yes: Click the star below

  5. #5
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    11,210

    Default Re: what has happened to my zypper

    caf4926 wrote:
    >> It works, thanks a lot!

    > You are most welcome



    but, while the problem was solved (zypper works again) the question of
    "what happened to my zypper" didn't get addressed...so, it is likely
    to happen again..

    what happened was a running instance of zypper was interrupted leaving
    a particular file 'locked' and corrupting the RPM database which was
    open and in use by zypper when it was interrupted..

    that interruption may have come because the electricity ran out and
    the machine shut down.....but, i guess it was probably interrupted by
    the user.....

    because zypper is not an instant acting program--it has lots of work
    to do contacting and downloading from far away sites, checking long
    lists of what is installed and blah blah blah blah blah....my advice
    is to never begin a zypper operation unless you are willing to put
    your hands in your pockets for TEN minutes, at least..

    don't even consider aborting either YaST or zypper operation..

    if you do kill zypper you can expect a murdered RPM database at the
    very least, and very possibly the entire system...depending on just
    where it is in the process (it also rewrites a heap of config files)
    it is when when the rug is removed..

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

  6. #6

    Default Re: what has happened to my zypper

    Quote Originally Posted by DenverD View Post
    caf4926 wrote:
    >> It works, thanks a lot!

    > You are most welcome



    but, while the problem was solved (zypper works again) the question of
    "what happened to my zypper" didn't get addressed...so, it is likely
    to happen again..

    what happened was a running instance of zypper was interrupted leaving
    a particular file 'locked' and corrupting the RPM database which was
    open and in use by zypper when it was interrupted..

    that interruption may have come because the electricity ran out and
    the machine shut down.....but, i guess it was probably interrupted by
    the user.....

    because zypper is not an instant acting program--it has lots of work
    to do contacting and downloading from far away sites, checking long
    lists of what is installed and blah blah blah blah blah....my advice
    is to never begin a zypper operation unless you are willing to put
    your hands in your pockets for TEN minutes, at least..

    don't even consider aborting either YaST or zypper operation..

    if you do kill zypper you can expect a murdered RPM database at the
    very least, and very possibly the entire system...depending on just
    where it is in the process (it also rewrites a heap of config files)
    it is when when the rug is removed..

    --
    DenverD
    CAVEAT: C A V E A T [posted via NNTP w/openSUSE 10.3]

    good suggestion, I remember that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •