Results 1 to 7 of 7

Thread: E: Sub-process /usr/bin/dpkg returned an error code (1)

  1. #1
    Join Date
    Mar 2007
    Beans
    680

    E: Sub-process /usr/bin/dpkg returned an error code (1)

    On Ubuntu 14.04 LTS I have executed the following command:
    Code:
    sudo apt-get update && sudo apt-get -y dist-upgrade
    I am updating the system in this way year after year without a problem. But now bellow error appears:
    Code:
    Reading package lists... Done                                                  
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    The following packages will be upgraded:
      binutils
    1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/2120 kB of archives.
    After this operation, 8192 B of additional disk space will be used.
    (Reading database ... 432747 files and directories currently installed.)
    Preparing to unpack .../binutils_2.24-5ubuntu14.1_i386.deb ...
    Unpacking binutils (2.24-5ubuntu14.1) over (2.24-5ubuntu14) ...
    dpkg: error processing archive /var/cache/apt/archives/binutils_2.24-5ubuntu14.1_i386.deb (--unpack):
     unable to install new version of `/usr/bin/c++filt': Device or resource busy
    Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
    Errors were encountered while processing:
     /var/cache/apt/archives/binutils_2.24-5ubuntu14.1_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    I have check the web for several solutions but non of it is exactly like mine.
    I have had some PPAs installed (I remove them, because no longer needed), but problem still is not solved.

    Any idea how to fix this problem?

  2. #2
    Join Date
    Mar 2006
    Beans
    2,423

    Re: E: Sub-process /usr/bin/dpkg returned an error code (1)

    Have you tried running
    Code:
    sudo apt-get -f install
    Just as random maintenance, I would also run:
    Code:
    sudo apt-get autoremove
    sudo apt-get clean
    sudo apt-get autoclean
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get dist-upgrade

  3. #3
    Join Date
    Mar 2007
    Beans
    680

    Re: E: Sub-process /usr/bin/dpkg returned an error code (1)

    Already tried that and tried it now again and does not help. The same error.

  4. #4
    Join Date
    Mar 2006
    Beans
    2,423

    Re: E: Sub-process /usr/bin/dpkg returned an error code (1)

    Are you running multiple package management apps at once? Like software center, synaptic, apt-get inside a terminal, etc?

  5. #5
    Join Date
    Mar 2007
    Beans
    680

    Re: E: Sub-process /usr/bin/dpkg returned an error code (1)

    @user1397, no I am not running multiple update software. Just for test I have started Synaptic and apt-get from terminal at the same time and there is different error in this case:
    Code:
    E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    My problem from first post is not the problem above of having multiple package update software running at the same time.

    Any other idea?

  6. #6
    Join Date
    Mar 2006
    Beans
    2,423

    Re: E: Sub-process /usr/bin/dpkg returned an error code (1)


  7. #7
    Join Date
    Mar 2007
    Beans
    680

    Re: E: Sub-process /usr/bin/dpkg returned an error code (1)

    @user1397, I have already tried that and several other tricks on the web, but non of them solves my problem always getting this "Device or resource busy" error when updating.

Bookmarks

Posting Permissions

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