How to recover deleted folder /usr/lib/x86_64-linux-gnu in Ubuntu?

When I tried to clean system (deleting unnecessary files, folders) terrible event has happened: I accidentally deleted system folder /usr/lib/x86_64-linux-gnu . System has crashed, and now when I choosing Ubuntu in GRUB Menu - i get error (in the picture), so now i can't access to my Ubuntu.введите сюда описание изображения

Now I'm running Ubuntu with my bootable USB stick. What if I will copy folder /usr/lib/x86_64-linux-gnu from USB's Ubuntu to my crashed Ubuntu - will it solve the problem? If it wouldn't, how can I fix this problem?

I'm very newbie in Ubuntu, so I will be so grateful if you will describe way to solve my issue by simple steps, which I can understand :)

Anyway, thanks for any answers!! :)


Ответы (1 шт):

Автор решения: Артем Силевич

As I expected, all I had to do was copy the remote /usr/lib/x86_64-linux-gnu folder from the Ununtu boot flash drive to the fallen Ubuntu.

More details on what had to be done after the system crashed:

  1. Create a bootable flash drive, boot from it (press F9 when turning on the computer, in the menu select - boot from USB-dick).

  2. Copy the folder we need on the old Ubuntu, do it by command: sudo cp -R usr/lib/x86_64-linux-gnu.

  3. Reboot the computer, start under the old Ubuntu (press F9 when switching on the computer, in the menu select - boot from Ubuntu) - problem solved: no more black windows with unclear errors. :)

→ Ссылка