Announcement

Collapse
No announcement yet.

Error when trying to update

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

    Error when trying to update

    I am running 17.04 and everything has been fine. Last week I noticed it would not update. An error pops up for a few seconds and goes away.
    Its saying something is like E dpkg is locked and to run something like dpkg -config -a. I tried that and its not recognized or wrong format or something.
    Hopefully someone else has seen this recently.

    Thanks

    #2
    You likely are seeing this:
    "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."
    In the konsole, type:
    Code:
    sudo apt update && [COLOR=#111111][FONT=Consolas]dpkg --configure -a[/FONT][/COLOR]
    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


      #3
      Originally posted by Snowhog View Post
      You likely are seeing this:

      In the konsole, type:
      Code:
      sudo apt update && [COLOR=#111111][FONT=Consolas]dpkg --configure -a[/FONT][/COLOR]
      Snowhog, thanks.

      When I run the command above I get this...

      Hit:1 http://mx.archive.ubuntu.com/ubuntu zesty InRelease
      Hit:2 http://mx.archive.ubuntu.com/ubuntu zesty-updates InRelease
      Hit:3 http://security.ubuntu.com/ubuntu zesty-security InRelease
      Hit:4 http://mx.archive.ubuntu.com/ubuntu zesty-backports InRelease
      Hit:5 https://repo.skype.com/deb stable InRelease
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      23 packages can be upgraded. Run 'apt list --upgradable' to see them.
      dpkg: error: requested operation requires superuser privilege

      I took a screen shot of the error I am receiving using the update gui ...

      Cannot obtain lock
      E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

      Thanks...

      Comment


        #4
        Originally posted by 1alan1 View Post
        Snowhog, thanks.

        When I run the command above I get this...

        Hit:1 http://mx.archive.ubuntu.com/ubuntu zesty InRelease
        Hit:2 http://mx.archive.ubuntu.com/ubuntu zesty-updates InRelease
        Hit:3 http://security.ubuntu.com/ubuntu zesty-security InRelease
        Hit:4 http://mx.archive.ubuntu.com/ubuntu zesty-backports InRelease
        Hit:5 https://repo.skype.com/deb stable InRelease
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        23 packages can be upgraded. Run 'apt list --upgradable' to see them.
        dpkg: error: requested operation requires superuser privilege

        I took a screen shot of the error I am receiving using the update gui ...

        Cannot obtain lock
        E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

        Thanks...
        “...using the update gui...”

        You can’t run apt actions in a konsole and use a package manager gui at the same time. Close what ever package manager gui you have launched and just use the konsole.
        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
          Code:
          sudo apt update && [COLOR=#111111][FONT=Consolas]dpkg --configure -a[/FONT][/COLOR]
          make sure you run both sides of the '&&' with sudo, ie:
          sudo apt update && sudo dpkg --configure -a
          using && to string two commands together still needs the sudo command (if necessary) for each part

          Comment


            #6
            You have some symptons of broken packages. see this thread: https://www.kubuntuforums.net/showth...ailed-Upgrades
            Last edited by sithlord48; Nov 27, 2017, 01:59 PM.
            Mark Your Solved Issues [SOLVED]
            (top of thread: thread tools)

            Comment


              #7
              Sithlord48,
              I went to your link and went through what it said. At first it didn't seem to work. So I went and installed a few updates one by one through the update gui.
              This morning I got up and there was only four update instead of the 17 last night. They installed normally, Wooo whooo Thanks.

              Comment


                #8
                Just a little update...it has the same problem again.

                Comment


                  #9
                  OK. I had the same problem. sudo apt update && sudo dpkg --configure -a fixed it.

                  Comment


                    #10
                    I noticed something odd since then. I deleted a couple things trying to get Quake3 to play.
                    Then I tried to reinstall them and it seems those packages are no longer available. Not sure what happened, just too busy to look into it.

                    Comment

                    Working...
                    X