I didn't expect simply replacing a file to immediately crash everything. I've been trying to debug a linking error after installing gcc 10.2 and thought maybe the issue was my linker was old too. I couldn't find a guide, so I thought I'd just copy the linker files over from a machine that was working for me. So I ran ldd on ld to see what shared libs it used, made copies to back them up, then as soon as I overwrote this one file, I got these errors
relocation error: /lib64/libpam.so.0: symbol dlclose, version GLIBC_2.2.5 note defined in file libdl.so.2 with link time referance
relocation error: /lib64/libdl.so.2: symbol _dl_catch_error, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
Anyone know how to recover from this? I still have a backup of the correct file, just no way to put it back.
Can't use terminal after replacing /lib64/libdl.so.2
Re: Can't use terminal after replacing /lib64/libdl.so.2
Boot from a Live USB or to the rescue kernel (it uses a bigger than usual initramfs image with more tools), and restore the file.
Last edited by sml on 2021/02/05 13:06:56, edited 1 time in total.
Re: Can't use terminal after replacing /lib64/libdl.so.2
I forgot live USBs were a thing. I knew about live CDs, but don't have a burner anymore. I didn't know about the rescue kernel, but I might try that since I already have a DVD install image I can use.