“libstdc++.so.6: cannot open shared object file: No such file or directory” The 2019 Stack Overflow Developer Survey Results Are In“Unable to locate package” while trying to install packages with APTHow to fix missing libwayland-egl.so.1 and libuser-accounts.so in ubuntu 14.04.3 LTS?Psychonauts, what to do with 'psychonauts-linux-06042012-bin'?Error while loading shared libraries, but I've installed the librariesHow do I install latest Graphviz?“libasound.so.2: cannot open shared object file: No such file or directory”apt-get update says “Reading package lists … Done” and then ends the processLastPass Sesame (Ubuntu/Debian) does not work after update to Wily Werewolf 15.10Error get while installing ardupilot on virtualbox ubuntu 14.04.3Install Landscape dedicated serverUnable to locate package mysql-serverUnmet dependencies (linux-headers, linux-image)Why can't I open the music player?
Correct punctuation for showing a character's confusion
Old scifi movie from the 50s or 60s with men in solid red uniforms who interrogate a spy from the past
Does adding complexity mean a more secure cipher?
What to do when moving next to a bird sanctuary with a loosely-domesticated cat?
How to type a long/em dash `—`
Dropping list elements from nested list after evaluation
For what reasons would an animal species NOT cross a *horizontal* land bridge?
writing variables above the numbers in tikz picture
What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
Inverse Relationship Between Precision and Recall
What is this business jet?
What do these terms in Caesar's Gallic wars mean?
How to obtain a position of last non-zero element
Why doesn't shell automatically fix "useless use of cat"?
If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?
Why not take a picture of a closer black hole?
Can there be female White Walkers?
Star Trek - X-shaped Item on Regula/Orbital Office Starbases
Is Cinnamon a desktop environment or a window manager? (Or both?)
Why isn't the circumferential light around the M87 black hole's event horizon symmetric?
Why does the nucleus not repel itself?
Button changing its text & action. Good or terrible?
Does HR tell a hiring manager about salary negotiations?
How do you keep chess fun when your opponent constantly beats you?
“libstdc++.so.6: cannot open shared object file: No such file or directory”
The 2019 Stack Overflow Developer Survey Results Are In“Unable to locate package” while trying to install packages with APTHow to fix missing libwayland-egl.so.1 and libuser-accounts.so in ubuntu 14.04.3 LTS?Psychonauts, what to do with 'psychonauts-linux-06042012-bin'?Error while loading shared libraries, but I've installed the librariesHow do I install latest Graphviz?“libasound.so.2: cannot open shared object file: No such file or directory”apt-get update says “Reading package lists … Done” and then ends the processLastPass Sesame (Ubuntu/Debian) does not work after update to Wily Werewolf 15.10Error get while installing ardupilot on virtualbox ubuntu 14.04.3Install Landscape dedicated serverUnable to locate package mysql-serverUnmet dependencies (linux-headers, linux-image)Why can't I open the music player?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I wrastled with the program according to the info in this question. Now it is installed but I can't figure out how to run it. A friend running the same version of Ubuntu had no problems getting it to start after installing it the same way.
This is what I've done:
$ ./Psychonauts
./Psychonauts: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
So I went ahead and:
$ sudo apt-get install libstdc++.so.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libstdc++.so.6
E: Couldn't find any package by regex 'libstdc++.so.6'
It should be noted that I only started using Linux a few days ago.
Okay, so I did manage to install apt-file and apt-file update.
However then we hit another snag.
usagiyojimbo@Usagi:~$ sudo apt-file find libstdc++.so.6
[sudo] password for usagiyojimbo:
E: The cache is empty. You need to run 'apt-file update' first.
I have done that, when I do it says:
File is up-to-date.
Ignoring source without Contents File:
a link they won't let me post
Or
File is up-to-date.
Downloading Index a link
No Index available.
Downloading complete file a link
I am still getting the same error when I try to run Psychonauts.
apt software-installation
add a comment |
I wrastled with the program according to the info in this question. Now it is installed but I can't figure out how to run it. A friend running the same version of Ubuntu had no problems getting it to start after installing it the same way.
This is what I've done:
$ ./Psychonauts
./Psychonauts: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
So I went ahead and:
$ sudo apt-get install libstdc++.so.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libstdc++.so.6
E: Couldn't find any package by regex 'libstdc++.so.6'
It should be noted that I only started using Linux a few days ago.
Okay, so I did manage to install apt-file and apt-file update.
However then we hit another snag.
usagiyojimbo@Usagi:~$ sudo apt-file find libstdc++.so.6
[sudo] password for usagiyojimbo:
E: The cache is empty. You need to run 'apt-file update' first.
I have done that, when I do it says:
File is up-to-date.
Ignoring source without Contents File:
a link they won't let me post
Or
File is up-to-date.
Downloading Index a link
No Index available.
Downloading complete file a link
I am still getting the same error when I try to run Psychonauts.
apt software-installation
1
sudo apt-get install libstdc++6
– 3ventic
Jan 23 '14 at 21:16
possible duplicate of "Unable to locate package" for all packages
– BuZZ-dEE
Jan 24 '14 at 13:43
add a comment |
I wrastled with the program according to the info in this question. Now it is installed but I can't figure out how to run it. A friend running the same version of Ubuntu had no problems getting it to start after installing it the same way.
This is what I've done:
$ ./Psychonauts
./Psychonauts: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
So I went ahead and:
$ sudo apt-get install libstdc++.so.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libstdc++.so.6
E: Couldn't find any package by regex 'libstdc++.so.6'
It should be noted that I only started using Linux a few days ago.
Okay, so I did manage to install apt-file and apt-file update.
However then we hit another snag.
usagiyojimbo@Usagi:~$ sudo apt-file find libstdc++.so.6
[sudo] password for usagiyojimbo:
E: The cache is empty. You need to run 'apt-file update' first.
I have done that, when I do it says:
File is up-to-date.
Ignoring source without Contents File:
a link they won't let me post
Or
File is up-to-date.
Downloading Index a link
No Index available.
Downloading complete file a link
I am still getting the same error when I try to run Psychonauts.
apt software-installation
I wrastled with the program according to the info in this question. Now it is installed but I can't figure out how to run it. A friend running the same version of Ubuntu had no problems getting it to start after installing it the same way.
This is what I've done:
$ ./Psychonauts
./Psychonauts: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
So I went ahead and:
$ sudo apt-get install libstdc++.so.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libstdc++.so.6
E: Couldn't find any package by regex 'libstdc++.so.6'
It should be noted that I only started using Linux a few days ago.
Okay, so I did manage to install apt-file and apt-file update.
However then we hit another snag.
usagiyojimbo@Usagi:~$ sudo apt-file find libstdc++.so.6
[sudo] password for usagiyojimbo:
E: The cache is empty. You need to run 'apt-file update' first.
I have done that, when I do it says:
File is up-to-date.
Ignoring source without Contents File:
a link they won't let me post
Or
File is up-to-date.
Downloading Index a link
No Index available.
Downloading complete file a link
I am still getting the same error when I try to run Psychonauts.
apt software-installation
apt software-installation
edited Apr 13 '17 at 12:24
Community♦
1
1
asked Jan 23 '14 at 21:07
UsagiYojimboUsagiYojimbo
2232410
2232410
1
sudo apt-get install libstdc++6
– 3ventic
Jan 23 '14 at 21:16
possible duplicate of "Unable to locate package" for all packages
– BuZZ-dEE
Jan 24 '14 at 13:43
add a comment |
1
sudo apt-get install libstdc++6
– 3ventic
Jan 23 '14 at 21:16
possible duplicate of "Unable to locate package" for all packages
– BuZZ-dEE
Jan 24 '14 at 13:43
1
1
sudo apt-get install libstdc++6
– 3ventic
Jan 23 '14 at 21:16
sudo apt-get install libstdc++6
– 3ventic
Jan 23 '14 at 21:16
possible duplicate of "Unable to locate package" for all packages
– BuZZ-dEE
Jan 24 '14 at 13:43
possible duplicate of "Unable to locate package" for all packages
– BuZZ-dEE
Jan 24 '14 at 13:43
add a comment |
4 Answers
4
active
oldest
votes
You get the error message:
E: Unable to locate package libstdc++.so.6
E: Couldn't find any package by regex 'libstdc++.so.6'
because you tried to install a file libstdc++.so.6
that you can't install, because it is located in a debian package.
You can use apt-file
to search for the package that contains that file. To install it, type:
sudo apt-get install apt-file
Then you have to update the index.
sudo apt-file update
After that, you can search for the package which contains the file libstdc++.so.6
:
sudo apt-file find libstdc++.so.6
Then you find a lot packages that contains the searched file. In your case, the correct package is libstdc++6
:
libstdc++6: /usr/lib/x86_64-linux-gnu/libstdc++.so.6
Then you can install the needed package:
sudo apt-get install libstdc++6
Okay, so I did manage to install apt-file and apt-file update. However then we hit another snag. usagiyojimbo@Usagi:~$ sudo apt-file find libstdc++.so.6 [sudo] password for usagiyojimbo: E: The cache is empty. You need to run 'apt-file update' first.
– UsagiYojimbo
Feb 5 '14 at 21:22
Runsudo apt-file update
and after thatsudo apt-file find libstdc++.so.6
. Read above answer exactly.
– BuZZ-dEE
Feb 5 '14 at 21:44
2
Not sure what I did differently, but it apt-file find worked this time. I get the list of packages. When I try to install it says libstdc++6 is already the newest version. When I try to ./Psychonauts it still says no such file or directory.
– UsagiYojimbo
Feb 5 '14 at 22:01
And if you're messing around with 32-bit hardware, make sure to specify at the end: sudo apt-get install libstdc++6:i386
– Ezekiel Kruglick
Oct 14 '16 at 0:39
add a comment |
I think Psychonauts is a 32bit application. You will need to install:
apt-get install lib32stdc++6
That's correct for me
– Damian Lattenero
Feb 12 at 19:51
add a comment |
You are almost there, just used a few more characters than you needed:
sudo apt-get install libstdc++6
... should do the trick.
add a comment |
I'll share with you the way that worked for me.
First of all you should find if any other copy of this file is already on your machine:
$ locate libstdc++.so.6
the output:
/snap/core/6405/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6405/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6405/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/snap/core/6531/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6531/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6531/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6673/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25-gdb.py
As you can see there are many /snap/core/...
versions of this file. (if not this method doesn't works for you)
The you should make a backup from the existing file:
$ sudo mv /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.backup
Then you can replace the latest snap version into the corrupted file:
sudo cp /snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
The try running desired command again
.
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f409821%2flibstdc-so-6-cannot-open-shared-object-file-no-such-file-or-directory%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
You get the error message:
E: Unable to locate package libstdc++.so.6
E: Couldn't find any package by regex 'libstdc++.so.6'
because you tried to install a file libstdc++.so.6
that you can't install, because it is located in a debian package.
You can use apt-file
to search for the package that contains that file. To install it, type:
sudo apt-get install apt-file
Then you have to update the index.
sudo apt-file update
After that, you can search for the package which contains the file libstdc++.so.6
:
sudo apt-file find libstdc++.so.6
Then you find a lot packages that contains the searched file. In your case, the correct package is libstdc++6
:
libstdc++6: /usr/lib/x86_64-linux-gnu/libstdc++.so.6
Then you can install the needed package:
sudo apt-get install libstdc++6
Okay, so I did manage to install apt-file and apt-file update. However then we hit another snag. usagiyojimbo@Usagi:~$ sudo apt-file find libstdc++.so.6 [sudo] password for usagiyojimbo: E: The cache is empty. You need to run 'apt-file update' first.
– UsagiYojimbo
Feb 5 '14 at 21:22
Runsudo apt-file update
and after thatsudo apt-file find libstdc++.so.6
. Read above answer exactly.
– BuZZ-dEE
Feb 5 '14 at 21:44
2
Not sure what I did differently, but it apt-file find worked this time. I get the list of packages. When I try to install it says libstdc++6 is already the newest version. When I try to ./Psychonauts it still says no such file or directory.
– UsagiYojimbo
Feb 5 '14 at 22:01
And if you're messing around with 32-bit hardware, make sure to specify at the end: sudo apt-get install libstdc++6:i386
– Ezekiel Kruglick
Oct 14 '16 at 0:39
add a comment |
You get the error message:
E: Unable to locate package libstdc++.so.6
E: Couldn't find any package by regex 'libstdc++.so.6'
because you tried to install a file libstdc++.so.6
that you can't install, because it is located in a debian package.
You can use apt-file
to search for the package that contains that file. To install it, type:
sudo apt-get install apt-file
Then you have to update the index.
sudo apt-file update
After that, you can search for the package which contains the file libstdc++.so.6
:
sudo apt-file find libstdc++.so.6
Then you find a lot packages that contains the searched file. In your case, the correct package is libstdc++6
:
libstdc++6: /usr/lib/x86_64-linux-gnu/libstdc++.so.6
Then you can install the needed package:
sudo apt-get install libstdc++6
Okay, so I did manage to install apt-file and apt-file update. However then we hit another snag. usagiyojimbo@Usagi:~$ sudo apt-file find libstdc++.so.6 [sudo] password for usagiyojimbo: E: The cache is empty. You need to run 'apt-file update' first.
– UsagiYojimbo
Feb 5 '14 at 21:22
Runsudo apt-file update
and after thatsudo apt-file find libstdc++.so.6
. Read above answer exactly.
– BuZZ-dEE
Feb 5 '14 at 21:44
2
Not sure what I did differently, but it apt-file find worked this time. I get the list of packages. When I try to install it says libstdc++6 is already the newest version. When I try to ./Psychonauts it still says no such file or directory.
– UsagiYojimbo
Feb 5 '14 at 22:01
And if you're messing around with 32-bit hardware, make sure to specify at the end: sudo apt-get install libstdc++6:i386
– Ezekiel Kruglick
Oct 14 '16 at 0:39
add a comment |
You get the error message:
E: Unable to locate package libstdc++.so.6
E: Couldn't find any package by regex 'libstdc++.so.6'
because you tried to install a file libstdc++.so.6
that you can't install, because it is located in a debian package.
You can use apt-file
to search for the package that contains that file. To install it, type:
sudo apt-get install apt-file
Then you have to update the index.
sudo apt-file update
After that, you can search for the package which contains the file libstdc++.so.6
:
sudo apt-file find libstdc++.so.6
Then you find a lot packages that contains the searched file. In your case, the correct package is libstdc++6
:
libstdc++6: /usr/lib/x86_64-linux-gnu/libstdc++.so.6
Then you can install the needed package:
sudo apt-get install libstdc++6
You get the error message:
E: Unable to locate package libstdc++.so.6
E: Couldn't find any package by regex 'libstdc++.so.6'
because you tried to install a file libstdc++.so.6
that you can't install, because it is located in a debian package.
You can use apt-file
to search for the package that contains that file. To install it, type:
sudo apt-get install apt-file
Then you have to update the index.
sudo apt-file update
After that, you can search for the package which contains the file libstdc++.so.6
:
sudo apt-file find libstdc++.so.6
Then you find a lot packages that contains the searched file. In your case, the correct package is libstdc++6
:
libstdc++6: /usr/lib/x86_64-linux-gnu/libstdc++.so.6
Then you can install the needed package:
sudo apt-get install libstdc++6
answered Jan 23 '14 at 21:44
BuZZ-dEEBuZZ-dEE
9,355125270
9,355125270
Okay, so I did manage to install apt-file and apt-file update. However then we hit another snag. usagiyojimbo@Usagi:~$ sudo apt-file find libstdc++.so.6 [sudo] password for usagiyojimbo: E: The cache is empty. You need to run 'apt-file update' first.
– UsagiYojimbo
Feb 5 '14 at 21:22
Runsudo apt-file update
and after thatsudo apt-file find libstdc++.so.6
. Read above answer exactly.
– BuZZ-dEE
Feb 5 '14 at 21:44
2
Not sure what I did differently, but it apt-file find worked this time. I get the list of packages. When I try to install it says libstdc++6 is already the newest version. When I try to ./Psychonauts it still says no such file or directory.
– UsagiYojimbo
Feb 5 '14 at 22:01
And if you're messing around with 32-bit hardware, make sure to specify at the end: sudo apt-get install libstdc++6:i386
– Ezekiel Kruglick
Oct 14 '16 at 0:39
add a comment |
Okay, so I did manage to install apt-file and apt-file update. However then we hit another snag. usagiyojimbo@Usagi:~$ sudo apt-file find libstdc++.so.6 [sudo] password for usagiyojimbo: E: The cache is empty. You need to run 'apt-file update' first.
– UsagiYojimbo
Feb 5 '14 at 21:22
Runsudo apt-file update
and after thatsudo apt-file find libstdc++.so.6
. Read above answer exactly.
– BuZZ-dEE
Feb 5 '14 at 21:44
2
Not sure what I did differently, but it apt-file find worked this time. I get the list of packages. When I try to install it says libstdc++6 is already the newest version. When I try to ./Psychonauts it still says no such file or directory.
– UsagiYojimbo
Feb 5 '14 at 22:01
And if you're messing around with 32-bit hardware, make sure to specify at the end: sudo apt-get install libstdc++6:i386
– Ezekiel Kruglick
Oct 14 '16 at 0:39
Okay, so I did manage to install apt-file and apt-file update. However then we hit another snag. usagiyojimbo@Usagi:~$ sudo apt-file find libstdc++.so.6 [sudo] password for usagiyojimbo: E: The cache is empty. You need to run 'apt-file update' first.
– UsagiYojimbo
Feb 5 '14 at 21:22
Okay, so I did manage to install apt-file and apt-file update. However then we hit another snag. usagiyojimbo@Usagi:~$ sudo apt-file find libstdc++.so.6 [sudo] password for usagiyojimbo: E: The cache is empty. You need to run 'apt-file update' first.
– UsagiYojimbo
Feb 5 '14 at 21:22
Run
sudo apt-file update
and after that sudo apt-file find libstdc++.so.6
. Read above answer exactly.– BuZZ-dEE
Feb 5 '14 at 21:44
Run
sudo apt-file update
and after that sudo apt-file find libstdc++.so.6
. Read above answer exactly.– BuZZ-dEE
Feb 5 '14 at 21:44
2
2
Not sure what I did differently, but it apt-file find worked this time. I get the list of packages. When I try to install it says libstdc++6 is already the newest version. When I try to ./Psychonauts it still says no such file or directory.
– UsagiYojimbo
Feb 5 '14 at 22:01
Not sure what I did differently, but it apt-file find worked this time. I get the list of packages. When I try to install it says libstdc++6 is already the newest version. When I try to ./Psychonauts it still says no such file or directory.
– UsagiYojimbo
Feb 5 '14 at 22:01
And if you're messing around with 32-bit hardware, make sure to specify at the end: sudo apt-get install libstdc++6:i386
– Ezekiel Kruglick
Oct 14 '16 at 0:39
And if you're messing around with 32-bit hardware, make sure to specify at the end: sudo apt-get install libstdc++6:i386
– Ezekiel Kruglick
Oct 14 '16 at 0:39
add a comment |
I think Psychonauts is a 32bit application. You will need to install:
apt-get install lib32stdc++6
That's correct for me
– Damian Lattenero
Feb 12 at 19:51
add a comment |
I think Psychonauts is a 32bit application. You will need to install:
apt-get install lib32stdc++6
That's correct for me
– Damian Lattenero
Feb 12 at 19:51
add a comment |
I think Psychonauts is a 32bit application. You will need to install:
apt-get install lib32stdc++6
I think Psychonauts is a 32bit application. You will need to install:
apt-get install lib32stdc++6
answered Feb 9 '14 at 21:55
jhilmerjhilmer
1,157811
1,157811
That's correct for me
– Damian Lattenero
Feb 12 at 19:51
add a comment |
That's correct for me
– Damian Lattenero
Feb 12 at 19:51
That's correct for me
– Damian Lattenero
Feb 12 at 19:51
That's correct for me
– Damian Lattenero
Feb 12 at 19:51
add a comment |
You are almost there, just used a few more characters than you needed:
sudo apt-get install libstdc++6
... should do the trick.
add a comment |
You are almost there, just used a few more characters than you needed:
sudo apt-get install libstdc++6
... should do the trick.
add a comment |
You are almost there, just used a few more characters than you needed:
sudo apt-get install libstdc++6
... should do the trick.
You are almost there, just used a few more characters than you needed:
sudo apt-get install libstdc++6
... should do the trick.
edited Jan 23 '14 at 21:22
kiri
19.4k1360106
19.4k1360106
answered Jan 23 '14 at 21:20
BraiamBraiam
52.7k20138223
52.7k20138223
add a comment |
add a comment |
I'll share with you the way that worked for me.
First of all you should find if any other copy of this file is already on your machine:
$ locate libstdc++.so.6
the output:
/snap/core/6405/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6405/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6405/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/snap/core/6531/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6531/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6531/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6673/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25-gdb.py
As you can see there are many /snap/core/...
versions of this file. (if not this method doesn't works for you)
The you should make a backup from the existing file:
$ sudo mv /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.backup
Then you can replace the latest snap version into the corrupted file:
sudo cp /snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
The try running desired command again
.
New contributor
add a comment |
I'll share with you the way that worked for me.
First of all you should find if any other copy of this file is already on your machine:
$ locate libstdc++.so.6
the output:
/snap/core/6405/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6405/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6405/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/snap/core/6531/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6531/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6531/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6673/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25-gdb.py
As you can see there are many /snap/core/...
versions of this file. (if not this method doesn't works for you)
The you should make a backup from the existing file:
$ sudo mv /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.backup
Then you can replace the latest snap version into the corrupted file:
sudo cp /snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
The try running desired command again
.
New contributor
add a comment |
I'll share with you the way that worked for me.
First of all you should find if any other copy of this file is already on your machine:
$ locate libstdc++.so.6
the output:
/snap/core/6405/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6405/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6405/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/snap/core/6531/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6531/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6531/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6673/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25-gdb.py
As you can see there are many /snap/core/...
versions of this file. (if not this method doesn't works for you)
The you should make a backup from the existing file:
$ sudo mv /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.backup
Then you can replace the latest snap version into the corrupted file:
sudo cp /snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
The try running desired command again
.
New contributor
I'll share with you the way that worked for me.
First of all you should find if any other copy of this file is already on your machine:
$ locate libstdc++.so.6
the output:
/snap/core/6405/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6405/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6405/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/snap/core/6531/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6531/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6531/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/snap/core/6673/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25-gdb.py
As you can see there are many /snap/core/...
versions of this file. (if not this method doesn't works for you)
The you should make a backup from the existing file:
$ sudo mv /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.backup
Then you can replace the latest snap version into the corrupted file:
sudo cp /snap/core/6673/usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
The try running desired command again
.
New contributor
New contributor
answered 46 mins ago
Saeed FalsafinSaeed Falsafin
1012
1012
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f409821%2flibstdc-so-6-cannot-open-shared-object-file-no-such-file-or-directory%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
sudo apt-get install libstdc++6
– 3ventic
Jan 23 '14 at 21:16
possible duplicate of "Unable to locate package" for all packages
– BuZZ-dEE
Jan 24 '14 at 13:43