APT segmentation fault

Segmentation fault is never a pretty sight, and moreso if it involves the APT system. It means that you can't get new software to update whatever it is that might be wrong with your system. But that's exactly what happened to me this morning: my update manager was borking every time it ran.

Running apt-get from the command line wasn't much help either:


Fortunately, the fix was easy, as detailed in this Ubuntu Forums entry. Apparently this is caused by a corrupt APT cache.

To fix this problem, just delete the *.bin files from /var/cache/apt.

sudo rm /var/cache/apt/*.bin

That did the trick!