Re: 12.04 won' t connect to update

Originally Posted by
ivotkl
Ok, so below you can find the output of sudo apt-get dist-upgrade, sudo apt-get update, and sudo apt-get -f update.
http://pastebin.com/h9LazKpF
Hope you can help. I also have the stop sign on the upper notification area. It says that an error occurred. Actually system froze during an update a week ago or so. Current error says: 'Error: Opening the cache. (E: read error - read (5: Input/output error), E: The packages lists or status files could not be read or parsed.'
Error continued, but right now it has disappeared, so I cannot explain completely what it said.
Any help? Thanks in advanced.
First, it seems you are running the update commands out of order. ORDER IS important.
* update
* dist-upgrade
Since the repositories are not accessible, have you checked that you can reach them using non-APT methods? Can you ping those servers? Can you ping any internet servers from that box? Fixing this issue is important.
Third, it seems there is some sort of corruption in your APT. That can be logical or physical. I'd try to figure out if it is physical, since THAT would be really bad. Run an fsck on the /var partition - that might be / on your box - I can't tell. Running fsck cannot be done on an mounted partition, so booting off a rescue CD and running it is an option. OR you could drop a /forcefsck into the root directory and reboot. In theory, the existence of that file will force an fsck at the next boot.
Ok, if that comes back fine or corrects issues, I'd check if there is any space left on the device. If not, correct the problem before continuing. That could mean replacing a disk controller or HDD.
There are 2 types of space, use df to check for both.
* df -k /
* df -i /
Assuming you aren't out of storage OR i-nodes, continue, otherwise, correct the out-of-storage problem.
Logical corruption of the APT repository can be ugly. I'd clean and autoclean the repo.
* sudo apt-get autoclean
* sudo apt-get clean
Then try your update/dist-upgrade again.
Hopefully, these steps make everything fine. If not, I'd look for an APT troubleshooter wiki article. It might just be easier to restore from a backup that happened the day prior to experiencing this issue. Backups rock, especially for things like this.
BTW, I loved Argentina. Need to find an excuse to get back there.
Linux User since 1993. Loving Linux since 1996.
--
When you find the solution, please come back to this thread, explain the solution, and mark it SOLVED to help the next guy.
Bookmarks