/usr/bin/dpkg: error while loading shared libraries: unexpected PLT reloc type 0x05408004

Asked by Ricardo Lopez on 2012-08-31

when running system update, ubuntu app store,apt-get, dpkg they all fail with same problem

terminal out

ricardo@ubuntu:/var/lib/dpkg/info$ sudo 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:
  libao-common odbcinst1debian2 libopenal-data odbcinst libc6-i386
  lib32asound2 esound-common lib32z1 mysql-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  ia32-libs icaclient nspluginwrapper skype
0 upgraded, 0 newly installed, 4 to remove and 9 not upgraded.
12 not fully installed or removed.
After this operation, 10.8 MB disk space will be freed.
Do you want to continue [Y/n]?
/usr/bin/dpkg: error while loading shared libraries: unexpected PLT reloc type 0x05408004
E: Sub-process /usr/bin/dpkg returned an error code (127)
ricardo@ubuntu:/var/lib/dpkg/info$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 ia32-libs : Depends: ia32-libs-multiarch but it is not installable
 nspluginwrapper : Depends: nspluginviewer (= 1.4.4-0ubuntu4) but it is not installable
 skype : Depends: skype-bin but it is not installable
E: Unmet dependencies. Try using -f.
ricardo@ubuntu:/var/lib/dpkg/info$ sudo apt-get autoremove -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  esound-common ia32-libs icaclient lib32asound2 lib32z1 libao-common
  libc6-i386 libopenal-data mysql-common nspluginwrapper odbcinst
  odbcinst1debian2 skype
0 upgraded, 0 newly installed, 13 to remove and 9 not upgraded.
12 not fully installed or removed.
After this operation, 22.3 MB disk space will be freed.
Do you want to continue [Y/n]?
/usr/bin/dpkg: error while loading shared libraries: unexpected PLT reloc type 0x05408004
E: Sub-process /usr/bin/dpkg returned an error code (127)
ricardo@ubuntu:/var/lib/dpkg/info$ ^C
ricardo@ubuntu:/var/lib/dpkg/info$ sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
ricardo@ubuntu:/var/lib/dpkg/info$ sudo apt-get update
Ign http://dl.google.com stable InRelease
Get:1 http://dl.google.com stable Release.gpg [198 B]
Get:2 http://dl.google.com stable Release
Get:3 http://dl.google.com stable/main amd64 Packages [1246 B]
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com precise-backports InRelease
Ign http://archive.ubuntu.com precise-security InRelease
Ign http://archive.canonical.com precise InRelease
Ign http://dl.google.com stable/main TranslationIndex
Hit http://archive.canonical.com precise Release.gpg
Hit http://archive.ubuntu.com precise Release.gpg
Get:4 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Hit http://archive.ubuntu.com precise-backports Release.gpg
Hit http://archive.canonical.com precise Release
Get:5 http://archive.ubuntu.com precise-security Release.gpg [198 B]
Ign http://dl.google.com stable/main Translation-en
Hit http://archive.canonical.com precise/partner amd64 Packages
Hit http://archive.ubuntu.com precise Release
Get:6 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Ign http://archive.canonical.com precise/partner TranslationIndex
Hit http://archive.ubuntu.com precise-backports Release
Get:7 http://archive.ubuntu.com precise-security Release [49.6 kB]
Hit http://archive.ubuntu.com precise/main Sources
Hit http://archive.ubuntu.com precise/restricted Sources
Hit http://archive.ubuntu.com precise/universe Sources
Hit http://archive.ubuntu.com precise/multiverse Sources
Hit http://archive.ubuntu.com precise/main amd64 Packages
Hit http://archive.ubuntu.com precise/restricted amd64 Packages
Hit http://archive.ubuntu.com precise/universe amd64 Packages
Hit http://archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Get:8 http://archive.ubuntu.com precise-updates/main Sources [159 kB]
Ign http://archive.canonical.com precise/partner Translation-en
Get:9 http://archive.ubuntu.com precise-updates/restricted Sources [3285 B]
Get:10 http://archive.ubuntu.com precise-updates/universe Sources [50.1 kB]
Get:11 http://archive.ubuntu.com precise-updates/multiverse Sources [4241 B]
Get:12 http://archive.ubuntu.com precise-updates/main amd64 Packages [375 kB]
Get:13 http://archive.ubuntu.com precise-updates/restricted amd64 Packages [6755 B]
Get:14 http://archive.ubuntu.com precise-updates/universe amd64 Packages [126 kB]
Get:15 http://archive.ubuntu.com precise-updates/multiverse amd64 Packages [8677 B]
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://archive.ubuntu.com precise-backports/main Sources
Hit http://archive.ubuntu.com precise-backports/restricted Sources
Hit http://archive.ubuntu.com precise-backports/universe Sources
Hit http://archive.ubuntu.com precise-backports/multiverse Sources
Hit http://archive.ubuntu.com precise-backports/main amd64 Packages
Hit http://archive.ubuntu.com precise-backports/restricted amd64 Packages
Hit http://archive.ubuntu.com precise-backports/universe amd64 Packages
Hit http://archive.ubuntu.com precise-backports/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-backports/universe TranslationIndex
Get:16 http://archive.ubuntu.com precise-security/main Sources [41.0 kB]
Get:17 http://archive.ubuntu.com precise-security/restricted Sources [1950 B]
Get:18 http://archive.ubuntu.com precise-security/universe Sources [12.2 kB]
Get:19 http://archive.ubuntu.com precise-security/multiverse Sources [1386 B]
Get:20 http://archive.ubuntu.com precise-security/main amd64 Packages [158 kB]
Get:21 http://archive.ubuntu.com precise-security/restricted amd64 Packages [3969 B]
Get:22 http://archive.ubuntu.com precise-security/universe amd64 Packages [41.5 kB]
Get:23 http://archive.ubuntu.com precise-security/multiverse amd64 Packages [2180 B]
Hit http://archive.ubuntu.com precise-security/main TranslationIndex
Hit http://archive.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-security/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-security/universe TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise/multiverse Translation-en
Hit http://archive.ubuntu.com precise/restricted Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://archive.ubuntu.com precise-updates/universe Translation-en
Hit http://archive.ubuntu.com precise-backports/main Translation-en
Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://archive.ubuntu.com precise-backports/universe Translation-en
Hit http://archive.ubuntu.com precise-security/main Translation-en
Hit http://archive.ubuntu.com precise-security/multiverse Translation-en
Hit http://archive.ubuntu.com precise-security/restricted Translation-en
Hit http://archive.ubuntu.com precise-security/universe Translation-en
Fetched 1098 kB in 3s (298 kB/s)
Reading package lists... Done
ricardo@ubuntu:/var/lib/dpkg/info$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 ia32-libs : Depends: ia32-libs-multiarch but it is not installable
 nspluginwrapper : Depends: nspluginviewer (= 1.4.4-0ubuntu4) but it is not installable
 skype : Depends: skype-bin but it is not installable
