Today I needed to watch some videos in .mp4 format on my laptop, so I decided to install mpv (I use Ubuntu 22.04). I did it by apt which at the moment required from me typing a command "Yes, do as i say!" to proceed. Due to the exhaust and my foolishness, I told it to proceed and my system crashed. Let me describe every detail I remember.
Right after installation of Mpv (before rebooting) I noticed that some things changed (the wi-fi icon disappeared etc.). Then I decided to reboot my system, and instead of opening gui, black screen appeared (tty1).
When I want to open grub menu, it shows up as a minimal bash like line. Moreover, while I am in a terminal then any apt command doesn't work, so that I cannot install and reinstall anything using apt.
For example, typing
sudo apt-get update
I receive an answer
Temporary failure resolving 'pl.archive.ubuntu.com
So next, I tried
echo "nameserver 8.8.8.8" sudo tee /etc/resolv.conf > /dev/null
but then it answers
tee: /etc/resolv.conf: No such file or directory
and I am stuck here.
I've tried many things to fix things up. I have read almost every questions and answers concerning similar crashes, but any of them helped.
I am desperately looking forward to any help, any suggestions how to fight this problem. I really would like to to avoid reinstalling my system, since I have got some important files in my home directory.
I use laptop acer Aspire 5.
Edit: I managed to access grub standard menu using USB linux.