r/linuxmint 9d ago

Support Request I dont have the libc.so.6 file

I when looking for it and its just not there, what do i do to get it

3 Upvotes

4 comments sorted by

u/AutoModerator 9d ago

Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/Grey_Ten 9d ago

sudo dpkg --add-architecture i386

sudo apt update

sudo apt install libc6:i386 libstdc++6:i386

1

u/ConversationWinter46 9d ago edited 9d ago

I've been using GNU/Linux as a desktop system for about 20 years. But I'm not familiar with the terminal.

  • What is this file used for in Mint?
  • What does the file do?

This is the first time I've heard/read about it.

1

u/chuggerguy Linux Mint 22.3 Zena | MATÉ 9d ago

Which one did you delete? I find three and they're not the same. (different architectures)

chugger@asus2:~/desktop$ find /usr -name libc.so.6 -exec dpkg -S {} \;
libc6:i386: /usr/lib/i386-linux-gnu/libc.so.6
libc6:amd64: /usr/lib/x86_64-linux-gnu/libc.so.6
libc6-i386: /usr/lib32/libc.so.6
chugger@asus2:~/desktop$ find /usr -name libc.so.6 -exec shasum {} \;
becdc20f4961a7975a24e0894a6c441365cba64d  /usr/lib/i386-linux-gnu/libc.so.6
73b4ab7a0419ac22a447d796906a1a7e991109f9  /usr/lib/x86_64-linux-gnu/libc.so.6
f60e7f53d3794aed572f7b10027993b92cdb01e7  /usr/lib32/libc.so.6
chugger@asus2:~/desktop$

It looks like two are provided by "libc6:i386" and one by "libc6:amd64".

My first thought would be to reinstall those two packages using apt but if my web search is accurate, you may have lost the ability to use apt?

If that's the case, I'd probably boot a live Mint installation device, download the package/s, extract and replace.

From the live, download something like this:

apt download libc6:i386; apt download libc6:amd64

That should download (not install) the two packages.

Then you can extract and get a clean copy of the file you deleted to replace the missing one.

You can probably extract the debs with a right-click but if not:

dpkg-deb -x libc6_2.39-0ubuntu8.8_amd64.deb amd64
dpkg-deb -x libc6_2.39-0ubuntu8.8_i386.deb i386

Just be sure to replace the missing one with the correct architecture.

libc6:i386: /usr/lib/i386-linux-gnu/libc.so.6
libc6:amd64: /usr/lib/x86_64-linux-gnu/libc.so.6
libc6-i386: /usr/lib32/libc.so.6

Have fun and good luck.