package dragonplayer 4:4.2.2-0ubuntu2 failed to install/upgrade: subprocess post-removal script returned error exit status 2

Asked by sawbuck

Binary package hint: kdemultimedia

Mythbuntu 9.04
dunno pkg version
crash occured during udate download/install
Well.....it crashed :(

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-removal script returned error exit status 2
NonfreeKernelModules: nvidia
Package: dragonplayer 4:4.2.2-0ubuntu2
SourcePackage: kdemultimedia
Title: package dragonplayer 4:4.2.2-0ubuntu2 failed to install/upgrade: subprocess post-removal script returned error exit status 2
Uname: Linux 2.6.28-14-generic i686

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu kdemultimedia Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
sawbuck (fghamilton) said :
#1
Revision history for this message
Jonathan Thomas (echidnaman) said :
#2

Looking at the logs there seems to be something majorly wrong with your system. While we can't do anything with the dragon player package to fix anything, we will be turning this bug report into a support question so that hopefully you will be able to get some help with the issue. Thanks for reporting this bug anyway, and have a nice day.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#3

Hi,

First please make sure to close all open programs, including all package managers like Synaptic, Add/remove programs, etc ...

Then please try this procedure:

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Please COPY-PASTE each line below into the Terminal then hit <enter> after each line)

sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo rm /var/lib/dpkg/info/*
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm /var/lib/apt/lists/*
sudo mkdir /var/lib/apt/lists/partial
sudo aptitude clean
sudo aptitude autoclean
sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo aptitude install -f
sudo aptitude update
sudo aptitude dist-upgrade

Step 3: Please post results (copy/paste terminal output from each command) on this thread

Hope it helps,

Regards,

Mark

Revision history for this message
sawbuck (fghamilton) said :
#4

Mark,
After the following command (first one):
     sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
the system chugged r\for awhile then back with a prompt. I entered the next command (second) one:
     sudo rm /var/lib/dpkg/info/*

and in no time the prompt is back with the following message:
    sudo: unable to execute /bin/rm: Argument list too long

I stopped there. I'm guessing I have a majorly screwed o/s at this point. Is there anyway of clearing the defunct upgrade attempts (the "long list - I guess) and start again?

BTW, between my initial attempt when I sent the bug report, I tried the package manage which said I had 4 broken packages and the fix command came back saying it was fixed. Ran updater again with same problems. BTW, here is the error dump of what happens when I run updater:

**************dump follows*****************

E: /var/cache/apt/archives/libgl1-mesa-glx_7.4-0ubuntu3.2_i386.deb: subprocess new post-removal script returned error exit status 2
E: /var/cache/apt/archives/libplasma3_4%3a4.2.2-0ubuntu5.1_i386.deb: subprocess new post-removal script returned error exit status 2
E: /var/cache/apt/archives/kdelibs5-data_4%3a4.2.2-0ubuntu5.1_all.deb: subprocess pre-installation script returned error exit status 2
E: /var/cache/apt/archives/kdelibs5_4%3a4.2.2-0ubuntu5.1_i386.deb: subprocess new post-removal script returned error exit status 2
E: /var/cache/apt/archives/linux-image-2.6.28-15-generic_2.6.28-15.49_i386.deb: subprocess pre-installation script returned error exit status 2
E: /var/cache/apt/archives/linux-restricted-modules-common_2.6.28-15.20_all.deb: subprocess pre-installation script returned error exit status 2
E: /var/cache/apt/archives/tzdata_2009l-0ubuntu0.9.04_all.deb: subprocess new post-removal script returned error exit status 2

I'm a linux/ubuntu greenie and have a lot of work to do to understand what I'm doing so if you can refer me to good source to understand THIS part of it I would appreciate it.

/Frank

Revision history for this message
sawbuck (fghamilton) said :
#5

Mark,

After the following command (first one):

     sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup

the system chugged r\for awhile then back with a prompt. I entered the next command (second) one:

     sudo rm /var/lib/dpkg/info/*

and in no time the prompt is back with the following message:

    sudo: unable to execute /bin/rm: Argument list too long

I stopped there. I'm guessing I have a majorly screwed o/s at this
point. Is there anyway of clearing the defunct upgrade attempts (the
"long list - I guess) and start again?

BTW, between my initial attempt when I sent the bug report, I tried
the package manage which said I had 4 broken packages and the fix
command came back saying it was fixed. Ran updater again with same
problems. BTW, here is the error dump of what happens when I run
updater:

**************dump follows*****************

E: /var/cache/apt/archives/libgl1-mesa-glx_7.4-0ubuntu3.2_i386.deb: subprocess new post-removal script returned error exit status 2

E: /var/cache/apt/archives/libplasma3_4%3a4.2.2-0ubuntu5.1_i386.deb: subprocess new post-removal script returned error exit status 2

E: /var/cache/apt/archives/kdelibs5-data_4%3a4.2.2-0ubuntu5.1_all.deb: subprocess pre-installation script returned error exit status 2

E: /var/cache/apt/archives/kdelibs5_4%3a4.2.2-0ubuntu5.1_i386.deb: subprocess new post-removal script returned error exit status 2

E: /var/cache/apt/archives/linux-image-2.6.28-15-generic_2.6.28-15.49_i386.deb: subprocess pre-installation script returned error exit status 2

E: /var/cache/apt/archives/linux-restricted-modules-common_2.6.28-15.20_all.deb: subprocess pre-installation script returned error exit status 2

E: /var/cache/apt/archives/tzdata_2009l-0ubuntu0.9.04_all.deb: subprocess new post-removal script returned error exit status 2

I'm a linux/ubuntu greenie and have a lot of work to do to
understand what I'm doing so if you can refer me to good source to
understand THIS part of it I would appreciate it.

/Frank

> To: <email address hidden>
> From: <email address hidden>
> Subject: Re: [Question #81058]: package dragonplayer 4:4.2.2-0ubuntu2 failed to install/upgrade: subprocess post-removal script returned error exit status 2
> Date: Thu, 27 Aug 2009 06:40:33 +0000
>
> Your question #81058 on kdemultimedia in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/kdemultimedia/+question/81058
>
> Status: Open => Answered
>
> Mark Rijckenberg proposed the following answer:
> Hi,
>
> First please make sure to close all open programs, including all package
> managers like Synaptic, Add/remove programs, etc ...
>
> Then please try this procedure:
>
> Step 1: Open Terminal from "Applications->Accessories->
> Terminal"
>
> Step 2: Please COPY-PASTE each line below into the Terminal then hit
> <enter> after each line)
>
> sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
> sudo rm /var/lib/dpkg/info/*
> sudo rm -rf /var/lib/dpkg/updates/*
> sudo rm /var/lib/apt/lists/*
> sudo mkdir /var/lib/apt/lists/partial
> sudo aptitude clean
> sudo aptitude autoclean
> sudo apt-get update
> sudo dpkg --clear-avail
> sudo dpkg --configure -a
> sudo aptitude install -f
> sudo aptitude update
> sudo aptitude dist-upgrade
>
> Step 3: Please post results (copy/paste terminal output from each
> command) on this thread
>
> Hope it helps,
>
> Regards,
>
> Mark
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/kdemultimedia/+question/81058/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/kdemultimedia/+question/81058
>
> You received this question notification because you are a direct
> subscriber of the question.

_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_facebook:082009

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#6

Hi Frank,

First please make sure to close all open programs, including all package managers like Synaptic, Add/remove programs, etc ...

Then simply ignore the message "sudo: unable to execute /bin/rm: Argument list too long" and continue with the rest of the commands:

Ignore the next error messages as well.

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Please COPY-PASTE each line below into the Terminal then hit <enter> after each line)

sudo rm -rf /var/lib/dpkg/updates/*
sudo rm /var/lib/apt/lists/*
sudo mkdir /var/lib/apt/lists/partial
sudo aptitude clean
sudo aptitude autoclean
sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo aptitude install -f
sudo aptitude update
sudo aptitude dist-upgrade

Step 3: Please post results (copy/paste terminal output from each command) on this thread

Hope it helps,

Regards,

Mark

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#7

Here is more info on using apt-get and aptitude:

https://help.ubuntu.com/community/AptGet/Howto
https://help.ubuntu.com/community/InstallingSoftware

aptitude is very similar to apt-get but I prefer using aptitude. Just a personal opinion ;-)

Can you help with this problem?

Provide an answer of your own, or ask sawbuck for more information if necessary.

To post a message you must log in.