E: Unmet dependencies. Try using -f.
ricardo@ubuntu:/var/lib/dpkg/info$ sudo apt-get upgrade -0f
E: Command line option '0' [from -0f] is not known.
ricardo@ubuntu:/var/lib/dpkg/info$ sudo apt-get upgrade -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  ia32-libs icaclient nspluginwrapper skype
The following packages will be upgraded:
  google-chrome-stable icedtea-netx icedtea-netx-common python-gst0.10
  thunderbird thunderbird-globalmenu thunderbird-gnome-support
  thunderbird-locale-en thunderbird-locale-en-us
9 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
12 not fully installed or removed.
Need to get 57.5 MB of archives.
After this operation, 9925 kB disk space will be freed.
Do you want to continue [Y/n]?
Get:1 http://dl.google.com/linux/chrome/deb/ stable/main google-chrome-stable amd64 21.0.1180.89-r154005 [34.0 MB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main python-gst0.10 amd64 0.10.22-3ubuntu0.1 [295 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main thunderbird-globalmenu amd64 15.0+build1-0ubuntu0.12.04.1 [47.3 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ precise-updates/main thunderbird amd64 15.0+build1-0ubuntu0.12.04.1 [22.1 MB]
Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/main thunderbird-gnome-support amd64 15.0+build1-0ubuntu0.12.04.1 [9204 B]
Get:6 http://archive.ubuntu.com/ubuntu/ precise-updates/main thunderbird-locale-en amd64 1:15.0+build1-0ubuntu0.12.04.1 [366 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ precise-updates/main thunderbird-locale-en-us all 1:15.0+build1-0ubuntu0.12.04.1 [15.6 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ precise-updates/main icedtea-netx-common all 1.2-2ubuntu1.2 [595 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ precise-updates/main icedtea-netx amd64 1.2-2ubuntu1.2 [14.6 kB]
Fetched 57.5 MB in 49s (1156 kB/s)
/usr/bin/dpkg: error while loading shared libraries: unexpected PLT reloc type 0x05408004
E: Sub-process /usr/bin/dpkg returned an error code (127)
ricardo@ubuntu:/var/lib/dpkg/info$ 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:
  libao-common odbcinst1debian2 libopenal-data odbcinst libc6-i386 lib32asound2 esound-common
  lib32z1 mysql-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  ia32-libs icaclient nspluginwrapper skype
