kail Linux apt-get failed Solution

kail Linux updates always fail after Baidu search programs in
both cases will be met and summed up all been operated

Apt-get editing remote source file
vim / etc / apt / sources- list
comment out all, and then add the following two:
deb http://http.kali.org/kali Rolling main contrib non-Kali as Free-
deb HTTP: //old.kali.org/kali sana main non-free contrib

推荐使用中科大的源
#中科大

deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib

Update again: already updated

root@years:/etc/apt# apt-get update

Update command:

apt-get update && apt-get upgrade && apt-get dist-upgrade

Second problem: the
replacement of a local source still can not be updated
because of the need to re-add key expired, execute the following command:

root@yesra:~# wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add

Updated again to return to normal

Released seven original articles · won praise 2 · Views 2831

Guess you like

Origin blog.csdn.net/qq_42872441/article/details/104095343