I'm still new to this field. I can't find a specific solution in any way. The first problem was that when I started the system after a long break, I was offered to update the application packages. I tried to update with the standard apt-upgrade, but I got the error "not enough space in /var/cache/apt/archives
.
There are many solutions on the Internet, but I have not found the right one. I found one of the solutions where it was suggested to move /tmp/
to RAM [here], as I understood it. I'm not sure if the author wrote the command correctly or he gave incorrect instructions for further maintenance, which then filled my entire system to 100% (although there should have been enough memory, especially since I have vdi).
Now I can't, for example, scroll through the command history, and the files themselves can't be written and are moved to the swap partition (as I assume). The system starts, but it feels like I called a deadlock (I may be wrong). I know that snapshots should be taken regularly, but I still hope that there is a solution to these problems. And I'll also say about the first problem with updating packages, it seems to me that it may have something to do with docker.
Please tell me, I really don't want to lose data on this system (there were laboratory works).
vae@lamervae:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 394M 1.3M 392M 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 12G 12G 0 100% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/loop0 64M 64M 0 100% /snap/core20/1778
/dev/loop1 64M 64M 0 100% /snap/core20/1828
/dev/loop2 92M 92M 0 100% /snap/lxd/24061
/dev/sda2 2.0G 209M 1.6G 12% /boot
/dev/loop4 41M 41M 0 100% /snap/snapd/20290
/dev/loop3 68M 68M 0 100% /snap/lxd/22753
/dev/loop5 50M 50M 0 100% /snap/snapd/18357
tmpfs 394M 0 394M 0% /run/user/1000
Ubuntu 20.04 LTS Server
vae@lamervae:~$ sudo unlink /var/cache/apt unlink: cannot unlink '/var/cache/apt': Is a directory vae@lamervae:~$ sudo umount /media/job umount: /media/job: not mounted.
– асланчик Dec 21 '23 at 11:05free -m total used free shared buff/cache available Mem: 1983 210 1135 23 637 1591 Swap: 2047 0 2047
– асланчик Dec 21 '23 at 11:09