Situation: One day my SSD hard failed and deleted many files randomly, consisting some files of the OS. Damage was big enough that made the OS unable to boot and even unable to chrooted.
Fortunately I had another Ubuntu on another disc and I was able to recover chroot
and then boot and network functionality of damaged OS. Then I booted the damaged OS and ran a script that reinstalled every package installed on it (with apt-get install <package> --reinstall
) it wasn't as easy as I'm describing it, there were lots of packages that needed specific attention.
After that almost everything's fine except running 32bit binaries like wine and adb. I need an expert in this field to tell me what should I do to recover executing 32bit binaries.
For example suppose that I wanna run wine:
First lets run it on fish
:
# wine
Failed to execute process '/usr/bin/wine'. Reason:
The file '/usr/bin/wine' does not exist or could not be executed.
Now lets run it on bash
:
# wine
bash: /usr/bin/wine: No such file or directory
Lets enter the full location:
# whereis wine
wine: /usr/bin/wine /usr/bin/X11/wine /usr/share/wine /usr/share/man/man1/wine.1.gz
# /usr/bin/wine
bash: /usr/bin/wine: No such file or directory
Lets see if the file really exists:
# ls -l /usr/bin/wine
-rwxr-xr-x 1 root root 9748 Dec 18 05:11 /usr/bin/wine
What ldd
and file
say:
# ldd /usr/bin/wine
not a dynamic executable
# file /usr/bin/wine
/usr/bin/wine: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0xe4e2fb58bdbbbc2dedf7483825900ed35a6dc989, stripped
How to solve this?
Damaged OS is Ubuntu 13.10 amd64.
apt-get --reinstall
for 32bit binaries, what happens? What do you mean by "except running 32bit binaries like wine and adb"? Technically, they should be no different than the usual 64bit binaries as far as this situation is concerned. Can you elaborate more on the quoted words please.sudo apt-get install ia32-libs
orsudo apt-get ia32-libs --reinstall
apt-get --reinstall
works and doesn't report any problem. The problem is that I can't "run" wine nor adb nor scrivener nor some other 32-bit binaries. When I try to rum them in bash it says:Failed to execute process '/usr/bin/wine'. Reason: The file '/usr/bin/wine' does not exist or could not be executed.
But the file is there and it's executable. When I try toldd
it,ldd
says:not a dynamic executable
@Braiam @bkd.online/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
@Rinzwind