dpkg (subprocess): unable to execute installed post-removal script: Exec format error -> dpkg: error processing libmad0 (--purge) -> apt-get and aptitude package manager broken
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
9 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up liba52-0.7.4 (0.7.4-13ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing liba52-0.7.4 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libid3tag0 (0.15.1b-10build2) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libid3tag0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libmad0 (0.15.1b-4ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmad0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libmpeg2-4 (0.4.1-3) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmpeg2-4 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libopencore-amrnb0 (0.1.2-1) ...
No apport report written because MaxReports has already been reached
dpkg: error processing libopencore-amrnb0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libopencore-amrwb0 (0.1.2-1) ...
No apport report written because MaxReports has already been reached
dpkg: error processing libopencore-amrwb0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libsidplay1 (1.36.59-5) ...
No apport report written because MaxReports has already been reached
dpkg: error processing libsidplay1 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libtwolame0 (0.3.12-1) ...
No apport report written because MaxReports has already been reached
dpkg: error processing libtwolame0 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of gstreamer0.
gstreamer0.
Package liba52-0.7.4 is not configured yet.
gstreamer0.
Package libid3tag0 is not configured yet.
gstreamer0.
Package libmad0 is not configured yet.
gstreamer0.
Package libmpeg2-4 is not configured yet.
gstreamer0.
Package libopencore-amrnb0 is not configured yet.
gstreamer0.
Package libopencore-amrwb0 is not configured yet.
gstreamer0.
Package libsidplay1 is not configured yet.
gstreamer0.
Package libtwolame0 is not configured yet.
dpkg: error processing gstreamer0.
dependency problems - leaving unconfigured
Errors were encountered while processing:
liba52-0.7.4
libid3tag0
libmad0
libmpeg2-4
libopencore-amrnb0
libopencore-amrwb0
libsidplay1
libtwolame0
gstreamer0.
E: Sub-process /usr/bin/dpkg returned an error code (1)
CAN ANYONE PLZ HELP ME HOW TO GET RID OF THIS PROBLEM?
I have tried doing:
apt-get -f install
apt-get upgrade
apt-get clean
neither of them worked for me.plz help me!!!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu dpkg Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Mark Rijckenberg
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
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-
Terminal"
Step 2: Please COPY-PASTE each line below into the Terminal then hit <enter> after each line)
Tip: If you have a wheel mouse or 3 button mouse, you do not need to type commands into the Terminal. Highlight the command written on the webpage. Move your cursor anywhere in the Terminal and press the wheel or middle button. Automatic Copy and paste! No spelling mistakes! No Typos! No other errors!
cat /etc/lsb-release
uname -a
sudo rm /var/lib/
sudo cp -arf /var/lib/dpkg /var/lib/
sudo cp /var/lib/
sudo cp /var/lib/
sudo rm -rf /var/lib/
sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/
LANG=C;sudo aptitude clean
LANG=C;sudo aptitude autoclean
LANG=C;sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo aptitude install -f
LANG=C;sudo aptitude update
LANG=C;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
|
#2 |
sunny@sunny-
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
sunny@sunny-
Linux sunny-laptop 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux
sunny@sunny-
[sudo] password for sunny:
sunny@sunny-
sunny@sunny-
sunny@sunny-
sunny@sunny-
sunny@sunny-
sunny@sunny-
sunny@sunny-
sunny@sunny-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
Writing extended state information... Done
sunny@sunny-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Freed 0B of disk space
sunny@sunny-
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Fetched 11.4MB in 23s (476kB/s)
Reading package lists... Done
sunny@sunny-
sunny@sunny-
Setting up liba52-0.7.4 (0.7.4-13ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing liba52-0.7.4 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libopencore-amrwb0 (0.1.2-1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libopencore-amrwb0 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of gstreamer0.
gstreamer0.
Package liba52-0.7.4 is not configured yet.
gstreamer0.
Package libopencore-amrwb0 is not configured yet.
dpkg: error processing gstreamer0.
dependency problems - leaving unconfigured
Setting up libtwolame0 (0.3.12-1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libtwolame0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libopencore-amrnb0 (0.1.2-1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libopencore-amrnb0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libsidplay1 (1.36.59-5) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libsidplay1 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libmpeg2-4 (0.4.1-3) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmpeg2-4 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libmad0 (0.15.1b-4ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmad0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libid3tag0 (0.15.1b-10build2) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libid3tag0 (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
liba52-0.7.4
libopencore-amrwb0
gstreamer0.
libtwolame0
libopencore-amrnb0
libsidplay1
libmpeg2-4
libmad0
libid3tag0
sunny@sunny-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following partially installed packages will be configured:
gstreamer0.
libsidplay1 libtwolame0
0 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up liba52-0.7.4 (0.7.4-13ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing liba52-0.7.4 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libid3tag0 (0.15.1b-10build2) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libid3tag0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libmad0 (0.15.1b-4ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmad0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libmpeg2-4 (0.4.1-3) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmpeg2-4 (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libopencore-amrnb0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libopencore-amrwb0 (0.1.2-1) ...
No apport report written because MaxReports is reached already
dpkg: error processing libopencore-amrwb0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libsidplay1 (1.36.59-5) ...
No apport report written because MaxReports is reached already
dpkg: error processing libsidplay1 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libtwolame0 (0.3.12-1) ...
No apport report written because MaxReports is reached already
dpkg: error processing libtwolame0 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of gstreamer0.
gstreamer0.
Package liba52-0.7.4 is not configured yet.
gstreamer0.
Package libid3tag0 is not configured yet.
gstreamer0.
Package libmad0 is not configured yet.
gstreamer0.
Package libmpeg2-4 is not configured yet.
gstreamer0.
Package libopencore-amrnb0 is not configured yet.
gstreamer0.
Package libopencore-amrwb0 is not configured yet.
gstreamer0.
Package libsidplay1 is not configured yet.
gstreamer0.
Package libtwolame0 is not configured yet.
dpkg: error processing gstreamer0.
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
liba52-0.7.4
libid3tag0
libmad0
libmpeg2-4
libopencore-amrnb0
libopencore-amrwb0
libsidplay1
libtwolame0
gstreamer0.
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up liba52-0.7.4 (0.7.4-13ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing liba52-0.7.4 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libopencore-amrwb0 (0.1.2-1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libopencore-amrwb0 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of gstreamer0.
gstreamer0.
Package liba52-0.7.4 is not configured yet.
gstreamer0.
Package libopencore-amrwb0 is not configured yet.
dpkg: error processing gstreamer0.
dependency problems - leaving unconfigured
Setting up libtwolame0 (0.3.12-1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libtwolame0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libopencore-amrnb0 (0.1.2-1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libopencore-amrnb0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libsidplay1 (1.36.59-5) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libsidplay1 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libmpeg2-4 (0.4.1-3) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmpeg2-4 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libmad0 (0.15.1b-4ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmad0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libid3tag0 (0.15.1b-10build2) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libid3tag0 (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
liba52-0.7.4
libopencore-amrwb0
gstreamer0.
libtwolame0
libopencore-amrnb0
libsidplay1
libmpeg2-4
libmad0
libid3tag0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
sunny@sunny-
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Reading package lists... Done
sunny@sunny-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
linux-
The following packages will be REMOVED:
linux-
The following packages will be upgraded:
linux-generic linux-headers-
The following partially installed packages will be configured:
gstreamer0.
libsidplay1 libtwolame0
3 packages upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
Need to get 41.5MB of archives. After unpacking 96.9MB will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Fetched 41.5MB in 1min 17s (536kB/s)
Selecting previously deselected package linux-headers-
(Reading database ... 133089 files and directories currently installed.)
Unpacking linux-headers-
Selecting previously deselected package linux-headers-
Unpacking linux-headers-
Preparing to replace linux-headers-
Unpacking replacement linux-headers-
(Reading database ... 151496 files and directories currently installed.)
Removing linux-headers-
Removing linux-headers-
Selecting previously deselected package linux-image-
(Reading database ... 133090 files and directories currently installed.)
Unpacking linux-image-
Done.
Preparing to replace linux-generic 2.6.32.21.22 (using .../linux-
Unpacking replacement linux-generic ...
Preparing to replace linux-image-generic 2.6.32.21.22 (using .../linux-
Unpacking replacement linux-image-generic ...
Setting up liba52-0.7.4 (0.7.4-13ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing liba52-0.7.4 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libid3tag0 (0.15.1b-10build2) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libid3tag0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libmad0 (0.15.1b-4ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmad0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libmpeg2-4 (0.4.1-3) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmpeg2-4 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libopencore-amrnb0 (0.1.2-1) ...
No apport report written because MaxReports is reached already
dpkg: error processing libopencore-amrnb0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libopencore-amrwb0 (0.1.2-1) ...
No apport report written because MaxReports is reached already
dpkg: error processing libopencore-amrwb0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libsidplay1 (1.36.59-5) ...
No apport report written because MaxReports is reached already
dpkg: error processing libsidplay1 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libtwolame0 (0.3.12-1) ...
No apport report written because MaxReports is reached already
dpkg: error processing libtwolame0 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of gstreamer0.
gstreamer0.
Package liba52-0.7.4 is not configured yet.
gstreamer0.
Package libid3tag0 is not configured yet.
gstreamer0.
Package libmad0 is not configured yet.
gstreamer0.
Package libmpeg2-4 is not configured yet.
gstreamer0.
Package libopencore-amrnb0 is not configured yet.
gstreamer0.
Package libopencore-amrwb0 is not configured yet.
gstreamer0.
Package libsidplay1 is not configured yet.
gstreamer0.
Package libtwolame0 is not configured yet.
dpkg: error processing gstreamer0.
dependency problems - leaving unconfigured
Setting up linux-headers-
Setting up linux-headers-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Setting up linux-headers-
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Running postinst hook script /usr/sbin/
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Setting up linux-image-generic (2.6.32.22.23) ...
Setting up linux-generic (2.6.32.22.23) ...
Errors were encountered while processing:
liba52-0.7.4
libid3tag0
libmad0
libmpeg2-4
libopencore-amrnb0
libopencore-amrwb0
libsidplay1
libtwolame0
gstreamer0.
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up liba52-0.7.4 (0.7.4-13ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing liba52-0.7.4 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libopencore-amrwb0 (0.1.2-1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libopencore-amrwb0 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of gstreamer0.
gstreamer0.
Package liba52-0.7.4 is not configured yet.
gstreamer0.
Package libopencore-amrwb0 is not configured yet.
dpkg: error processing gstreamer0.
dependency problems - leaving unconfigured
Setting up libtwolame0 (0.3.12-1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libtwolame0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libopencore-amrnb0 (0.1.2-1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libopencore-amrnb0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libsidplay1 (1.36.59-5) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libsidplay1 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libmpeg2-4 (0.4.1-3) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmpeg2-4 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libmad0 (0.15.1b-4ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmad0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libid3tag0 (0.15.1b-10build2) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libid3tag0 (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
liba52-0.7.4
libopencore-amrwb0
gstreamer0.
libtwolame0
libopencore-amrnb0
libsidplay1
libmpeg2-4
libmad0
libid3tag0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Current status: 0 updates [-3].
Revision history for this message
|
#3 |
Hey Mark thanks for attending to my problem again.I will soon gain mastery over this.So that i wont be bothering you like this.
Revision history for this message
|
#4 |
After getting the stated error, input the following command to your terminal:
sudo apt-get -f install
HTH.
Revision history for this message
|
#5 |
First run this command to get rid of the problematic package dependencies:
sudo aptitude purge gstreamer0.
The command starts with sudo and ends with libid3tag0 at the very end of the command.
Then run these commands again:
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo aptitude install -f
LANG=C;sudo aptitude update
LANG=C;sudo aptitude dist-upgrade
Revision history for this message
|
#6 |
@Ian: he already ran that command and it did not help.
Revision history for this message
|
#7 |
sunny@sunny-
[sudo] password for sunny:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
The following packages will be REMOVED:
gstreamer0.
libsidplay1{p} libtwolame0{p}
The following partially installed packages will be configured:
libmad0
0 packages upgraded, 0 newly installed, 8 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 2,634kB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 136473 files and directories currently installed.)
Removing gstreamer0.
Removing liba52-0.7.4 ...
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing liba52-0.7.4 (--purge):
subprocess installed post-removal script returned error exit status 2
Removing libid3tag0 ...
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing libid3tag0 (--purge):
subprocess installed post-removal script returned error exit status 2
Removing libmpeg2-4 ...
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing libmpeg2-4 (--purge):
subprocess installed post-removal script returned error exit status 2
Removing libopencore-amrnb0 ...
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing libopencore-amrnb0 (--purge):
subprocess installed post-removal script returned error exit status 2
No apport report written because MaxReports has already been reached
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing libopencore-amrwb0 (--purge):
subprocess installed post-removal script returned error exit status 2
No apport report written because MaxReports has already been reached
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing libsidplay1 (--purge):
subprocess installed post-removal script returned error exit status 2
No apport report written because MaxReports has already been reached
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing libtwolame0 (--purge):
subprocess installed post-removal script returned error exit status 2
No apport report written because MaxReports has already been reached
liba52-0.7.4
libid3tag0
libmpeg2-4
libopencore-amrnb0
libopencore-amrwb0
libsidplay1
libtwolame0
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up libmad0 (0.15.1b-4ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmad0 (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
libmad0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Writing extended state information... Done
sunny@sunny-
sunny@sunny-
Setting up libmad0 (0.15.1b-4ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmad0 (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
libmad0
sunny@sunny-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be REMOVED:
liba52-0.7.4{p} libid3tag0{p} libmpeg2-4{p} libopencore-
The following partially installed packages will be configured:
libmad0
0 packages upgraded, 0 newly installed, 7 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 1323kB will be freed.
Do you want to continue? [Y/n/?] y
(Reading database ... 136359 files and directories currently installed.)
Removing liba52-0.7.4 ...
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing liba52-0.7.4 (--purge):
subprocess installed post-removal script returned error exit status 2
Removing libid3tag0 ...
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing libid3tag0 (--purge):
subprocess installed post-removal script returned error exit status 2
Removing libmpeg2-4 ...
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing libmpeg2-4 (--purge):
subprocess installed post-removal script returned error exit status 2
Removing libopencore-amrnb0 ...
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing libopencore-amrnb0 (--purge):
subprocess installed post-removal script returned error exit status 2
No apport report written because MaxReports is reached already
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing libopencore-amrwb0 (--purge):
subprocess installed post-removal script returned error exit status 2
No apport report written because MaxReports is reached already
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing libsidplay1 (--purge):
subprocess installed post-removal script returned error exit status 2
No apport report written because MaxReports is reached already
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing libtwolame0 (--purge):
subprocess installed post-removal script returned error exit status 2
No apport report written because MaxReports is reached already
liba52-0.7.4
libid3tag0
libmpeg2-4
libopencore-amrnb0
libopencore-amrwb0
libsidplay1
libtwolame0
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up libmad0 (0.15.1b-4ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmad0 (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
libmad0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
sunny@sunny-
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Reading package lists... Done
sunny@sunny-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following partially installed packages will be configured:
libmad0
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 384kB of archives. After unpacking 0B will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Fetched 384kB in 1s (244kB/s)
Selecting previously deselected package liba52-0.7.4.
(Reading database ... 136360 files and directories currently installed.)
Preparing to replace liba52-0.7.4 0.7.4-13ubuntu1 (using .../liba52-
Unpacking replacement liba52-0.7.4 ...
dpkg (subprocess): unable to execute old post-removal script: Exec format error
dpkg: warning: old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: ... it looks like that went OK.
Selecting previously deselected package libid3tag0.
Preparing to replace libid3tag0 0.15.1b-10build2 (using .../libid3tag0_
Unpacking replacement libid3tag0 ...
dpkg (subprocess): unable to execute old post-removal script: Exec format error
dpkg: warning: old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: ... it looks like that went OK.
Selecting previously deselected package libmpeg2-4.
Preparing to replace libmpeg2-4 0.4.1-3 (using .../libmpeg2-
Unpacking replacement libmpeg2-4 ...
dpkg (subprocess): unable to execute old post-removal script: Exec format error
dpkg: warning: old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: ... it looks like that went OK.
Selecting previously deselected package libopencore-amrnb0.
Preparing to replace libopencore-amrnb0 0.1.2-1 (using .../libopencore
Unpacking replacement libopencore-amrnb0 ...
dpkg (subprocess): unable to execute old post-removal script: Exec format error
dpkg: warning: old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: ... it looks like that went OK.
Selecting previously deselected package libopencore-amrwb0.
Preparing to replace libopencore-amrwb0 0.1.2-1 (using .../libopencore
Unpacking replacement libopencore-amrwb0 ...
dpkg (subprocess): unable to execute old post-removal script: Exec format error
dpkg: warning: old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: ... it looks like that went OK.
Selecting previously deselected package libsidplay1.
Preparing to replace libsidplay1 1.36.59-5 (using .../libsidplay1
Unpacking replacement libsidplay1 ...
dpkg (subprocess): unable to execute old post-removal script: Exec format error
dpkg: warning: old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: ... it looks like that went OK.
Selecting previously deselected package libtwolame0.
Preparing to replace libtwolame0 0.3.12-1 (using .../libtwolame0
Unpacking replacement libtwolame0 ...
dpkg (subprocess): unable to execute old post-removal script: Exec format error
dpkg: warning: old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: ... it looks like that went OK.
Setting up liba52-0.7.4 (0.7.4-13ubuntu1) ...
Setting up libid3tag0 (0.15.1b-10build2) ...
Setting up libmad0 (0.15.1b-4ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmad0 (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libmpeg2-4 (0.4.1-3) ...
Setting up libopencore-amrnb0 (0.1.2-1) ...
Setting up libopencore-amrwb0 (0.1.2-1) ...
Setting up libsidplay1 (1.36.59-5) ...
Setting up libtwolame0 (0.3.12-1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
libmad0
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up libmad0 (0.15.1b-4ubuntu1) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing libmad0 (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
libmad0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Revision history for this message
|
#8 |
Run this command to get rid of the package libmad0
sudo aptitude purge libmad0
Then run these commands again:
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo aptitude install -f
LANG=C;sudo aptitude update
LANG=C;sudo aptitude dist-upgrade
Revision history for this message
|
#9 |
sunny@sunny-
[sudo] password for sunny:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
The following packages will be REMOVED:
libmad0{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 156kB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 136414 files and directories currently installed.)
Removing libmad0 ...
dpkg (subprocess): unable to execute installed post-removal script: Exec format error
dpkg: error processing libmad0 (--purge):
subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
libmad0
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Writing extended state information... Done
Revision history for this message
|
#10 |
Open terminal and run this command:
sudo rm /var/lib/
Then rerun this command:
sudo aptitude purge libmad0
This should fix the issue with libmad0
This solution is also described here:
.
Revision history for this message
|
#11 |
Thanks Mark Rijckenberg, that solved my question.