update problem

Asked by GODSMACK

I have upgraded from Ubuntu 9.10 to 10.04 but in the time that ubuntu are upgrading I lost my internet connection so many packages didn't download or installed but the upgrade continue fine but after finishing I tried to update and after downloading packages at the time of installing updates problem show up

------------------------------------------------------------------------------------------------------------------------------
Extracting templates from packages: 100%
Preconfiguring packages . . .
(Reading database . . . 95%dpkg: unrecoverable fatal error, aborting:
 failed in buffer_read(fd): files list for package 'linux-headers-2.6.32.21-generic' : Input/output error
E: Sub-process /user/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover
------------------------------------------------------------------------------------------------------------------------------

How can I fix this problem?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
zvacet
Solved:
Last query:
Last reply:
Revision history for this message
Best zvacet (ivicakolic) said :
#1

Type in terminal

sudo dpkg --configure -a

sudo apt-get -f install

Revision history for this message
GODSMACK (godsmack-dmx) said :
#2

Thanks zvacet, that solved my question.