Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: Update Error : E: Sub-process /usr/bin/dpkg exited unexpectedly

  1. #11
    Join Date
    Dec 2007
    Location
    London, UK
    Beans
    28
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Update Error : E: Sub-process /usr/bin/dpkg exited unexpectedly

    HI Phil,

    I tried the command after deleting files and gave me this error
    "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."

    So I ran the command " sudo dpkg --configure -a"

    and then ran "sudo apt-get update && sudo apt-get upgrade"

    But I still get the same error that I posted in my first reply to you.

  2. #12
    Join Date
    Dec 2007
    Location
    London, UK
    Beans
    28
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Update Error : E: Sub-process /usr/bin/dpkg exited unexpectedly

    Here is the full error list.

    yudi@yudi-desktop:~$ sudo apt-get update && sudo apt-get upgrade
    Hit http://gb.archive.ubuntu.com lucid Release.gpg
    Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_GB
    Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_GB
    Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_GB
    Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_GB
    Hit http://gb.archive.ubuntu.com lucid-updates Release.gpg
    Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_GB
    Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_GB
    Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_GB
    Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_GB
    Hit http://security.ubuntu.com lucid-security Release.gpg
    Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_GB
    Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_GB
    Hit http://gb.archive.ubuntu.com lucid Release
    Hit http://archive.canonical.com lucid Release.gpg
    Ign http://archive.canonical.com/ lucid/partner Translation-en_GB
    Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_GB
    Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_GB
    Hit http://security.ubuntu.com lucid-security Release
    Hit http://gb.archive.ubuntu.com lucid-updates Release
    Hit http://archive.canonical.com lucid Release
    Hit http://gb.archive.ubuntu.com lucid/main Packages
    Hit http://gb.archive.ubuntu.com lucid/restricted Packages
    Hit http://gb.archive.ubuntu.com lucid/main Sources
    Hit http://gb.archive.ubuntu.com lucid/restricted Sources
    Hit http://gb.archive.ubuntu.com lucid/universe Packages
    Hit http://security.ubuntu.com lucid-security/main Packages
    Hit http://archive.canonical.com lucid/partner Packages
    Hit http://gb.archive.ubuntu.com lucid/universe Sources
    Hit http://gb.archive.ubuntu.com lucid/multiverse Packages
    Hit http://gb.archive.ubuntu.com lucid/multiverse Sources
    Hit http://gb.archive.ubuntu.com lucid-updates/main Packages
    Hit http://gb.archive.ubuntu.com lucid-updates/restricted Packages
    Hit http://gb.archive.ubuntu.com lucid-updates/main Sources
    Hit http://gb.archive.ubuntu.com lucid-updates/restricted Sources
    Hit http://security.ubuntu.com lucid-security/restricted Packages
    Hit http://security.ubuntu.com lucid-security/main Sources
    Hit http://security.ubuntu.com lucid-security/restricted Sources
    Hit http://security.ubuntu.com lucid-security/universe Packages
    Hit http://gb.archive.ubuntu.com lucid-updates/universe Packages
    Hit http://gb.archive.ubuntu.com lucid-updates/universe Sources
    Hit http://gb.archive.ubuntu.com lucid-updates/multiverse Packages
    Hit http://security.ubuntu.com lucid-security/universe Sources
    Hit http://security.ubuntu.com lucid-security/multiverse Packages
    Hit http://security.ubuntu.com lucid-security/multiverse Sources
    Hit http://gb.archive.ubuntu.com lucid-updates/multiverse Sources
    Reading package lists... Done
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages have been kept back:
    linux-headers-generic
    The following packages will be upgraded:
    empathy empathy-common fglrx-modaliases gdm humanity-icon-theme
    indicator-applet indicator-applet-session indicator-sound jockey-common
    jockey-gtk language-selector language-selector-common libcairomm-1.0-1
    libgdata-common libgdata6 libgl1-mesa-dri libglib2.0-data libglibmm-2.4-1c2a
    libglu1-mesa libgtk2.0-bin libgtkmm-2.4-1c2a libido-0.1-0 liblircclient0
    libpam-gnome-keyring libpangomm-1.4-1 libparted0debian1 libsdl1.2debian
    libsdl1.2debian-pulseaudio libsnmp-base libsnmp15 linux-generic
    linux-image-generic nautilus nautilus-data nautilus-sendto-empathy
    nvidia-current-modaliases obexd-client openoffice.org-base-core
    openoffice.org-calc openoffice.org-common openoffice.org-core
    openoffice.org-draw openoffice.org-gnome openoffice.org-gtk
    openoffice.org-impress openoffice.org-math openoffice.org-style-human
    openoffice.org-writer parted pm-utils pm-utils-powersave-policy
    python-cupshelpers python-papyon python-ubuntuone-client python-uno
    rhythmbox rhythmbox-plugin-cdrecorder rhythmbox-plugins simple-scan
    software-center ssh-askpass-gnome system-config-printer-common
    system-config-printer-gnome system-config-printer-udev telepathy-butterfly
    tomboy totem totem-common totem-mozilla totem-plugins transmission-common
    transmission-gtk ttf-opensymbol ubuntuone-client ubuntuone-client-gnome
    udisks unattended-upgrades vinagre xserver-common xserver-xorg-core
    80 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    1 not fully installed or removed.
    Need to get 0B/92.3MB of archives.
    After this operation, 492kB of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    Extract templates from packages: 100%
    Preconfiguring packages ...
    (Reading database ... 126116 files and directories currently installed.)
    Preparing to replace humanity-icon-theme 0.5.2 (using .../humanity-icon-theme_0.5.2.1_all.deb) ...
    Unpacking replacement humanity-icon-theme ...
    dpkg: ../../src/archives.c:763: tarobject: Assertion `r == stab.st_size' failed.
    E: Sub-process /usr/bin/dpkg exited unexpectedly

  3. #13
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,061
    Distro
    Ubuntu Development Release

    Re: Update Error : E: Sub-process /usr/bin/dpkg exited unexpectedly

    Preparing to replace humanity-icon-theme 0.5.2 (using .../humanity-icon-theme_0.5.2.1_all.deb) ...
    Unpacking replacement humanity-icon-theme ...
    dpkg: ../../src/archives.c:763: tarobject: Assertion `r == stab.st_size' failed.
    E: Sub-process /usr/bin/dpkg exited unexpectedly
    This package is the problem.

    What does

    Code:
    sudo dpkg --configure -a
    Spit out.

  4. #14
    Join Date
    Dec 2007
    Location
    London, UK
    Beans
    28
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Update Error : E: Sub-process /usr/bin/dpkg exited unexpectedly

    I ran the command " sudo dpkg --configure -a"

    and then ran "sudo apt-get update && sudo apt-get upgrade"

    But I still get the same error that I posted in my first reply to you

  5. #15
    Join Date
    Dec 2007
    Location
    London, UK
    Beans
    28
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Update Error : E: Sub-process /usr/bin/dpkg exited unexpectedly

    sudo dpkg --configure -a
    does not give any output. I think it runs in the background to correct some issue. Only after I run sudo dpkg --configure -a can i run the command provided by you else the system asks me to run sudo dpkg --configure -a if I run any other update command

  6. #16
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,061
    Distro
    Ubuntu Development Release

    Re: Update Error : E: Sub-process /usr/bin/dpkg exited unexpectedly

    Code:
    sudo apt-get purge humanity-icon-theme
    
    then
    
    sudo apt-get install humanity-icon-theme

  7. #17
    Join Date
    Dec 2007
    Location
    London, UK
    Beans
    28
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Update Error : E: Sub-process /usr/bin/dpkg exited unexpectedly

    Hi Phil,

    I tried the command suggested.
    Here's what I get with the first command


    Building dependency tree
    Reading state information... Done
    The following packages will be REMOVED
    gnome-themes-ubuntu* humanity-icon-theme light-themes* ubuntu-artwork*
    ubuntu-desktop* ubuntu-mono*
    0 upgraded, 0 newly installed, 6 to remove and 80 not upgraded.
    1 not fully installed or removed.
    After this operation, 34.0MB disk space will be freed.
    Do you want to continue [Y/n]? Y
    (Reading database ... 126115 files and directories currently installed.)
    Removing ubuntu-desktop ...
    Removing ubuntu-artwork ...
    Purging configuration files for ubuntu-artwork ...
    Removing light-themes ...
    Purging configuration files for light-themes ...
    Removing ubuntu-mono ...
    Purging configuration files for ubuntu-mono ...
    Removing gnome-themes-ubuntu ...
    Processing triggers for desktop-file-utils ...
    Processing triggers for python-gmenu ...
    Rebuilding /usr/share/applications/desktop.en_GB.utf8.cache...
    Processing triggers for hicolor-icon-theme ...
    Processing triggers for python-support ...
    dpkg: error processing humanity-icon-theme (--remove):
    Package is in a very bad inconsistent state - you should
    reinstall it before attempting a removal.
    Errors were encountered while processing:
    humanity-icon-theme
    E: Sub-process /usr/bin/dpkg returned an error code (1)



    So then I gave the second command and mentioned below is output for the same.

    yudi@yudi-desktop:~$ sudo apt-get install humanity-icon-theme
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be upgraded:
    humanity-icon-theme
    1 upgraded, 0 newly installed, 0 to remove and 80 not upgraded.
    1 not fully installed or removed.
    Need to get 0B/3,689kB of archives.
    After this operation, 106kB of additional disk space will be used.
    Selecting previously deselected package humanity-icon-theme.
    (Reading database ... 123954 files and directories currently installed.)
    Preparing to replace humanity-icon-theme 0.5.2 (using .../humanity-icon-theme_0.5.2.1_all.deb) ...
    Unpacking replacement humanity-icon-theme ...
    dpkg: ../../src/archives.c:763: tarobject: Assertion `r == stab.st_size' failed.
    E: Sub-process /usr/bin/dpkg exited unexpectedly

  8. #18
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,061
    Distro
    Ubuntu Development Release

    Re: Update Error : E: Sub-process /usr/bin/dpkg exited unexpectedly

    http://ubuntuforums.org/showpost.php...28&postcount=4

    Be sure to use gksu gedit though.

    Substitute for your errant package humanity-icon-theme

  9. #19
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Update Error : E: Sub-process /usr/bin/dpkg exited unexpectedly

    It may be time to just get rid of the installation files manually. Open a file browser as root and go to /var/lib/dpkg/info:
    Code:
    gksu nautilus /var/lib/dpkg/info
    Find the humanity-icon-theme files (there should be 4). Move them, rename or delete them. The first two will allow you to restore them if necessary.

    You can see if that fixes things. If not, open /var/lib/dpkg/status. Make a backup of the file, find "Package: humanity-icon-theme" and delete the entire section.
    Code:
    sudo cp /var/lib/dpgk/status /var/lib/dpkg/status.bak
    gksu gedit /var/lib/dpkg/status
    This is not an 'elegant' solution but may finally rid you of the error messages, at which time you should reinstall the theme. If this doesn't fix the problem I would restore all the files to their original status so you are back to known values.
    Back to Xorg...

    Retired.

  10. #20
    Join Date
    Dec 2007
    Location
    London, UK
    Beans
    28
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Update Error : E: Sub-process /usr/bin/dpkg exited unexpectedly

    Hi Phil/DRS

    I have removed the file from "gksu nautilus /var/lib/dpkg/info" and also deleted the section in file gksu gedit /var/lib/dpkg/status for Humanity-icon-theme.

    What should be the next step from here?
    Should I try to update + upgrade my packages?

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

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
  •