0 upgraded, 0 newly installed, 4 to remove and 9 not upgraded.
12 not fully installed or removed.
After this operation, 10.8 MB disk space will be freed.
Do you want to continue [Y/n]?
/usr/bin/dpkg: error while loading shared libraries: unexpected PLT reloc type 0x05408004
E: Sub-process /usr/bin/dpkg returned an error code (127)
ricardo@ubuntu:/var/lib/dpkg/info$ sudo apt-get autoremove -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  esound-common ia32-libs icaclient lib32asound2 lib32z1 libao-common libc6-i386 libopenal-data
  mysql-common nspluginwrapper odbcinst odbcinst1debian2 skype
0 upgraded, 0 newly installed, 13 to remove and 9 not upgraded.
12 not fully installed or removed.
After this operation, 22.3 MB disk space will be freed.
Do you want to continue [Y/n]?
/usr/bin/dpkg: error while loading shared libraries: unexpected PLT reloc type 0x05408004
E: Sub-process /usr/bin/dpkg returned an error code (127)

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu dpkg Edit question
Assignee:
No assignee Edit question
Last query:
2012-08-31
Last reply:
2012-09-16

How did you get Precise? Did you clean install it, or did you upgrade from an old release?

It is a clean WUBI install about 2 weeks old. I have had no issues installing software until today. Last thing I installed via apt-get was openjava7-jdk.

Try:

sudo fuser -vvv /var/lib/dpkg/lock
sudo rm /var/lib/apt/lists/lock
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo apt-get clean
LANG=C;sudo apt-get autoclean
LANG=C;sudo apt-get --purge autoremove
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo apt-get -f install
LANG=C;sudo apt-get --fix-missing install
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade

I'm pretty sure I've tried something similar before, but I will entertain. Got as far as the autoremove line. Below is my terminal contents. Thank you!

ricardo@ubuntu:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for ricardo:
ricardo@ubuntu:~$ sudo rm /var/lib/apt/lists/lock
ricardo@ubuntu:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
ricardo@ubuntu:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
ricardo@ubuntu:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
ricardo@ubuntu:~$ sudo rm -rf /var/lib/dpkg/updates/*
ricardo@ubuntu:~$ sudo rm -rf /var/lib/apt/lists
ricardo@ubuntu:~$ sudo rm /var/cache/apt/*.bin
ricardo@ubuntu:~$ sudo mkdir /var/lib/apt/lists
ricardo@ubuntu:~$ sudo mkdir /var/lib/apt/lists/partial
ricardo@ubuntu:~$ LANG=C;sudo apt-get clean
ricardo@ubuntu:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
ricardo@ubuntu:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 ia32-libs : Depends: ia32-libs-multiarch but it is not installable
 nspluginwrapper : Depends: nspluginviewer (= 1.4.4-0ubuntu4) but it is not installable
 skype : Depends: skype-bin but it is not installable
E: Unmet dependencies. Try using -f.
ricardo@ubuntu:~$

Tried with -f as suggested by autoremove above.

ricardo@ubuntu:~$ LANG=C;sudo apt-get --purge autoremove -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  esound-common* ia32-libs* icaclient* lib32asound2* lib32z1* libao-common*
  libc6-i386* libopenal-data* mysql-common* nspluginwrapper* odbcinst*
  odbcinst1debian2* skype*
0 upgraded, 0 newly installed, 13 to remove and 0 not upgraded.
12 not fully installed or removed.
After this operation, 22.3 MB disk space will be freed.
Do you want to continue [Y/n]?
/usr/bin/dpkg: error while loading shared libraries: unexpected PLT reloc type 0x05408004
E: Sub-process /usr/bin/dpkg returned an error code (127)

ricardo@ubuntu:~$ sudo dpkg --clear-avail
dpkg: error while loading shared libraries: unexpected PLT reloc type 0x05408004

Another attempt

ricardo@ubuntu:~$ 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:
  libao-common odbcinst1debian2 libopenal-data odbcinst libc6-i386
  lib32asound2 esound-common lib32z1 mysql-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  ia32-libs icaclient nspluginwrapper skype
0 upgraded, 0 newly installed, 4 to remove and 9 not upgraded.
12 not fully installed or removed.
After this operation, 10.8 MB disk space will be freed.
Do you want to continue [Y/n]?
/usr/bin/dpkg: error while loading shared libraries: unexpected PLT reloc type 0x05408004
E: Sub-process /usr/bin/dpkg returned an error code (127)
ricardo@ubuntu:~$

Launchpad Janitor (janitor) said : #8

This question was expired because it remained in the 'Open' state without activity for the last 15 days.