[LINUX] apt --fix-broken has occurred! !!

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.

Cause

apt update apt upgrade apt dist-upgrade 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.

Excerpt from error message content

apt --fix-broken install
A message is output asking you to do this

It is also an error to execute by imitating

An error occurred in / var / cache / apt / archives / *

I don't understand why, so I learned about apt

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

command description
sudo apt clean Delete APT cache
sudo apt autoclean Delete unused files from APT cache

result

After that, the archive subordinate became empty, and apt can be executed safely!

Remarks (repository confirmation procedure)

Edit repository reference vim /etc/apt/sources.list

pasting deb http://http.kali.org/kali kali-rolling main contrib non-free

Reference site

https://blog.treedown.net/entry/2019/05/15/010000 https://news.mynavi.jp/article/20190724-864746/

Recommended Posts

apt --fix-broken has occurred! !!