Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In an effort to get Civ 5 running on my machine, I deleted libgcc_s.so.1 and the soft link libstdc++.so.6 which referred to libstdc++.so.6.0.19. This was a terrible idea and now I cannot run many programs such as Nautilus or apt-get. After restarting, I have no GUI, but I can access the console view.

To delete the files, I was running nautilus as superuser, and I used Ctrl-F to find the files and back them up to my desktop and move the originals to the trash. I thought that in the worst case scenario, I could copy the files back to the /lib/i386-linux-gnu/ directory. This worked for libgcc_s.so.1. However, when I try to copy the loft link libstdc++.so.6 I get the following error message.

cp: cannot stat ‘/libstdc++.so.6’: No such file or directory.

Potentially relevant is that the file is displayed in red in the console view. I understand that means it is an archive file, but I don't know what an archive file is and why I can't copy archive files.

Any solutions (reinstalling or replacing the files, etc.) which restore functionality will be greatly appreciated.

share|improve this question
    
Errr... why did you remove it? You may be to reinstall it with sudo apt-get install --reinstall libstdc++6 libgcc1 –  Wilf Jun 11 at 23:20
    
Admittedly, it was stupid to remove it, but multiple users reported that removing it had resolved Civ5 issues that I was also experiencing. Unfortunately, apt-get is not working as well. –  Sam Copeland Jun 11 at 23:29
1  
What command exactly are you using to try to copy the files back? it looks like you are specifying the path incorrectly. –  steeldriver Jun 12 at 0:36
    
I am using the command "cp /home/sam/Desktop/libstdc++.so.6 /lib/i386-linux-gnu/". I don't think I am wrong on the path as I am using tab completion to specify the filename. –  Sam Copeland Jun 12 at 1:30
1  
And what error does that command give you? Not the one you have in your question, that mentions a different file. Basically, please edit your question and show us the exact path to each of the files you want to copy and specify where each should be copied to. –  terdon Jun 12 at 10:42

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.