On Sun, Jul 20, 2025 at 10:52:36 -0400, Timothy M Butterworth wrote:
> On Sun, Jul 20, 2025 at 7:23 AM Max Nikulin <maniku...@gmail.com> wrote:
> 
> > On 20/07/2025 13:22, Tom Dial wrote:
> > >   unable to install new version of '/lib64/ld-linux-x86-64.so.2': No
> > > such file or directory
> >
> 
> try:
> "sudo apt update"
> "sudo apt purge ld-linux"
> "sudo apt install ld-linux"

That isn't even a valid package name, let alone a sensible recipe.

If ld-linux *were* a standalone package, then purging it would almost
certainly cause every dynamically linked command on your system to
break.  That would definitely include sudo and apt.

The most likely solution here is going to be something like:

 1) Boot from some other medium.
 2) Mount the affected file system somewhere.
 3) cd (NOT chroot) into the affected file system's /tmp directory.
 4) Extract a libc6 package of the appropriate arch and version.
 5) Move the files into their correct locations.
 6) chroot into the affected file system's / directory.
 7) Run /sbin/ldconfig.
 8) Exit the chroot, cd out of the affected system, and unmount it.
 9) Reboot into the affected system to test it.
 10) If all seems well, reinstall the libc6 package via apt or dpkg.
     Just to make sure.  (Note: this must be a single reinstall step,
     not a purge followed by an install.)

Reply via email to