Synaptic Package Manager keeps crashing

Synaptic keeps crashing. When I open it, it asks for the sudo password. I give the password, then the synaptic window flashes for less than a second and then goes away.

What's wrong?

After seeing this problem I uninstalled synaptic using apt-get. Uninstalled, cleaned, removed, auto-removed, purged... every possible option from apt-get.

Then I tried installing synaptic from scratch. Still no luck.

Help please! I just did a clean install of Ubuntu 11.10 yesterday.

I also removed the ~/.synaptic folder -- no luck.

Here is the terminal output:

$ sudo synaptic
terminate called after throwing an instance of 'std::out_of_range'
  what():  vector::_M_range_check

Solution 1:

Solved it

from this link in ubuntuforums.org. In the post, Jsonwco writes:

It appears that it's related to accessibility settings. I was able to fix this problem on my system by opening Universal Access, enabling then disabling the screen reader, then opening Synaptic again.

Solution 2:

Try:

gsettings set org.gnome.desktop.interface toolkit-accessibility false

It worked for me.