Trying to clean disk space, but can't remove packages
Solution 1:
The trick will be to try to release a minimum of space, so that apt-get
can work again.
See here to find out what is taking the place.
If there are user data, move that out first. If not, then you could empty the log files.
That will allow apt
to work. Run sudo apt clean
to remove downloaded .deb
files, sudo apt autoremove
to automatically remove packages that are not needed. If sudo apt autoremove
did not remove all old kernels, you may want to remove them manually.
It is important to diagnose why your / would have filled. If the cause is not removed, you will quickly hit the problem again.