update manager crashes segmentation fault

Asked by BladeRunner

9.10 after I upgraded update manager crashes. i went to terminal and typed software-center and it says segmentation fault.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Johan van der Lingen
Solved:
Last query:
Last reply:
Revision history for this message
BladeRunner (iqualityautomot) said :
#1

I am a noob any help would be great

Revision history for this message
Johan van der Lingen (johanlingen-hotmail) said :
#2

At a command prompt (indicated by "$") type:

$ sudo aptitude update && sudo aptitude upgrade

if it gives errors, try:

$ sudo dpkg --configure -a

and try the first command again. You should then be past the problematic upgrade.

I think you are dealing with a software upgrade that breaks the package manager (I've had it with Kpackagekit, are you, too, a Kubuntu user?)

Revision history for this message
BladeRunner (iqualityautomot) said :
#3

same error and im using ubuntu

Revision history for this message
Johan van der Lingen (johanlingen-hotmail) said :
#4

Could you please post the exact output?

Revision history for this message
BladeRunner (iqualityautomot) said :
#5

segmentation fault is all that it says

Revision history for this message
Johan van der Lingen (johanlingen-hotmail) said :
#6

But when does it say segmentation fault? While starting Ubuntu, when opening a terminal, while entering the aptitude command?

So what happens if:
you boot in safe mode (select second entry in GRUB startup menu), then choose "drop to prompt with networking" and then do:

$ aptitude update && aptitude upgrade

if it gives errors, try below and go back to the command above:

$ dpkg --configure -a

Then reboot:
$ reboot

Revision history for this message
BladeRunner (iqualityautomot) said :
#7

After I updated Ubuntu, I bring up the Software center and it crashes, and then I found out the update manager also crashes. So then I go to Terminal, I typed it software-center (Something I found I could do on another website, and when the other guy did it he got a really long error) and when I did, it just simply said "segmentation fault".

Then I opened up terminal, put in if it gives errors, try below and go back to the command above:
$ aptitude update && aptitude upgrade
Then it said to me, "Segmentation Fault" and thats it.
So Then I put in the second command, nothing happens, I put int he first command, and it says Segmentation Fault.

Nothing but Segmentation Fault.

Revision history for this message
Best Johan van der Lingen (johanlingen-hotmail) said :
#8

ah, I see, at a command prompt, enter:

$ sudo rm -f /var/cache/apt/*.bin

That solves your problem.

Revision history for this message
Johan van der Lingen (johanlingen-hotmail) said :
#9

hmm... maybe it's not very good to tell you to execute commands to remove something, without explaining what it does...

This will remove two files, pkgcache.bin and srcpkgcache.bin. These are cache files of package lists. If removed, apt will generate new ones. If you are in doubt, go to /var/cache/apt and give the files another name:

$ cd /var/cache/apt
$ sudo mv pkgcache.bin pkgcache.bin.old
$ sudo mv srcpkgcache.bin srcpkgcache.bin.old

If you then use apt you will see that it regenerates these files and everything works OK. You can then remove the .old files

Revision history for this message
BladeRunner (iqualityautomot) said :
#10

Thanks Johan van der Lingen, that solved my question.