Announcement

Collapse
No announcement yet.

Database Locked

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Database Locked

    I receive a message that,

    Another process is using the packaging system database (probably some other Adept application or apt-get or aptitude). Please close the other application before using this one.

    The last time I was trying to install flash and the unsupported formats (it asked to insert kubuntu cd, then it started installing and ,suddenly, the installation broke. It said there was some mistake.
    When one gives up - he guarantees demise.<br />When one struggles - he guarantees a chance for success.

    #2
    Re: Database Locked

    You might try re-booting to see if it helps.

    The recipe used around here has been the following:

    Close all windows that have anything to do with installing packages, open your Konsole, and enter
    sudo dpkg --configure -a
    then, one at a time
    sudo apt-get update
    sudo apt-get install
    sudo apt-get autoclean
    sudo apt-get -f install This may be a “best” choice (?)
    sudo apt-setup

    It is common to get that error, btw.
    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

    Comment


      #3
      Re: Database Locked

      Naa. That does not help.
      When one gives up - he guarantees demise.<br />When one struggles - he guarantees a chance for success.

      Comment


        #4
        Re: Database Locked

        Open a console shell and type:
        Code:
        ls -l /var/cache/apt/archives/lock
        Copy and paste the result.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Database Locked

          -rw-r----- 1 root root 0 2007-11-11 16:14 /var/cache/apt/archives/lock
          When one gives up - he guarantees demise.<br />When one struggles - he guarantees a chance for success.

          Comment


            #6
            Re: Database Locked

            Okay. The file looks normal (same as mine). Open a console shell and type:
            Code:
            sudo apt-get check
            apt-get check
            check is a diagnostic tool; it updates the package cache and checks
            for broken dependencies.
            This should run. If it does, copy and paste the results.
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Re: Database Locked

              I took it step further.

              Code:
              [left]pavel@PavelPC:~$ apt-get check
              E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
              E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
              pavel@PavelPC:~$ sudo apt-get check
              Password:
              E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
              pavel@PavelPC:~$ dpkg --configure -a
              dpkg: requested operation requires superuser privilege
              pavel@PavelPC:~$ sudo dpkg --configure -a
              dpkg: dependency problems prevent configuration of ubuntu-restricted-extras:
               ubuntu-restricted-extras depends on sun-java6-jre; however:
               Package sun-java6-jre is not installed.
              dpkg: error processing ubuntu-restricted-extras (--configure):
               dependency problems - leaving unconfigured
              dpkg: dependency problems prevent configuration of gstreamer0.10-plugins-ugly:
               gstreamer0.10-plugins-ugly depends on liboil0.3 (>= 0.3.8); however:
               Package liboil0.3 is not installed.
              dpkg: error processing gstreamer0.10-plugins-ugly (--configure):
               dependency problems - leaving unconfigured
              Errors were encountered while processing:
               ubuntu-restricted-extras
               gstreamer0.10-plugins-ugly
              pavel@PavelPC:~$  [/left]
              When one gives up - he guarantees demise.<br />When one struggles - he guarantees a chance for success.

              Comment


                #8
                Re: Database Locked

                Several packages are involved here:

                sun-java6-jre
                gstreamer0.10-plugins-ugly depends on
                liboil0.3

                What version of *ubuntu are you using, Dapper, Edgy, Feisty, or Gutsy?
                Your system is 32- or 64-bit?
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #9
                  Re: Database Locked

                  AMD Turion 64
                  Code:
                  Version 7.04
                  - How is it called? <--- I hope this answers the question about 32/64 bit system.

                  The Add/Remove program opens us, but it has problems with
                  Code:
                  gstreamer 0.10-plugins-ugly
                  ubuntu restricted extras.
                  The program wants to remove them, but it cant'.
                  When one gives up - he guarantees demise.<br />When one struggles - he guarantees a chance for success.

                  Comment


                    #10
                    Re: Database Locked

                    Okay, using Add/Remove programs isn't what you want to be using. Can you open Adept Manger and then Fetch Updates and Apply Changes, or do you still get an error?
                    Windows no longer obstructs my view.
                    Using Kubuntu Linux since March 23, 2007.
                    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                    Comment


                      #11
                      Re: Database Locked

                      The programm is called adept installer. And yes, I can fetch updats and apply the changes, but I still get an error when I am trying to apply them.
                      When one gives up - he guarantees demise.<br />When one struggles - he guarantees a chance for success.

                      Comment


                        #12
                        Re: Database Locked

                        Code:
                        Building dependency tree
                        Reading state information... Done
                        Correcting dependencies... Done
                        The following packages were automatically installed and are no longer required:
                         tremulous-data
                        Use 'apt-get autoremove' to remove them.
                        The following extra packages will be installed:
                         liboil0.3 sun-java6-bin sun-java6-jre
                        Suggested packages:
                         sun-java6-plugin ia32-sun-java6-plugin sun-java6-fonts ttf-sazanami-gothic
                         ttf-sazanami-mincho
                        Recommended packages:
                         gsfonts-x11
                        The following NEW packages will be installed:
                         liboil0.3 sun-java6-bin
                        The following packages will be upgraded:
                         sun-java6-jre
                        1 upgraded, 2 newly installed, 0 to remove and 15 not upgraded.
                        3 not fully installed or removed.
                        Need to get 0B/29.9MB of archives.
                        After unpacking 84.9MB of additional disk space will be used.
                        Do you want to continue [Y/n]? y
                        Media change: please insert the disc labeled
                         'Kubuntu 7.04 _Feisty Fawn_ - Release amd64 (20070417)'
                        in the drive '/cdrom/' and press enter
                        
                        Media change: please insert the disc labeled
                         'Kubuntu 7.04 _Feisty Fawn_ - Release amd64 (20070417)'
                        in the drive '/cdrom/' and press enter
                        
                        Media change: please insert the disc labeled
                         'Kubuntu 7.04 _Feisty Fawn_ - Release amd64 (20070417)'
                        in the drive '/cdrom/' and press enter
                        
                        Media change: please insert the disc labeled
                         'Kubuntu 7.04 _Feisty Fawn_ - Release amd64 (20070417)'
                        in the drive '/cdrom/' and press enter
                        When one gives up - he guarantees demise.<br />When one struggles - he guarantees a chance for success.

                        Comment


                          #13
                          Re: Database Locked

                          Snowhog doesn't want you to use the simplified adept installer that you access through kmenu-add/remove programs

                          You need to be in the full adept manager application kmenu-system-adept manager.

                          Also, within adept manager, go to the adept menu - manage repositories - kubuntu software tab
                          and make sure that main, universe, restricted and multiverse are all checked.

                          Then you will be able to continue following the advice here.

                          Comment


                            #14
                            Re: Database Locked

                            There's a problem with the Sun Java JRE packages on 64-bit Linux -- at least there was the last time I tried. There's a package in the 64-bit repos called "icedtea" that was recommended, but I tried it and the Java test web site still doesn't work for me. So that's one concern that I have about what I'm seeing here.

                            The other is, you need to open Kmenu>System>Adept Package Manager, and then choose "Adept>Manage Repositories" and click the "Third Party" tab, and then highlight the CD ROM line and click the "Remove" button to make it stop calling for the CD before anything else will happen.

                            Finally, in the console, (with Adept Manager closed) it looks like you might need to run

                            Code:
                            sudo dpkg --configure -a
                            and
                            Code:
                            sudo apt-get autoclean
                            to straighten out the package manager and empty the package cache.

                            Then you can run
                            Code:
                            sudo apt-get update
                            and
                            Code:
                            sudo apt-get install
                            to make sure you have the current versions of your packages.





                            Comment


                              #15
                              Re: Database Locked

                              I cannot open Adept Manager =(

                              You will not be able to change your system settings in any way (install, remove or upgrade software), because another process is using the packaging system database (probably some other Adept application or apt-get or aptitude). Please close the other application before using this one.

                              And then I can see the window with the packages, but I can not click the menu options. (They are grey, the "unavailable" color)

                              Code:
                              pavel@PavelPC:~$ sudo dpkg --configure -a
                              Password:
                              dpkg: status database area is locked by another process
                              pavel@PavelPC:~$ sudo apt-get autoclean
                              E: Could not get lock /var/cache/apt/archives/lock - open (11 Resource temporarily unavailable)
                              E: Unable to lock the download directory
                              pavel@PavelPC:~$
                              When one gives up - he guarantees demise.<br />When one struggles - he guarantees a chance for success.

                              Comment

                              Working...
                              X