PDA

View Full Version : [SOLVED] apt-get stopped working



ndefontenay
October 25th, 2009, 04:07 PM
Hello,

I tried opening Add/Remove from the Applications Menu, it would show a window in the blink of an eye and close it right away.


I also got the error:
a Problem occured while checking for updates in my system tray.

Finally, I tried to do a manual update and basically I can type anything literally and I always get the same error:

sandra@bliss:~$ sudo apt-get install -f
Segmentation faultsts... 0%
sandra@bliss:~$ sudo apt-get dist-upgrade
Segmentation faultsts... 0%
sandra@bliss:~$ sudo apt-get install conky
Segmentation faultsts... 0%
sandra@bliss:~$ sudo apt-get install test
Segmentation faultsts... 0%

I was thinking about re-installing it but then I realized that I don't know how to actually install the installer! It's kind of the chicken and the egg. Which comes first.

myle
October 25th, 2009, 04:24 PM
Does aptitude work?

ndefontenay
October 25th, 2009, 04:39 PM
Darn. Aptitude says this:

sandra@bliss:~$ aptitude
Ouch! Got SIGSEGV, dying..

This doesn't bode well :(

ndefontenay
October 25th, 2009, 05:08 PM
cd /var/cache/apt
rm pkgcache.bin srcpkgcache.bina

This fixed it. No idea what happened.

zeero_k
September 29th, 2010, 07:42 AM
I was having the same problem running aptitude on my server; deleting these two files solved the problem. (Note: there is a typo in one of the filenames in the above post, see below for the corrected code)



cd /var/cache/apt
rm pkgcache.bin srcpkgcache.bin

This fixed it. No idea what happened.