Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
3  
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
add comment

2 Answers

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
add comment

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
1  
I would also mention to run as much of the preinst and postinst as possible. –  hexafraction Aug 20 '12 at 15:18
1  
@ObsessiveFOSS If you can get apt-get working, it has --reinstall - that would handle the rest, right? –  Izkata Aug 20 '12 at 18:13
add comment

Your Answer

 
discard

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.