Announcement

Collapse
No announcement yet.

Cannot get lock on Package Kit

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

    #16
    Re: Cannot get lock on Package Kit

    also, most likely adept usd kpackagekit to install your stuff and crashed. This may fix the issue (from Konsole):

    Code:
    sudo rm /var/lib/dpkg/lock

    Comment


      #17
      Re: Cannot get lock on Package Kit

      Imilano,
      I read 'Konsole' to be a 'terminal' on my system. I hope that is correct. The results I got were these.

      Hit http://br.archive.ubuntu.com jaunty Release.gpg
      Ign http://br.archive.ubuntu.com jaunty/main Translation-en_US
      Ign http://br.archive.ubuntu.com jaunty/restricted Translation-en_US
      Ign http://br.archive.ubuntu.com jaunty/universe Translation-en_US
      Ign http://br.archive.ubuntu.com jaunty/multiverse Translation-en_US
      Hit http://br.archive.ubuntu.com jaunty-updates Release.gpg
      Ign http://br.archive.ubuntu.com jaunty-updates/main Translation-en_US
      Ign http://br.archive.ubuntu.com jaunty-updates/restricted Translation-en_US
      Ign http://br.archive.ubuntu.com jaunty-updates/universe Translation-en_US
      Ign http://br.archive.ubuntu.com jaunty-updates/multiverse Translation-en_US
      Hit http://br.archive.ubuntu.com jaunty Release
      Hit http://br.archive.ubuntu.com jaunty-updates Release
      Hit http://br.archive.ubuntu.com jaunty/main Packages
      Hit http://br.archive.ubuntu.com jaunty/restricted Packages
      Hit http://br.archive.ubuntu.com jaunty/main Sources
      Hit http://br.archive.ubuntu.com jaunty/restricted Sources
      Hit http://br.archive.ubuntu.com jaunty/universe Packages
      Hit http://br.archive.ubuntu.com jaunty/universe Sources
      Hit http://br.archive.ubuntu.com jaunty/multiverse Packages
      Hit http://br.archive.ubuntu.com jaunty/multiverse Sources
      Hit http://security.ubuntu.com jaunty-security Release.gpg
      Ign http://security.ubuntu.com jaunty-security/main Translation-en_US
      Hit http://br.archive.ubuntu.com jaunty-updates/main Packages
      Hit http://br.archive.ubuntu.com jaunty-updates/restricted Packages
      Hit http://br.archive.ubuntu.com jaunty-updates/main Sources
      Hit http://br.archive.ubuntu.com jaunty-updates/restricted Sources
      Hit http://br.archive.ubuntu.com jaunty-updates/universe Packages
      Hit http://br.archive.ubuntu.com jaunty-updates/universe Sources
      Hit http://br.archive.ubuntu.com jaunty-updates/multiverse Packages
      Hit http://br.archive.ubuntu.com jaunty-updates/multiverse Sources
      Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_US
      Ign http://security.ubuntu.com jaunty-security/universe Translation-en_US
      Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_US
      Hit http://security.ubuntu.com jaunty-security Release
      Hit http://security.ubuntu.com jaunty-security/main Packages
      Hit http://security.ubuntu.com jaunty-security/restricted Packages
      Hit http://security.ubuntu.com jaunty-security/main Sources
      Hit http://security.ubuntu.com jaunty-security/restricted Sources
      Hit http://security.ubuntu.com jaunty-security/universe Packages
      Hit http://security.ubuntu.com jaunty-security/universe Sources
      Hit http://security.ubuntu.com jaunty-security/multiverse Packages
      Hit http://security.ubuntu.com jaunty-security/multiverse Sources
      E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

      Comment


        #18
        Re: Cannot get lock on Package Kit

        Originally posted by lmilano
        also, most likely adept usd kpackagekit to install your stuff and crashed. This may fix the issue (from Konsole):

        Code:
        sudo rm /var/lib/dpkg/lock
        I tried this and it came back with;

        ian@PC-Ian:~$ sudo rm /var/lib/dpkg/lock
        rm: cannot remove `/var/lib/dpkg/lock': No such file or directory
        ian@PC-Ian:~$

        Comment


          #19
          Re: Cannot get lock on Package Kit

          Originally posted by SCBrazil
          Imilano,
          I read 'Konsole' to be a 'terminal' on my system. I hope that is correct. The results I got were these.

          Hit http://br.archive.ubuntu.com jaunty Release.gpg

          <<snipped>>

          Hit http://security.ubuntu.com jaunty-security/multiverse Sources
          E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
          And? What happened when you run 'sudo dpkg --configure -a' in a console window?

          Comment


            #20
            Re: Cannot get lock on Package Kit

            Originally posted by skunk
            Originally posted by SCBrazil
            Imilano,
            I read 'Konsole' to be a 'terminal' on my system. I hope that is correct. The results I got were these.

            Hit http://br.archive.ubuntu.com jaunty Release.gpg

            <<snipped>>

            Hit http://security.ubuntu.com jaunty-security/multiverse Sources
            E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
            And? What happened when you run 'sudo dpkg --configure -a' in a console window?
            yes. I would strongly suggest that you add "-phigh -u" to that command, otherwise it will ask you a million questions

            Comment


              #21
              Re: Cannot get lock on Package Kit

              Okay,
              I tried opening Synaptics and got this message error;

              E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
              E: _cache->open() failed, please report.

              So I opened a Terminal and copied "sudo dpkg --configure -a" into it. Things seem to be working now.
              Thanks for your help. If you think it is worth me knowing, please explain to me what I did.

              I will also try the suggestions regarding the list of packages next.

              Thanks again.

              Comment


                #22
                Re: Cannot get lock on Package Kit

                at one point in time 1 or more packages started to install and dident finish for one reson or a nuther.

                the comand sudo dpkg --configure -a told dpkg to configure -a or all unconfigured packages on your system.

                from man dpkg

                Code:
                --configure package...|-a|--pending
                       Reconfigure an unpacked package. If -a or --pending is given instead of package, all
                       unpacked but unconfigured packages are configured.
                
                       Configuring consists of the following steps:
                
                       1. Unpack the configuration files, and at the same time back up the old configuration
                       files, so that they can be restored if something goes wrong.
                
                       2. Run postinst script, if provided by the package.
                you can use man to get a manual page for eneything installed on your box.......allmost.

                like
                Code:
                man dpkg
                VINNY
                i7 4core HT 8MB L3 2.9GHz
                16GB RAM
                Nvidia GTX 860M 4GB RAM 1152 cuda cores

                Comment


                  #23
                  Re: Cannot get lock on Package Kit

                  Imilano,

                  I tried this

                  sudo dpkg --get-selections |grep -v lib |grep -v deinstall > installed-files.txt

                  to get the list of packages on my PC and nothing happened.
                  Basically I opened a Konsole, copied and pasted and then 'enter'. The screen just went back to the prompt.

                  Any suggestions?
                  Thanks

                  Comment


                    #24
                    Re: Cannot get lock on Package Kit

                    Originally posted by SCBrazil


                    I tried this

                    sudo dpkg --get-selections |grep -v lib |grep -v deinstall > installed-files.txt

                    to get the list of packages on my PC and nothing happened.
                    Basically I opened a Konsole, copied and pasted and then 'enter'. The screen just went back to the prompt.

                    Any suggestions?
                    Thanks
                    Did you check the contents of the file: installed-files.txt ? you can open it with kate ...

                    Also, did you finish the dpg --reconfigure run? I would wait for that!

                    Comment

                    Working...
                    X