I'm fairly new to linux and I was trying ti install samba in order to use to share files with a Windows 10 qemu/kvm virtual machine. Samba though wouldn't be installed and I couldn't figure out why. Searching through the forum I stupidly followed some guy's instructions where he would autoremove some library but with the --purge
flag.
Almost immediately I realized that wasn't a wise move since it had started removing libs like pulse audio and gnome. I wasn't worried because I found in the logs the libraries that had been removed and I was in the process of writing a mini C++ program to take the log file as input and generate a bash file to re-install thise libraries.
Meanwhile though I had to move to a different location, so I closed the lid of the laptop. And from there things went south. When I reopened the lid, the screen wouldn't let me authenticate (keyboard was inaccessible and the login couldn't receive any input), so I had to reboot, hoping for a miracle.
Needless to say that the miracle didn't came. I'm in the process of taking a backup through the SupportAssist OS Recocery that Dell ships with. I also have access to grub.
Is there any way to save the situation without freshly reinstalling the OS?
apt
commands will ask for confirmation so this is avoidable in the future if you make sure that you pay attention to the terminal output and don't blindly follow instructions you found from some source. Always research commands before running them if you don't know what they do. – Nmath Jun 13 '21 at 15:52