Need more space ?

What’s up apt dist-upgrade ?

Yesterday, I booted my kali linux for the first time in 4 months. When I use it regularly, everything is fine, but here…

Just look at the insult message I got:

E: Pas assez d'espace disponible sur /var/cache/apt/archives/

You can translate it by by: not enough space in /var/cache/apt/archives/

mmmhh let’s see the options I have, first I can reinstall the system (which would be clean, which is good for a kali because when you do challenges on HTB, you never know…) nah. Second option add a USB key or hard drive and mount it on /var/cache/apt/archives/. Wait a minute, that’s a good idea but the USB BUS can be super slow, what’s fast? RAM! and I have a lot of RAM, let’s mount this directory in RAM:

sudo mount -t tmpfs -o size=6G tmpfs /var/cache/apt/archives/

and df -h give me:

tmpfs            6.0G   0   6.0G   0%   /var/cache/apt/archives/

now I can do apt upgrade and when the update is finished, don’t forget:

sudo umount /var/cache/apt/archives/