I installed ubuntu server 10.04 and booted as normal.
Some time later, I booted the server and tried to install a new package/upgrade the existing packages using:
sudo apt-get upgrade sudo aptitude safe-upgrade sudo apt-get install ntp Reading package lists... Done Segmentation faulty tree... 50%
I checked the system log
/var/log/messages and found these entries:
kernel: [ 5586.184028] apt-get: segfault at 7fb5e078477b ip 00007fb5da82223c sp 00007fffa943b430 error 6 in libapt-pkg-libc6.10-6.so.4.8.0[7fb5da7e1000+c5000] kernel: [ 5682.494467] aptitude: segfault at 7f06d4c4d77b ip 00007f06d063723c sp 00007fff5feb8540 error 6 in libapt-pkg-libc6.10-6.so.4.8.0[7f06d05f6000+c5000] kernel: [ 5991.238428] apt-get: segfault at 7f809c17e77b ip 00007f809621c23c sp 00007fff740deb30 error 6 in libapt-pkg-libc6.10-6.so.4.8.0[7f80961db000+c5000]
Also, I got the same error while trying to use
aptitude safe-upgrade as it is clear from the log file.
How can this be fixed without system re-installation?