dpkg broken after crash
Hi there, I'm having a problem with my ldebian/unstable linux.
I started upgrading the computer when it suddenly crashed.
When I rebooted and tried to continue the upgrade a lot of problems occured. I fixed some of them but I have this problem:
================
Do you want to continue? [Y/n]
(Reading database ... 104578 files and directories currently installed.)
Preparing to replace planner 0.12-2 (using .../planner_0.12-3_i386.deb) ...
Unpacking replacement planner ...
/usr/bin/update-mime-database: error while loading shared libraries: /usr/lib/libxml2.so.2: invalid ELF header
dpkg: warning - old post-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
/usr/bin/update-mime-database: error while loading shared libraries: /usr/lib/libxml2.so.2: invalid ELF header
dpkg: error processing /var/cache/apt/archives/planner_0.12-3_i386.deb (--unpack):
subprocess new post-removal script returned error exit status 127
/usr/bin/update-mime-database: error while loading shared libraries: /usr/lib/libxml2.so.2: invalid ELF header
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/planner_0.12-3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
================
It seems to be a problem with the linker because if I issue ldconfig it sais:
================
ldconfig: /usr/lib/libgpm.so.1.19.6 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /usr/lib/libatk-1.0.so.0.600.1 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /usr/lib/libMagick.so.6.0.6 is not an ELF file - it has the wrong magic bytes at the start
================
This goes on for many libraries. Is there a way to fix the problem?
thanks
|