I tried ro remove some unused packages in debian with aptitude.
Apparently I left some conflicting packages and now aptitude refuses to run (same as apt-get)
I get this error
apt-get: symbol lookup error: /usr/lib/libstdc++.so.6: undefined symbol: _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE, version GLIBCXX_3.4
The obvious thing for me would be to install aptitude again. But this is an egg and chicken problem...
What should I do? dpkg works.
You could try to install it using the .deb file from packages.debian.org.
(scroll to the bottom of the page and select the appropriate architecture)
To fix this issue, I would immediately UNDO what you've just done; take a look at
/var/log/dpkg.log
for a history of what you removed, and reinstall those packages usingdpkg
and their respective .deb files from http://packages.debian.org.If you still want to find out what package (specifically) caused this failure, use the same list of packages above, and uninstall them one at a time until you run into the error.