You are not logged in.

#1 2023-01-20 04:19:19

LeonN
Member
Registered: 2022-12-19
Posts: 92

[SOLVED] I deleted ld-linux.so.2 and can't recover it

While trying to solve a problem with Steam, I accidentally deleted the ld-linux.so.2 file which was located both in /usr/lib and /usr/lib32 (I deleted the file in both locations). Now I want to get it back but I don't know how. I tried searching for the file in the ISO, but I only found a file named ld-linux-x86-64.so.2.

Last edited by LeonN (2023-01-20 05:23:37)

Offline

#2 2023-01-20 04:23:39

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] I deleted ld-linux.so.2 and can't recover it

Reinstall lib32-glibc.

See pacman -F
Or really, even pacman -Qo would work here since the package is installed.

Last edited by Scimmia (2023-01-20 04:27:19)

Offline

#3 2023-01-20 04:30:23

LeonN
Member
Registered: 2022-12-19
Posts: 92

Re: [SOLVED] I deleted ld-linux.so.2 and can't recover it

Thanks! It worked for solving the problem of ld-linux.so.2, but the original problem which I originally wanted solve came back (situation that I was looking for). the problem is with steam and says

Error: You are missing the following 32-bit libraries, and Steam may not run:
libpng16.so.16
libharfbuzz.so.0

Offline

#4 2023-01-20 04:32:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] I deleted ld-linux.so.2 and can't recover it

Well did you install the lib32 version of those packages?

Offline

#5 2023-01-20 04:35:25

LeonN
Member
Registered: 2022-12-19
Posts: 92

Re: [SOLVED] I deleted ld-linux.so.2 and can't recover it

I think I did since I could steam normally a few hours ago. I asked about it in another post, but I got no help. I'd really appreciate if you could take a look at it.

Offline

#6 2023-01-20 04:37:14

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] I deleted ld-linux.so.2 and can't recover it

That other thread only says that you're trying to create a clusterfuck.

Don't think you did, know you did. If you don't know, check.

And stop building things when you have no clue how and no reason to.

Offline

#7 2023-01-20 04:40:14

LeonN
Member
Registered: 2022-12-19
Posts: 92

Re: [SOLVED] I deleted ld-linux.so.2 and can't recover it

I'm sorry. I'm still new into Arch. And how exactly do I check if I have installed the 32 bit version of those libraries?

Offline

#8 2023-01-20 04:48:40

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] I deleted ld-linux.so.2 and can't recover it

I pointed you earlier to a way to find what package contains a file, even if it's not installed. Check that, then see if you have that package installed with pacman -Q

Offline

#9 2023-01-20 05:09:03

LeonN
Member
Registered: 2022-12-19
Posts: 92

Re: [SOLVED] I deleted ld-linux.so.2 and can't recover it

The only output I get when I run sudo -F libpng16.so.16 is

warning: database file for 'core' does not exist (use '-Fy' to download)
warning: database file for 'extra' does not exist (use '-Fy' to download)
warning: database file for 'community' does not exist (use '-Fy' to download)
warning: database file for 'multilib' does not exist (use '-Fy' to download)

I already did sudo pacman -Syu and it keeps giving that output. Anyway, this page says, the package that contains libpng16.so.16 is libpng 1.6.39, which is installed on my system as it is in the list provided by pacman -Q.

the same thing happens with the other package. libharfbuzz.so.0.

Offline

#10 2023-01-20 05:13:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] I deleted ld-linux.so.2 and can't recover it

The files databases are separate from the package databases, you have to do what it says to download them.

Offline

#11 2023-01-20 05:16:02

LeonN
Member
Registered: 2022-12-19
Posts: 92

Re: [SOLVED] I deleted ld-linux.so.2 and can't recover it

Got it. After installing them I run the commands:

pacman -F libpng16.so.16
extra/libpng 1.6.39-1 [installed]
    usr/lib/libpng16.so.16
community/intel-oneapi-basekit 2022.3.0.8767-1
    opt/intel/oneapi/advisor/2022.3.0/fga/fga/libpng16.so.16
    opt/intel/oneapi/intelpython/python3.9/lib/libpng16.so.16
    opt/intel/oneapi/intelpython/python3.9/pkgs/libpng-1.6.37-hbc83047_0/lib/libpng16.so.16
multilib/lib32-libpng 1.6.39-1 [installed]
    usr/lib32/libpng16.so.16
pacman -F libharfbuzz.so.0
extra/harfbuzz 6.0.0-1 [installed]
    usr/lib/libharfbuzz.so.0
multilib/lib32-harfbuzz 6.0.0-1 [installed]
    usr/lib32/libharfbuzz.so.0

Offline

#12 2023-01-20 05:18:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] I deleted ld-linux.so.2 and can't recover it

So you do have them installed. There's something specific to Steam going on, then. Unfortunately, I don't use Steam on Linux, so I don't have anywhere to go from here.

Offline

#13 2023-01-20 05:23:22

LeonN
Member
Registered: 2022-12-19
Posts: 92

Re: [SOLVED] I deleted ld-linux.so.2 and can't recover it

Well, thanks for your help. I'll try to solve it by my own and hope not to delete the kernel in the process.

Offline

Board footer

Powered by FluxBB