Page 3 of 8 FirstFirst 12345 ... LastLast
Results 21 to 30 of 77

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

  1. #21
    Join Date
    Mar 2007
    Beans
    13

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

    It appears the alternative doesn't exist.

    [code]
    ls -l /etc/alternatives/*flashplugin
    ls: cannot access /etc/alternatives/*flashplugin: No such file or directory

    [code]
    grep -H ^ /var/lib/dpkg/alternatives/*flashplugin
    grep: /var/lib/dpkg/alternatives/*flashplugin: No such file or directory

  2. #22
    Join Date
    Mar 2007
    Beans
    13

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

    Quote Originally Posted by matt_symes View Post
    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

    OK, I find the alternatives/*flashplugin doesn't exist.
    perhaps this is easier to read.

    [code]ls -l /etc/alternatives/*flashplugin
    ls: cannot access /etc/alternatives/*flashplugin: No such file or directory[code]

    So obviously the grep will fail since there are no files that meet the criteria.

  3. #23
    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

    Quote Originally Posted by gtstephenson View Post
    OK, I find the alternatives/*flashplugin doesn't exist.
    perhaps this is easier to read.

    [code]ls -l /etc/alternatives/*flashplugin
    ls: cannot access /etc/alternatives/*flashplugin: No such file or directory[code]

    So obviously the grep will fail since there are no files that meet the criteria.
    That's not a problem. We can fix your system. I just wanted to check there would be nothing left hanging about.

    Open a terminal and copy and paste these commands.

    Code:
    sudo cp /var/lib/dpkg/info/adobe-flashplugin.prerm{,.old}
    Code:
    echo 'exit 0;' | sudo tee /var/lib/dpkg/info/adobe-flashplugin.prerm
    Code:
    sudo apt-get -f install
    Code:
    sudo apt-get update
    Then try to install something

    Code:
    sudo apt-get install htop
    If that all has gone well then type....

    Code:
    sudo rm /var/lib/dpkg/info/adobe-flashplugin.prerm.old
    ... otherwise post back any errors.

    Just one last thing. it needs to be

    [code]...[ >>> / <<<< code]

    I.E

    [code]...[/code]

    You missed the forward slash.

    If you edit your last post and put the forward slash in you will see how it works and next time help save my eyesight

    Kind regards
    Last edited by matt_symes; May 2nd, 2012 at 10:38 PM.
    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?

  4. #24
    Join Date
    Mar 2007
    Beans
    13

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

    Did not have good success.

    Code:
    tstephenson@toms-laptop:~$ sudo cp /var/lib/dpkg/info/adobe-flashplugin.prerm{,.old}
    tstephenson@toms-laptop:~$ echo 'exit 0;' | sudo tee /var/lib/dpkg/info/adobe-flashplugin.prerm
    exit 0;
    tstephenson@toms-laptop:~$ sudo apt-get -f install
    Reading package lists... Done
    Building dependency tree
    Reading state information... 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.
    0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
    1 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Setting up adobe-flashplugin (10.0.12.36-1hardy1) ...
    update-alternatives: using /usr/lib/adobe-flashplugin/libflashplayer.so to provide /usr/lib/firefox/plugins/flashplugin-alternative.so (firefox-flashplugin) in auto mode.
    update-alternatives: error: unable to make /usr/lib/firefox/plugins/flashplugin-alternative.so.dpkg-tmp a symlink to /etc/alternatives/firefox-flashplugin: No such file or directory
    dpkg: error processing adobe-flashplugin (--configure):
     subprocess installed post-installation script returned error exit status 2
    Errors were encountered while processing:
     adobe-flashplugin
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    tstephenson@toms-laptop:~$ sudo apt-get update
    Ign cdrom://Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)/ precise/main Translation-en_US
    Ign cdrom://Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)/ precise/restricted Translation-en_US
    Get:1 http://us.archive.ubuntu.com lucid Release.gpg [189B]
    Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
    Ign http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
    Get:2 http://us.archive.ubuntu.com lucid Release [57.2kB]
    Get:3 http://us.archive.ubuntu.com lucid/main Packages [1,386kB]
    Get:4 http://us.archive.ubuntu.com lucid/restricted Packages [6,208B]
    Get:5 http://us.archive.ubuntu.com lucid/main Sources [659kB]
    Get:6 http://us.archive.ubuntu.com lucid/restricted Sources [3,775B]
    Fetched 2,112kB in 23s (89.6kB/s)
    Reading package lists... Done
    tstephenson@toms-laptop:~$ sudo apt-get install htop
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Couldn't find package htop
    Seems dpkg still returns an error.

    Tom Stephenson

  5. #25
    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

    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):
    1 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Setting up adobe-flashplugin (10.0.12.36-1hardy1) ...
    update-alternatives: using /usr/lib/adobe-flashplugin/libflashplayer.so to provide /usr/lib/firefox/plugins/flashplugin-alternative.so (firefox-flashplugin) in auto mode.
    update-alternatives: error: unable to make /usr/lib/firefox/plugins/flashplugin-alternative.so.dpkg-tmp a symlink to /etc/alternatives/firefox-flashplugin: No such file or directory
    dpkg: error processing adobe-flashplugin (--configure):
    subprocess installed post-installation script returned error exit status 2
    Errors were encountered while processing:
    These are actually different errors.

    The first one from your first post was trying to remove flash.

    The second one is trying to install it. This second error would have caused the first.

    Another thing to note is: 10.0.12.36-1hardy1.

    What version of Ubuntu are you using ? Do you have hardy sources in your source file ?

    Code:
    cat /etc/apt/sources.list
    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. #26
    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

    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, 0B of additional disk space will be used.
    Setting up adobe-flashplugin (10.0.12.36-1hardy1) ...
    update-alternatives: using /usr/lib/adobe-flashplugin/libflashplayer.so to provide /usr/lib/firefox/plugins/flashplugin-alternative.so (firefox-flashplugin) in auto mode.
    update-alternatives: error: unable to make /usr/lib/firefox/plugins/flashplugin-alternative.so.dpkg-tmp a symlink to /etc/alternatives/firefox-flashplugin: No such file or directory
    dpkg: error processing adobe-flashplugin (--configure):
    subprocess installed post-installation script returned error exit status 2
    Errors were encountered while processing:
    These are actually different errors.

    The first one from your first post was trying to remove flash.

    The second one is trying to install it. This second error would have caused the first.

    Another thing to note is: 10.0.12.36-1hardy1.

    What version of Ubuntu are you using ? Do you have hardy sources in your source file ?

    Code:
    cat /etc/apt/sources.list /etc/apt/sources.list.d/*
    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?

  7. #27
    Join Date
    Mar 2007
    Beans
    13

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

    Code:
    tstephenson@toms-laptop:~$ cat /etc/apt/sources.list /etc/apt/sources.list.d/*
    deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted
    deb http://us.archive.ubuntu.com/ubuntu/ natty main restricted multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ natty main restricted multiverse
    
    deb http://us.archive.ubuntu.com/ubuntu/ natty-updates restricted main multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ natty-updates restricted main multiverse
    deb http://security.ubuntu.com/ubuntu/ natty-security restricted main multiverse
    deb-src http://security.ubuntu.com/ubuntu/ natty-security restricted main multiverse
    deb http://extras.ubuntu.com/ubuntu natty main #Third party developers repository
    ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
    # You may comment out this entry, but any other modifications may be lost.
    ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
    # You may comment out this entry, but any other modifications may be lost.
    ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
    # You may comment out this entry, but any other modifications may be lost.
    I have just done upgrade(s) to get to 11.10 - But the OS announced that my crappy old Dell can't run unity. 1.8Gbz Pentium M and 512M RAM.

    That's OK cause this is not my office system, just a piece of lab equipment. I have never upgraded till today. Was hoping the upgrade process would realize the database is wrong, that the adobe-flashplugin isn't required. But alas, the system still complains.

    I'm going to remove the 12.04 CD from the list since the hardware won't support it.

    Tom S

  8. #28
    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

    Let's try to remove the abode install as opposed to fixing it.

    Code:
    echo 'exit 0;' | sudo tee /var/lib/dpkg/info/adobe-flashplugin.prerm
    Code:
    sudo apt-get remove --purge adobe-flashplugin
    Post back any errors.

    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. #29
    Join Date
    Apr 2009
    Beans
    2

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

    Code:
    username@ubuntu:~$ echo 'exit 0;' | sudo tee /var/lib/dpkg/info/adobe-flashplugin.prerm
    exit 0;
    
    username@ubuntu:~$ sudo apt-get remove --purge adobe-flashplugin
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      adobe-flashplugin*
    0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
    After this operation, 10.4 MB disk space will be freed.
    Do you want to continue [Y/n]? 
    
    (Reading database ... 217597 files and directories currently installed.)
    Removing adobe-flashplugin ...
    dpkg (subprocess): unable to execute installed pre-removal script (/var/lib/dpkg/info/adobe-flashplugin.prerm): Exec format error
    dpkg: error processing adobe-flashplugin (--purge):
     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)

  10. #30
    Join Date
    Apr 2009
    Beans
    2

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

    I solved this by downloading the latest adobe-flashplugin and installing it.
    I think I might be missing a partner PPA statement in my apt sources.

    found here:
    http://www.ubuntuupdates.org/package...be-flashplugin


    Code:
    username@ubuntu:/tmp$ wget http://archive.canonical.com/ubuntu/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.233-0oneiric1_i386.deb
    
    --2012-05-07 11:41:40--  http://archive.canonical.com/ubuntu/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.233-0oneiric1_i386.deb
    Resolving archive.canonical.com... 91.189.92.150, 91.189.92.191
    Connecting to archive.canonical.com|91.189.92.150|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 6591218 (6.3M) [application/x-debian-package]
    Saving to: `adobe-flashplugin_11.2.202.233-0oneiric1_i386.deb'
    
    100%[======================================>] 6,591,218    130K/s   in 48s     
    
    2012-05-07 11:42:28 (135 KB/s) - `adobe-flashplugin_11.2.202.233-0oneiric1_i386.deb' saved [6591218/6591218]
    
    username@ubuntu:/tmp$ sudo dpkg -i adobe-flashplugin_11.2.202.233-0oneiric1_i386.deb 
    
    Selecting previously deselected package adobe-flashplugin.
    (Reading database ... 217599 files and directories currently installed.)
    Preparing to replace adobe-flashplugin 10.0.32.18-1 (using adobe-flashplugin_11.2.202.233-0oneiric1_i386.deb) ...
    dpkg (subprocess): unable to execute old pre-removal script (/var/lib/dpkg/info/adobe-flashplugin.prerm): Exec format error
    dpkg: warning: subprocess old pre-removal script returned error exit status 2
    dpkg - trying script from the new package instead ...
    dpkg: ... it looks like that went OK.
    Unpacking replacement adobe-flashplugin ...
    Setting up adobe-flashplugin (11.2.202.233-0oneiric1) ...
    update-alternatives: using /usr/lib/adobe-flashplugin/libflashplayer.so to provide /usr/lib/mozilla/plugins/flashplugin-alternative.so (mozilla-flashplugin) in auto mode.
    Processing triggers for hicolor-icon-theme ...

Page 3 of 8 FirstFirst 12345 ... 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
  •