mrclksr / linux-browser-installer

Script to install Linux browsers under a Linux chroot on FreeBSD
165 stars 25 forks source link

ELF interpreter /lib64/ld-linux-x86-64.so.2 not found, error 2 #35

Closed rigoletto-freebsd closed 1 year ago

rigoletto-freebsd commented 1 year ago

I've been experiencing this issue. If I upgrade the chroot files, wherever using linux-browser-installer or apt all browsers fail with that ELF error.

Some time ago, the first time I used this script I had this problem too, I managed to fix it and I could upgrade the chroot without breaking anything, but now I have fresh setup and no idea of what I did to fix it.

Is anyone also experiencing this issue?

Thank you.

sabazk commented 1 year ago

Me too. Same issue. Didn't solve it using focal, but by updating linux-browser-installer ubuntu_version=kinetic and reinstalling the chroot, it works great. as referenced here #27

seems it may be related to ld_version?

trevarj commented 1 year ago

Just follow these lines to repair the symlink.

This happened to me when I did apt upgrade inside the chroot.

$ unlink /compat/ubuntu/lib64/ld-linux-x86-64.so.2
$ cp /compat/ubuntu/lib/x86_64-linux-gnu/ld-2.31.so /compat/ubuntu/lib64/ld-linux-x86-64.so.2
mrclksr commented 1 year ago

Thanks, @trevarj!