poncedeleon,
Some temporary files are located in /tmp.
To delete temporary files:
Code:
cd /tmp
sudo rm -rf *
To clean cache:
Code:
du -sh /var/cache/apt/archives
sudo apt-get clean
In addition, you may wish to check on
how much of your root partition is available.
I came across a full root partition on a friend’s Linux Mint PC the other day. This means that when you try to enter your password, nothing happens apart from the same password box being presented repeatedly in a doom loop.
To check how much space is left use the following command:
The root cause (ha, ha,ha!) of the problem was that redundant kernels had filled up the root partition.
NB Please tread very carefully when removing old kernels!!
My latest kernel is 5.15.0-82 (see attached screenshot). Below it is the previous 5.15.0-79.
Below these two are kernels which can be deleted (see instructions below).
See tip #9 at:
https://easylinuxtipsproject.blogspo...lean-mint.html
“Remove old kernels" in the cleaning tips above. This reduced the used space from 96% to 64%.
Removal of specific redundant kernels
9.2. You can also remove
a specific redundant kernel. Like this:
a. Launch Update Manager. In the toolbar of Update Manager: View - Linux kernels
This may take some time. Then a warning window pops up. Ignore it and click "Continue" in order to proceed.
b.
Ignore the button labelled Remove Kernels... , because that button is meant for mass removal.
Just
click on the kernel that you want to delete. Then click on the "
Remove" button.
NB: I strongly recommend to
leave the latest redundant old kernel in your system, just to be on the safe side!
It never hurts to have a spare kernel that's known to work well.
c. Now reboot your computer.
Automatic removal of old redundant kernels
9.3. The easiest and recommended way to prevent an accumulation of old redundant kernels, is to enable the automatic feature for removing obsolete kernels in Update Manager via Edit > Preferences > Automation > Automatic maintenance > Remove obsolete kernels and dependencies.
I hope this helps.