PDA

View Full Version : update/upgrade failed



lewjayjr
October 3rd, 2013, 06:23 AM
My laptop is running very slow and i ran the sudo apt-get update and then sudo apt-get upgrade. After everything loaded up in preconfigured the packages and started running. got this error message:
pkg: failed in buffer_read(fd): copy info file `/var/lib/dpkg/available': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)

Not sure what happened here. Any help would be appreciated.

ibjsb4
October 3rd, 2013, 03:12 PM
First we need to know what your running. 12.04, 13.04? And what cpu and how much ram do you have.

Just a shot in the dark, but try these commands.


sudo dpkg --configure -a


sudo apt-get -f install

https://help.ubuntu.com/community/UsingTheTerminal#Starting_a_Terminal

lewjayjr
October 5th, 2013, 05:15 AM
I am running 10.04. CPU is intel pentium 1.6, GHz, and RAM is 2.0 gig with 29.9 gig of hard disk available. This is a Dell Latitude D610

lewjayjr
October 5th, 2013, 05:16 AM
dpkg: failed in buffer_read(fd): copy info file `/var/lib/dpkg/available': Input/output error (dpkg configure error)

ian-weisser
October 5th, 2013, 12:45 PM
dpkg: failed in buffer_read(fd): copy info file `/var/lib/dpkg/available': Input/output error (dpkg configure error)

An input/output error, and slow operation, could mean you have a dying hard drive.
Is your system properly backed up?

raja.genupula
October 5th, 2013, 02:51 PM
here you go , I have found the solution for you
https://answers.launchpad.net/ubuntu/+question/56777
http://ubuntu-virginia.ubuntuforums.org/showthread.php?p=8656675

lewjayjr
October 7th, 2013, 05:05 AM
Seems to be working much better now. Speed picked up and the graying out has stopped. Thanks for the help.