PDA

View Full Version : [ubuntu] dpkg broken:(



rbalage
April 17th, 2009, 06:38 PM
Hi,
my dpkg is broken after a failed upgrade.
root@balagesv:/var/lib/dpkg/info.backup# apt-get install libapache2-mod-xmlrpc2
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
root@balagesv:/var/lib/dpkg/info.backup# dpkg --configure -a
dpkg: failed in buffer_read(fd): `/var/lib/dpkg/updates/0014' copy info file: Input/output error

the file `/var/lib/dpkg/updates/0014' is realy unreadable.
i googled a lot but couldnt find any solution

Thanks

Kevbert
April 17th, 2009, 06:44 PM
Please go to Applications-Accessories-Terminal and enter

sudo dpkg --configure -a
Enter you login password when prompted.
If that fails please try

sudo apt-get remove --purge libapache2-mod-xmlrpc2
to completely remove this package. Now try

sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade

kforum
April 17th, 2009, 06:45 PM
kevbert beat me to it, be mindful of the usefulness of apt-get clean, and also occasionally you /var folder may have corrupt files, so look into 'cleaning' the /var folder, or simply rotating your logs.

cheers.

iponeverything
April 17th, 2009, 06:47 PM
try


mv /var/lib/dpkg/updates/0014 /tmp/

rbalage
April 17th, 2009, 07:16 PM
I can't read or write the file, thats the point. I tried cleaning everything, still not working. Basicly the question is how to delete an undeletable file:)

rbalage
April 17th, 2009, 07:18 PM
kevbert:
dpkg --configure -a
dpkg: failed in buffer_read(fd): `/var/lib/dpkg/updates/0014' copy info file: Input/output error
thats the problem.

Kevbert
April 18th, 2009, 12:14 PM
It looks like your best bet in trying to resolve this is to either raise a question or bug report in Launchpad (https://launchpad.net/). There are similar bugs there, waiting to be looked at.