PDA

View Full Version : [ubuntu] [SOLVED] dpkg --configure libpcre3 fails



xmarket
July 21st, 2008, 10:39 AM
I did an automatic update on last Friday from gnome: linux-headers(.36), libpcre3(2.1), libpango, evolution stuffs....

The process failed on linux-header, after ~10minutes I did a reset, but normal boot reported a "softlock" stuff, I did a recovery boot and I could run "dpkg --configure -a", which repaired the linux-header..., but pcre3 already failed

now dpkg reports: libpcre3_7.4-1ubuntu2.1: post-installation script: Exec format error (errorcode 2)

az every stuff depending on pcre reports: /usr/lib/libpcre.so.3: file too short

"apt-get install --reinstall libpcre3" doesn't work

any help?

bapoumba
July 21st, 2008, 11:49 AM
I did an automatic update on last Friday from gnome: linux-headers(.36), libpcre3(2.1), libpango, evolution stuffs....

The process failed on linux-header, after ~10minutes I did a reset, but normal boot reported a "softlock" stuff, I did a recovery boot and I could run "dpkg --configure -a", which repaired the linux-header..., but pcre3 already failed

now dpkg reports: libpcre3_7.4-1ubuntu2.1: post-installation script: Exec format error (errorcode 2)

az every stuff depending on pcre reports: /usr/lib/libpcre.so.3: file too short

"apt-get install --reinstall libpcre3" doesn't work

any help?
Please try to rename /usr/lib/libpcre.so.3 to something else (do not remove it yet, just in case), and run:

sudo apt-get update
sudo apt-get install libpcre3


Paste the complete error output, if any.

xmarket
July 21st, 2008, 01:43 PM
I renamed the file to /usr/lib/libpcre3.so.3.orig

The output: (this is a hungarian box/translations added by me/)



Csomaglisták olvasása... /reading package lists/
Függőségi fa építése... /dependency tree/
Állapotinformációk olvasása... /reading state info/
libpcre3 már a legújabb verzió. /libpcre3 is the newest version/
0 frissített, 0 újonnan telepített, 0 eltávolítandó és 0 nem frissített. /update, install../
8 nincs teljesen telepítve/eltávolítva. /not fully installed.../
A művelet végrehajtása után 0B lemezterület kerül felhasználásra. /will be used/
Beállítás: libpango1.0-common (1.20.5-0ubuntu1) ... /Configuring:/
dpkg (alfolyamat): sikertelen futtatás: post-install script: Exec formátum hiba /dpkg (subprocess): unable to run: post-install script: Exec format error/
dpkg: hibás feldolgozás: libpango1.0-common (--configure): /dpkg: process error/
post-installation script alfolyamat 2 hibakóddal kilépett /subprocess exited by errorcode 2/
dpkg: függőségi gondok miatt nem beállítható e csomag: libpango1.0-0: /unable to configure because of dependency errors/
libpango1.0-0 függőségek: libpango1.0-common (>= 1.20.5-0ubuntu1); ám: /dependencies... but/
libpango1.0-common csomag még beállítatlan. (package not yet configured)
dpkg: hibás feldolgozás: libpango1.0-0 (--configure): /process error/
függőségi hibák - e csomag beállítatlan maradt /dependency errors - kept unconfigured/
dpkg: függőségi gondok miatt nem beállítható e csomag: libedataserverui1.2-8: /unable to configure because of dependency errors/
libedataserverui1.2-8 függőségek: libpango1.0-0 (>= 1.20.1); ám: /dependencies.../
libpango1.0-0 csomag még beállítatlan /not yet configured/
dpkg: hibás feldolgozás: libedataserverui1.2-8 (--configure):
függőségi hibák - e csomag beállítatlan maradt /kept unconfigured/
dpkg: függőségi gondok miatt nem beállítható e csomag: libexchange-storage1.2-3: /unable to configure.../
libexchange-storage1.2-3 függőségek: libpango1.0-0 (>= 1.20.1); ám:
libpango1.0-0 csomag még beállítatlan. /not yet configured/
dpkg: hibás feldolgozás: lebexchange-storage1.2-3 (--configure):
függőségi hibák - e csomag beállítatlan maradt /kept unconfigured/
dpkg: függőségi gondok miatt nem beállítható e csomag: evolution: /unable to configure.../
evolution függőségek: libedataserverui1.2-8 (>= 2.22.2); ám:
libedataserverui1.2-8 csomag még beállítatlan. /not yet configured/
evolution függőségek: libexchange-storage1.2-3 (>= 2.22.2); ám:
libexchange-storage1.2-3 csomag még beállítatlan.
evolution függőségek: libpango1.0-0 (>= 1.20.1); ám:
libpango1.0-0 csomag még beállítatlan.
dpkg: hibás feldolgozás: evolution (--configure): /process error/
függőségi hibák - e csomag beállítatlan maradt /kept unconfigured/
dpkg: függőségi gondok miatt nem beállítható e csomag: evolution-plugins: /unable to conf.../
evolution-plugins függőségek: evolution (2.22.3.1); ám:
evolution csomag még beálítatlan. /not yet configured/
evolution-plugins függőségek: libedataserverui1.2-8 (>= 2.22.2); ám:
libedataserverui1.2-8 csomag még beállítatlan.
evolution-plugins függőségek: libpango1.0-0 (>= 1.20.1); ám:
libpango1.0-0 csomag még beállítatlan.
dpkg: hibás feldolgozás: evolution-plugins (--configure):
függőségi hibák - e csomag beállítatlan maradt /kept unconfigured/
Beállítás: libpcre3 (7.4-1ubuntu2.1) ... /Configuring.../
dpkg (alfolyamat): sikertelen futtatás: post-installation script: Exec formátum hiba /dpkg (subprocess): unable to run: post-install script: Exec format error/
dpkg: hibás feldolgozás: libpcre3 (--configure):
post-installation script alfolyamat 2 hibakóddel kilépett /subprocess exited by errorcode 2/
dpkg: függőségi gondok miatt nem beállítható e csomag: libpcrecpp0: /unable to conf.../
libpcrecpp0 függőségek: libpcre3 (>= 7.4); ám:
libpcre3 csomag még beállítatlan. /not yet configured/
dpkg: hibás feldolgozás: libpcrecpp0 (--configure):
függőségi hibák - e csomag beállítatlan maradt /kept unconfigured/
Hibák történetek a feldolgozáskor: /errors/
libpango1.0-common
libpango1.0-0
libedataserverui1.2-8
libexchange-storage1.2-3
evolution
evolution-plugins
libpcre3
libpcrecpp0

xmarket
July 21st, 2008, 01:58 PM
A few more info:

This is a 8.04.1 box upgraded from 7.10 by update manager(~ a month ago)


dpkg --configure -a
... had the same output before the rename


There are kinit error messages on boot:
kinit: name_to_dev_t(/dev/disk/by-uuid/{bla-bla}) = sda2(8,2)
kinit: trying to resume from /dev/disk/by-uuid/{same bla-bla}
kinit: No resume image, doing normal boot...


gdm running(there is a stoping line on halt), but I can use the console only

Well, don't know why, but all of hte reported packages were broken. downloaded them manually from the repo, and installed them by dpkg. Now everythink works as before.... :D

bapoumba
July 22nd, 2008, 02:58 PM
I'm very glad to see you got it to work all by yourself :)
Probably the files downloading when the process was interrupted were corrupt (or a corrupt file interrupted the upgrade process). Downloading them again and using dpkg to install was the way to go if only a text-based interface was available. Congrats :)