Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Well my fingers did manage to do sudo apt-get remove libstdc++6 and write, yes. That removed alot of system files. Is there any way to bring it up working again? I have connected to terminal, and wget is working fine. As I managed to ctrl+C when figured out what was happening ...

I think, the main thing would be, is to get apt-get, but how?

Ubuntu 11.10 Oneiric x64bit

share|improve this question
Doesn't the Ubuntu CD have a "repair system" feature? – Mr Lister Aug 20 '12 at 14:11
Haha, shame man. I agree with @MrLister, maybe the Ubuntu CD has something to repair all broken / missing files on your system. – Kevdog777 Aug 20 '12 at 14:25

You can still install any package via dpkg -i package.deb after downloading it with wget from packages.ubuntu.com. And even if dpkg is broken, you can unpack the .deb with ar and then copy the contents with cp manually.

share|improve this answer
I would also mention to run as much of the preinst and postinst as possible. – hexafraction Aug 20 '12 at 15:18
@ObsessiveFOSS If you can get apt-get working, it has --reinstall - that would handle the rest, right? – Izkata Aug 20 '12 at 18:13

I would start with downloading the package of apt-get ( if possible trough the ubuntu repository and running

dpkg -i <package-name>

If dpkg is not available next step would be building it from source. Same thing for all the unmet dependancies you might encounter.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.