Page 2 of 8 FirstFirst 1234 ... LastLast
Results 11 to 20 of 77

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

  1. #11
    Join Date
    Feb 2012
    Beans
    6

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

    i have tried
    apt-get update
    apt-get -f install mysql-server-5.1
    apt-get clean
    sudo apt-get remove --purge

  2. #12
    Join Date
    Mar 2012
    Beans
    2

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

    Hi , i had an error with nmap install package
    Code:
    drzero@drzero-pc:~$ sudo dpkg --configure -a
    dpkg: dependency problems prevent configuration of source-saintexploit:
     source-saintexploit depends on nmap; however:
      Package nmap is not installed.
    dpkg: error processing source-saintexploit (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     source-saintexploit
    Code:
    drzero@drzero-pc:~$ sudo apt-get install -f
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
      nmap
    The following NEW packages will be installed:
      nmap
    0 upgraded, 1 newly installed, 0 to remove and 345 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/3,620 kB of archives.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue [Y/n]? y
    dpkg: error processing /var/cache/apt/archives/nmap_5.61-bt1_i386.deb (--unpack):
     unable to open file '/var/lib/dpkg/tmp.ci//.svn': Is a directory
    No apport report written because MaxReports is reached already
                                                                  Errors were encountered while processing:
     /var/cache/apt/archives/nmap_5.61-bt1_i386.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Code:
    drzero@drzero-pc:~$ cat /etc/apt/sources.list
    # deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)]/ oneiric main restricted
    
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://jo.archive.ubuntu.com/ubuntu/ oneiric main restricted
    deb-src http://jo.archive.ubuntu.com/ubuntu/ oneiric main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://jo.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
    deb-src http://jo.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://jo.archive.ubuntu.com/ubuntu/ oneiric universe
    deb-src http://jo.archive.ubuntu.com/ubuntu/ oneiric universe
    deb http://jo.archive.ubuntu.com/ubuntu/ oneiric-updates universe
    deb-src http://jo.archive.ubuntu.com/ubuntu/ oneiric-updates universe
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
    ## team, and may not be under a free licence. Please satisfy yourself as to 
    ## your rights to use the software. Also, please note that software in 
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://jo.archive.ubuntu.com/ubuntu/ oneiric multiverse
    deb-src http://jo.archive.ubuntu.com/ubuntu/ oneiric multiverse
    deb http://jo.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
    deb-src http://jo.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
    
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://jo.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse
    deb-src http://jo.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse
    
    deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
    deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
    deb http://security.ubuntu.com/ubuntu oneiric-security universe
    deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
    deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
    deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse
    
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    deb http://archive.canonical.com/ubuntu oneiric partner
    deb-src http://archive.canonical.com/ubuntu oneiric partner
    
    ## This software is not part of Ubuntu, but is offered by third-party
    ## developers who want to ship their latest software.
    deb http://extras.ubuntu.com/ubuntu oneiric main
    deb-src http://extras.ubuntu.com/ubuntu oneiric main
    
    # BackTrack
    deb http://all.repository.backtrack-linux.org revolution main microverse non-free testing
    deb http://32.repository.backtrack-linux.org revolution main microverse non-free testing
    deb http://source.repository.backtrack-linux.org revolution main microverse non-free testing
    Last edited by DrZer0; March 31st, 2012 at 04:37 PM.

  3. #13
    Join Date
    Mar 2012
    Beans
    2

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

    Fixed the problem detected in the package
    apt-get autoremove

    Done

  4. #14
    Join Date
    Apr 2012
    Beans
    2

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

    I'm getting the same error with postfix.
    tried autoremove, update everything in this thread. Nothing helps for now.

    Below are results of dpkg and install -f commands. Any help appreciated.

    madman@thor:/etc$ sudo dpkg --configure -a
    Setting up postfix (2.7.0-1ubuntu0.2) ...
    setting synchronous mail queue updates: false
    setting myorigin
    setting destinations: mx.skydancers.org, thor.skydancers.local, localhost.skydancers.local, localhost
    setting relayhost:
    setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    setting mailbox_size_limit: 0
    setting recipient_delimiter: +
    setting inet_interfaces: all
    /etc/aliases does not exist, creating it.
    /var/lib/dpkg/info/postfix.postinst: 493: cannot create /etc/aliases: Directory nonexistent
    dpkg: error processing postfix (--configure):
    subprocess installed post-installation script returned error exit status 2
    Processing triggers for libc-bin ...
    ldconfig deferred processing now taking place
    Errors were encountered while processing:
    postfix
    madman@thor:/etc$ sudo apt-get install -f
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    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 postfix (2.7.0-1ubuntu0.2) ...
    setting synchronous mail queue updates: false
    setting myorigin
    setting destinations: mx.skydancers.org, thor.skydancers.local, localhost.skydancers.local, localhost
    setting relayhost:
    setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    setting mailbox_size_limit: 0
    setting recipient_delimiter: +
    setting inet_interfaces: all
    /etc/aliases does not exist, creating it.
    /var/lib/dpkg/info/postfix.postinst: 493: cannot create /etc/aliases: Directory nonexistent
    dpkg: error processing postfix (--configure):
    subprocess installed post-installation script returned error exit status 2
    Processing triggers for libc-bin ...
    ldconfig deferred processing now taking place
    Errors were encountered while processing:
    postfix
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  5. #15
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

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

    Hi

    @von Papst

    /var/lib/dpkg/info/postfix.postinst: 493: cannot create /etc/aliases: Directory nonexistent
    You could try creating the directory as that seems to be its problem

    Code:
     
    sudo mkdir /etc/aliases
    If that does not work then you can try this to create asn empty file

    Code:
    sudo rmdir /etc/aliases
    Code:
     
    sudo touch /etc/aliases
    And if that does not woirk the post the output of the postinst file.

    Code:
     
    cat /var/lib/dpkg/info/postfix.postinst
    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?

  6. #16
    Join Date
    Apr 2012
    Beans
    2

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

    Yeah just got it this morning. I overlooked that. It's working now.

  7. #17
    Join Date
    Mar 2007
    Beans
    13

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

    I have a similar issue. Pls see below. This caused by Adobe flash-plugin.

    Suggestions?

    Tom S.

    root@toms-laptop:/# apt-get -f install
    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:
    linux-headers-2.6.32-24 policykit sdparm libgda3-sqlite libpolkit-gnome0 linux-headers-2.6.32-24-generic libpolkit-dbus2 libdb4.6
    libpolkit-grant2 libpolkit2
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
    adobe-flashplugin
    0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
    1 not fully installed or removed.
    After this operation, 10.1MB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 489143 files and directories currently installed.)
    Removing adobe-flashplugin ...
    update-alternatives: error: no alternatives for iceape-flashplugin.
    update-alternatives: error: no alternatives for iceape-flashplugin.
    dpkg: error processing adobe-flashplugin (--remove):
    subprocess installed pre-removal script returned error exit status 2
    postinst called with argument `abort-remove'
    dpkg: error while cleaning up:
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    adobe-flashplugin
    E: Sub-process /usr/bin/dpkg returned an error code (1)

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

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

    Hi

    Quote Originally Posted by gtstephenson View Post
    I have a similar issue. Pls see below. This caused by Adobe flash-plugin.

    Suggestions?

    Tom S.

    Code:
    root@toms-laptop:/# apt-get -f install
    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:
      linux-headers-2.6.32-24 policykit sdparm libgda3-sqlite libpolkit-gnome0 linux-headers-2.6.32-24-generic libpolkit-dbus2 libdb4.6
      libpolkit-grant2 libpolkit2
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
      adobe-flashplugin
    0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
    1 not fully installed or removed.
    After this operation, 10.1MB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 489143 files and directories currently installed.)
    Removing adobe-flashplugin ...
    update-alternatives: error: no alternatives for iceape-flashplugin.
    update-alternatives: error: no alternatives for iceape-flashplugin.
    dpkg: error processing adobe-flashplugin (--remove):
     subprocess installed pre-removal script returned error exit status 2
    postinst called with argument `abort-remove'
    dpkg: error while cleaning up:
     subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
     adobe-flashplugin
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    I assume this returns nothing ?

    Code:
    update-alternatives --display iceape-flashplugin
    Can you post the output of this command

    Code:
    cat /var/lib/dpkg/info/adobe-flashplugin.prerm
    between code tags like this

    [code]output[/code]

    to get output like this

    Code:
    output
    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. #19
    Join Date
    Mar 2007
    Beans
    13

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

    tstephenson@toms-laptop:~$ sudo update-alternatives --display iceape-flashplugin
    update-alternatives: error: no alternatives for iceape-flashplugin.
    tstephenson@toms-laptop:~$
    tstephenson@toms-laptop:~$ cat /var/lib/dpkg/info/adobe-flashplugin.prerm
    #!/bin/sh
    # prerm script for adobe-flashplugin
    #
    # see: dh_installdeb(1)

    set -e

    # summary of how this script can be called:
    # * <prerm> `remove'
    # * <old-prerm> `upgrade' <new-version>
    # * <new-prerm> `failed-upgrade' <old-version>
    # * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
    # * <deconfigured's-prerm> `deconfigure' `in-favour'
    # <package-being-installed> <version> `removing'
    # <conflicting-package> <version>
    # for details, see http://www.debian.org/doc/debian-policy/ or
    # the debian-policy package

    VARIANTS="iceape iceweasel mozilla firefox xulrunner midbrowser xulrunner-addons"

    case "$1" in
    remove)
    for p in $VARIANTS; do
    update-alternatives --remove "$p-flashplugin" /usr/lib/adobe-flashplugin/libflashplayer.so;
    done
    for p in $VARIANTS; do
    [ `update-alternatives --list "$p-flashplugin" | wc -l` = 0 ] && \
    update-alternatives --remove-all "$p-flashplugin"
    done
    ;;
    upgrade|deconfigure)
    for p in $VARIANTS; do
    update-alternatives --remove "$p-flashplugin" /usr/lib/adobe-flashplugin/libflashplayer.so;
    done
    for p in $VARIANTS; do
    [ `update-alternatives --list "$p-flashplugin" | wc -l` = 0 ] && \
    update-alternatives --remove-all "$p-flashplugin"
    done
    ;;
    failed-upgrade)
    for p in $VARIANTS; do
    update-alternatives --remove "$p-flashplugin" /usr/lib/adobe-flashplugin/libflashplayer.so;
    done
    for p in $VARIANTS; do
    [ `update-alternatives --list "$p-flashplugin" | wc -l` = 0 ] && \
    update-alternatives --remove-all "$p-flashplugin"
    done
    ;;
    *)
    echo "prerm called with unknown argument \`$1'" >&2
    exit 1
    ;;
    esac

    # dh_installdeb will replace this with shell code automatically
    # generated by other debhelper scripts.



    exit 0

    # vim: ts=2 sw=2
    tstephenson@toms-laptop:~$
    tstephenson@toms-laptop:~$ /var/lib/dpkg/info/adobe-flashplugin.prerm remove
    update-alternatives: error: no alternatives for iceape-flashplugin.
    update-alternatives: error: no alternatives for iceape-flashplugin.

  10. #20
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

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

    Hi
    Code:
    VARIANTS="iceape iceweasel mozilla firefox xulrunner midbrowser xulrunner-addons"
    
    case "$1" in
            remove)
                    for p in $VARIANTS; do
                            update-alternatives --remove "$p-flashplugin" /usr/lib/adobe-flashplugin/libflashplayer.so;
                    done
                    for p in $VARIANTS; do
                             [ `update-alternatives --list "$p-flashplugin" | wc -l` = 0 ]  && \
                                    update-alternatives --remove-all "$p-flashplugin"
                    done
                    ;;
    This appears to be the problem. First let's check the state of the symlinks in the alternatives directory.

    Open a terminal and type...

    Code:
    ls  -l /etc/alternatives/*flashplugin
    Small L after ls. Post back the results.

    Also, from the terminal. please post back the output from the command below.

    Code:
    grep -H ^ /var/lib/dpkg/alternatives/*flashplugin
    One again i ask you to post in between code tags. It makes it easier for me to read.

    Here's how you do it again.

    Post the output between code tags like this (this is how i do it)

    [code]matthew@matthew-Aspire-7540 ~ % ls /etc/alternatives/*flashplugin
    /etc/alternatives/mozilla-flashplugin
    matthew@matthew-Aspire-7540 ~ %[/code]

    to get output like this

    Code:
    matthew@matthew-Aspire-7540 ~ % ls /etc/alternatives/*flashplugin
    /etc/alternatives/mozilla-flashplugin
    matthew@matthew-Aspire-7540 ~ %
    Kind regards
    Last edited by matt_symes; May 2nd, 2012 at 07:45 PM. Reason: Check alternatives in the dpkg directory.
    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?

Page 2 of 8 FirstFirst 1234 ... 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
  •