Results 1 to 6 of 6

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

  1. #1
    Join Date
    Nov 2010
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    I seem to have encountered problems with the software-center, and the general removal, or installation of packages, even through synaptic package manager. And I am often getting system error messages

    When I try to sudo apt-get update/upgrade I often get errors, and if I try to re-install the software-center it fails with the error
    "Errors were encountered while processing: /var/cache/apt/archives/software-center_5.2.7_all.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)"
    I am completely stuck on what to do, I've tried sudo apt-get purge software-center and others and none seem to work.

    This is the full output of "sudo apt-get install -f software-center"
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following NEW packages will be installed
      software-center
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/625 kB of archives.
    After this operation, 4,395 kB of additional disk space will be used.
    (Reading database ... 278736 files and directories currently installed.)
    Unpacking software-center (from .../software-center_5.2.7_all.deb) ...
    dpkg: error processing /var/cache/apt/archives/software-center_5.2.7_all.deb (--unpack):
     trying to overwrite '/usr/share/app-install/channels', which is also in package app-install-data-partner 12.12.04.1
    No apport report written because MaxReports has already been reached
                                                                        Processing triggers for bamfdaemon ...
    Rebuilding /usr/share/applications/bamf.index...
    Processing triggers for desktop-file-utils ...
    Processing triggers for gnome-menus ...
    Processing triggers for hicolor-icon-theme ...
    Errors were encountered while processing:
     /var/cache/apt/archives/software-center_5.2.7_all.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    I am running ubuntu 12.04 32bit

    All Help Appreciated
    Last edited by Spyderkid; January 26th, 2013 at 03:03 PM.
    'The storm had now definitely abated, and what thunder there was now grumbled over more distant hills, like a man saying "AND ANOTHER THING!" twenty minutes after admitting he's lost the argument'
    -Douglas Adams

  2. #2
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,628

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

    Try these here:
    Code:
    sudo dpkg --configure -a
    Code:
    sudo apt-get install -f

  3. #3
    Join Date
    Nov 2010
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    I tried them and noticed no difference :/
    'The storm had now definitely abated, and what thunder there was now grumbled over more distant hills, like a man saying "AND ANOTHER THING!" twenty minutes after admitting he's lost the argument'
    -Douglas Adams

  4. #4
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,628

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

    Code:
    sudo -i
    cd /var/cache/apt/archives
    dpkg -i --force-overwrite software-center_5.2.7_all.deb
    dpkg --configure -a

  5. #5
    Join Date
    Nov 2010
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Thanks, that's seemed to sort out the software-center.

    Much appreciated
    'The storm had now definitely abated, and what thunder there was now grumbled over more distant hills, like a man saying "AND ANOTHER THING!" twenty minutes after admitting he's lost the argument'
    -Douglas Adams

  6. #6
    Join Date
    Oct 2009
    Location
    Reykjavík, Ísland
    Beans
    13,647
    Distro
    Xubuntu

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

    Good, then please mark the thread 'solved'.
    Bringing old hardware back to life. About problems due to upgrading.
    Please visit Quick Links -> Unanswered Posts.
    Don't use this space for a list of your hardware. It only creates false hits in the search engines.

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
  •