dpkg: error processing [package_name].deb (--unpack): failed in buffer_read(fb)

Asked by luchon

Ubuntu Feisty Fawn 7.04

trying to install updates either at cmd line or synaptic results in error message:

(Reading database ... dpkg: error processing [package_name].deb (--unpack):
 failed in buffer_read(fd): files list for package `package_component`: Input/output error
Errors were encountered while processing:
 [package_name].deb
Process was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

This issue occur trying to install any package, at both command line and synaptic interfaces.

please help

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu dpkg Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Wrwrwr (wrwrwr) said :
#1

Maybe some hard disk error(s). Have you tried checking your partitions with fsck?
In terminal: "sudo touch /forcefsck" and "sudo reboot now".

If there are a lot of errors you may have to reinstall some things afterwards to get it going.

Revision history for this message
luchon (ichekryg) said :
#2

I did sudo touch /forcefsc followed by sudo reboot now
Once Ubuntu rebooted it ran fsck - and did not find any errors.
Once fsck completed - ubuntu booted up and yet the same issue exists.

Is there a way to test if I have bad sectors on HD causing I/O errors during dpkg?

Revision history for this message
Gord Allott (gordallott) said :
#3

if your drive is an ext3 drive (by default it is) you can run
sudo e2fsck -cc -C stdout /dev/hda1

replacing /dev/hda1 with whatever device node you want to check. it may take a long time as it has to test each sector (or 'block') for errors. if it finds any it will flag it as bad and not write data to there anymore.

Revision history for this message
Wrwrwr (wrwrwr) said :
#4

It's not too safe to perform a check on a mounted filesystem. So, it would be better to do the latter from the liv e cd first dismounting the filesystem to check (e.g. umount /dev/hda1).

Revision history for this message
leocancy (leocancy) said :
#5

 I have downloaded some flash plug in like adobe flash player but cannot run it and some third party software for application, how to run this?

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#6

@leocancy thank you for your question.
But...
Please don't append a new question on a marked as solved question.
Please make new question from here: https://answers.launchpad.net/ubuntu/+addquestion
you will get better chance to get right answer on a fresh tagged "open" question.
Solved or answered questions are usually not read from answering people.

Thank you

Revision history for this message
leocancy (leocancy) said :
#7

My ubuntu is just few days old after down loading this immediately firefox is available, It tells me that @ 100 are available updates i down loaded it. Now are all this package relevant, Why up to now Os is not working pro perly especially for some media and plug ins

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#8

@leocancy thank for your question

But... i repeat

Please don't append a new question on a already answered or marked as solved question.

Please make new question from here: https://answers.launchpad.net/ubuntu/+addquestion

And we will answer to you.

Thank you

Can you help with this problem?

Provide an answer of your own, or ask luchon for more information if necessary.

To post a message you must log in.