sudo apt-get install libstdc++
Solution 1:
There isn't actually a package called libstdc++
(possibly you are trying to install libstdc++6
?)
When apt doesn't find an exact match to a package name, it treats the given string as a regular expression. In this case the ++
causes it to try to install any package whose name matches libstd
followed by one or more c
- many of which conflict, as you can see.
Unfortunately I have never managed to figure out how to turn off this behaviour (nothing I have tried in the past using escape characters has seemed to work) - the only solution I know is to be careful to give an exact package name where any regex characters might be misinterpreted, and to make sure the package catalog is up-to-date i.e.
sudo apt-get update
sudo apt-get install libstdc++6
Solution 2:
First run these commands
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install aptitude
and then try
sudo apt-get install libstdc++6
or try this search result and install one desired package from listed http://packages.ubuntu.com/search?keywords=libstdc%2B%2B