1,系统查看

╰─➤  cat /etc/issue
Kali GNU/Linux Rolling \n \l
╰─➤  lsb_release -a
No LSB modules are available.
Distributor ID:	Kali
Description:	Kali GNU/Linux Rolling
Release:	2019.4
Codename:	kali-rolling
╰─➤  uname -a
Linux kali 5.3.0-kali2-amd64 #1 SMP Debian 5.3.9-3kali1 (2019-11-20) x86_64 GNU/Linux

2,设置Kali Linux更新源

#aliyun 阿里云
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib

# ustc 中科大
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
#deb http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free

# kali 官方源
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

3,更新软件

apt-get update && apt-get upgrade
apt update && apt upgrade
╰─➤  lsb_release -a
No LSB modules are available.
Distributor ID:	Kali
Description:	Kali GNU/Linux Rolling
Release:	2020.3
Codename:	kali-rolling
╰─➤  cat /etc/os-release                                                                                                                                                                                                                
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2020.3"
VERSION_ID="2020.3"
VERSION_CODENAME="kali-rolling"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"

4,更新系统

apt -y full-upgrade
下列软件包有未满足的依赖关系:
 libc6-dev : 破坏: libgcc-9-dev (< 9.3.0-5~) 但是 9.2.1-19 正要被安装
E: 错误,pkgProblemResolver::Resolve 发生故障,这可能是有软件包被要求保持现状的缘故。
apt-get install gcc-9-base libgcc-9-dev libc6-dev
  • 内核更新到5.7.0
╰─➤  cat /etc/issue                                                                                                                                                                                                                     
Kali GNU/Linux Rolling \n \l
╰─➤  lsb_release -a
No LSB modules are available.
Distributor ID:	Kali
Description:	Kali GNU/Linux Rolling
Release:	2020.3
Codename:	kali-rolling
╰─➤  uname -a
Linux kali 5.7.0-kali1-amd64 #1 SMP Debian 5.7.6-1kali2 (2020-07-01) x86_64 GNU/Linux

5,删除安装包

  • 删除所有已下载的包文件
apt-get clean
  • 删除已下载的旧包文件
apt-get autoclean
  • 卸载所有自动安装且不再使用的软件包
apt-get autoremove

参考:

  1. kali linux 修改更新源和更新命令
  2. Cannot solve the “The following packages have unmet dependencies” issue
Logo

更多推荐