Wednesday, February 20, 2019

grub2 - How to re-insall libc6 after remove?

I removed libc6 manually (i.e. by sudo apt remove libc6 command) on my Ubuntu 18.04 system and after reboot, there is just grub command prompt:



GNU GRUB   version 2.02

Minimal BASH_like line editing is supported. For the first word TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.



grub> _


Is there any way to reinstall libc6 and put my system working as before?



UPDATE1:



This is screenshot of my partition structure (as GParted shows):

enter image description here



/dev/sda2 is the partition that is encrypted and contains /etc/, /root/, /lib/, /run/ and other Linux OS default folders and was mounted (at my previous working Lubuntu) as / i.e. system root.



/dev/sda5 is the partition that is not encrypted and was mounted (at my previous working Lubuntu) as /home/ folder.



UPDATE2:



Although /dev/sda5/ is not an encrypted partition, but my /home/myusername/ folder is encrypted as follows and I do not remember how I did this encryption during OS installation and do not know how to recover my data in my /home/myusername/ folder:




lubuntu@lubuntu:~$ sudo ls /media/lubuntu/UUID/myusername/ -la
total 12
dr-x------ 3 1000 1000 4096 Aug 1 2013 .
drwxr-xr-x 7 root root 4096 Aug 25 2014 ..
lrwxrwxrwx 1 1000 1000 27 Aug 1 2013 .Private -> /home/.ecryptfs/myusername/.Private
drwx------ 3 1000 1000 4096 Aug 2 2013 .cache
lrwxrwxrwx 1 1000 1000 28 Aug 1 2013 .ecryptfs -> /home/.ecryptfs/myusername/.ecryptfs
lrwxrwxrwx 1 1000 1000 56 Aug 1 2013 Access-Your-Private-Data.desktop -> /usr/share/ecryptfs-utils/ecryptfs-mount-private.desktop
lrwxrwxrwx 1 1000 1000 52 Aug 1 2013 README.txt -> /usr/share/ecryptfs-utils/ecryptfs-mount-private.txt

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...