I was addicted to tinkering with kali linux in Virtualbox for the first time in a while, so I will write it as a memorandum.
After running them, failed due to lack of disk
As I found out later, it seems that unnecessary packages worked badly and all subsequent apts failed.
apt --fix-broken install
A message is output asking you to do this
An error occurred in
/ var / cache / apt / archives / *
apt will save packages under / var / cache / apt / archives / So be prepared to delete them all at once
Unnecessary packages can be deleted with the following command
|sudo apt clean||Delete APT cache|
|sudo apt autoclean||Delete unused files from APT cache|
Edit repository reference
deb http://http.kali.org/kali kali-rolling main contrib non-free