Page 1 of 8 123 ... LastLast
Results 1 to 10 of 77

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

  1. #1
    Join Date
    Apr 2010
    Location
    Behind the scene.
    Beans
    84
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Masters,

    I always got this when make updating at terminal. Kindly advise. TIA

    Code:
    Setting up getdeb-repository (0.1-1~getdeb1) ...
    --2010-12-10 14:35:00--  http://archive.getdeb.net/getdeb-archive.key
    Resolving archive.getdeb.net... failed: Name or service not known.
    wget: unable to resolve host address `archive.getdeb.net'
    gpg: no valid OpenPGP data found.
    dpkg: error processing getdeb-repository (--configure):
     subprocess installed post-installation script returned error exit status 2
    anything is possible, make it happen!

  2. #2
    Join Date
    Apr 2009
    Location
    Rawalpindi, Pakistan
    Beans
    5,666
    Distro
    Ubuntu Gnome Development Release

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

    Please post the output of these commands.

    Code:
    sudo dpkg --configure -a
    Code:
    sudo apt-get install -f
    Code:
    cat /etc/apt/sources.list

  3. #3
    Join Date
    Apr 2010
    Location
    Behind the scene.
    Beans
    84
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Hi sikander3786, Thank you for your response. However output below;

    First command & second got this output:

    Code:
    sh@sh-desktop:~$ sudo dpkg --configure -a
    Setting up getdeb-repository (0.1-1~getdeb1) ...
    --2010-12-10 16:14:19--  http://archive.getdeb.net/getdeb-archive.key
    Resolving archive.getdeb.net... failed: Name or service not known.
    wget: unable to resolve host address `archive.getdeb.net'
    gpg: no valid OpenPGP data found.
    dpkg: error processing getdeb-repository (--configure):
     subprocess installed post-installation script returned error exit status 2
    Errors were encountered while processing:
     getdeb-repository
    
    
    sh@sh-desktop:~$ sudo apt-get install -f
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      libglew1.5
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Setting up getdeb-repository (0.1-1~getdeb1) ...
    --2010-12-10 16:16:13--  http://archive.getdeb.net/getdeb-archive.key
    Resolving archive.getdeb.net... failed: Name or service not known.
    wget: unable to resolve host address `archive.getdeb.net'
    gpg: no valid OpenPGP data found.
    dpkg: error processing getdeb-repository (--configure):
     subprocess installed post-installation script returned error exit status 2
    Errors were encountered while processing:
     getdeb-repository
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    sh@sh-desktop:~$
    anything is possible, make it happen!

  4. #4
    Join Date
    Apr 2009
    Location
    Rawalpindi, Pakistan
    Beans
    5,666
    Distro
    Ubuntu Gnome Development Release

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

    Try removing that package.

    Code:
    sudo apt-get remove --purge getdeb-repository

  5. #5
    Join Date
    Apr 2010
    Location
    Behind the scene.
    Beans
    84
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Thank you so much sikander3786. Its working ok.
    anything is possible, make it happen!

  6. #6
    Join Date
    Apr 2009
    Location
    Rawalpindi, Pakistan
    Beans
    5,666
    Distro
    Ubuntu Gnome Development Release

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

    Quote Originally Posted by neehs View Post
    Thank you so much sikander3786. Its working ok.
    You are Welcome

    Glad to know that it is fixed. You can now mark this thread Solved using Thread Tools near the top of this page.

    Happy Ubuntu-ing!

  7. #7
    Join Date
    Aug 2011
    Beans
    5

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

    plz hellp me the pc cant download any thing from ubuntu software center and if i update give me run apt apt-install-f
    sudo apt-get install -f
    [sudo] password for zaid:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following packages were automatically installed and are no longer required:
    mesa-utils unity-2d-panel libqtgconf1 wine1.3-gecko fortunes-min
    libdesktop-agnostic-cfg-gconf unity-2d-launcher linux-headers-2.6.38-8
    libunity-2d-private0 libnspr4-0d libqtbamf1 fortune-mod libqtdee2 librecode0
    libdesktop-agnostic-vfs-gio libdesktop-agnostic-fdo-glib unity-2d-spread
    linux-headers-2.6.38-8-generic unity-2d-places
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
    libogremain-1.7.3
    Suggested packages:
    libogreproperty-1.7.3 libogrertshadersystem-1.7.3
    The following NEW packages will be installed:
    libogremain-1.7.3
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    6 not fully installed or removed.
    Need to get 0 B/2,875 kB of archives.
    After this operation, 8,249 kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    (Reading database ... 242971 files and directories currently installed.)
    Unpacking libogremain-1.7.3 (from .../libogremain-1.7.3_1.7.3-ogredev-natty3_i386.deb) ...
    dpkg: error processing /var/cache/apt/archives/libogremain-1.7.3_1.7.3-ogredev-natty3_i386.deb (--unpack):
    trying to overwrite '/etc/OGRE/plugins.cfg', which is also in package libogremain-1.6.4 1.6.4.dfsg1-1ubuntu1
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Errors were encountered while processing:
    /var/cache/apt/archives/libogremain-1.7.3_1.7.3-ogredev-natty3_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    zaid@zaidzh-HP-Compaq-6710b-GC045ES-ABV:~$ sudo apt-get install -f
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following packages were automatically installed and are no longer required:
    mesa-utils unity-2d-panel libqtgconf1 wine1.3-gecko fortunes-min
    libdesktop-agnostic-cfg-gconf unity-2d-launcher linux-headers-2.6.38-8
    libunity-2d-private0 libnspr4-0d libqtbamf1 fortune-mod libqtdee2 librecode0
    libdesktop-agnostic-vfs-gio libdesktop-agnostic-fdo-glib unity-2d-spread
    linux-headers-2.6.38-8-generic unity-2d-places
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
    libogremain-1.7.3
    Suggested packages:
    libogreproperty-1.7.3 libogrertshadersystem-1.7.3
    The following NEW packages will be installed:
    libogremain-1.7.3
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    6 not fully installed or removed.
    Need to get 0 B/2,875 kB of archives.
    After this operation, 8,249 kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    (Reading database ... 242971 files and directories currently installed.)
    Unpacking libogremain-1.7.3 (from .../libogremain-1.7.3_1.7.3-ogredev-natty3_i386.deb) ...
    dpkg: error processing /var/cache/apt/archives/libogremain-1.7.3_1.7.3-ogredev-natty3_i386.deb (--unpack):
    trying to overwrite '/etc/OGRE/plugins.cfg', which is also in package libogremain-1.6.4 1.6.4.dfsg1-1ubuntu1
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Errors were encountered while processing:
    /var/cache/apt/archives/libogremain-1.7.3_1.7.3-ogredev-natty3_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  8. #8
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

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

    Hi

    Try this. Open a terminal and type

    Code:
    sudo dpkg -i --force-overwrite /var/cache/apt/archives/libogremain-1.7.3_1.7.3-ogredev-natty3_i386.deb
    Then type

    Code:
    sudo apt-get autoremove
    Lastly type

    Code:
    sudo apt-get update
    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  9. #9
    Join Date
    Aug 2011
    Beans
    5

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

    thanx its work thank you

  10. #10
    Join Date
    Feb 2012
    Beans
    6

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

    hi guys i am getting a similar error while installing mythtv. i know its not a mythtv issue since i probably deleted something in mysql out of frustation. i tried all the methods mentioned on this thread. Can anyone help ?


    =================================

    start: Job failed to start
    invoke-rc.d: initscript mysql, action "start" failed.
    dpkg: error processing mysql-server-5.1 (--configure):
    subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of mysql-server:
    mysql-server depends on mysql-server-5.1; however:
    Package mysql-server-5.1 is not configured yet.
    dpkg: error processing mysql-server (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of mythtv:
    mythtv depends on mysql-server; however:
    Package mysql-server is not configured yet.
    Package mysql-server-5.1 which provides mysql-server is not configured yet.
    dpkg: error processing mythtv (--configure):
    dependency problems - leaving unconfigured
    No apport report written because the error message indicates its a followup error from a previous failure.
    No apport report written because the error message indicates its a followup error from a previous failure.
    Errors were encountered while processing:
    mysql-server-5.1
    mysql-server
    mythtv

Page 1 of 8 123 ... LastLast

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
  •