将 Kali Linux 版本从 2020.1 更新到 2020.3

将 Kali Linux 版本从 2020.1 更新到 2020.3

我正在尝试将我的 Kali 版本从 2020.1 更新到 2020.3,因为我安装了许多重要的文件和工具,但我无法做到这一点。

我咨询过这个网站https://www.kali.org/docs/general-use/updating-kali/

我尝试过sudo apt full-upgrade,但什么也没发生。版本依然是2020.1。

$ lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description:    Kali GNU/Linux Rolling
Release:        2020.1
Codename:       kali-rolling
$ sudo apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  clang-9 libclang-common-9-dev libclang-cpp9 libz3-dev llvm-9 llvm-9-dev llvm-9-runtime llvm-9-tools
The following packages will be upgraded:
  clang libomp-8-dev libomp5-8 libpocl2 libpocl2-common pocl-opencl-icd
6 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 47.2 MB/61.0 MB of archives.
After this operation, 310 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 libpocl2 amd64 1.4-6 [15.8 MB]
Get:2 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 libpocl2-common all 1.4-6 [79.2 kB]
Get:3 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 libz3-dev amd64 4.8.7-4 [87.3 kB]
Get:4 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 llvm-9-runtime amd64 1:9.0.1-9 [212 kB]
Get:5 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 llvm-9 amd64 1:9.0.1-9 [4,850 kB]
Get:6 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 llvm-9-tools amd64 1:9.0.1-9 [328 kB]
Get:7 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 llvm-9-dev amd54 1:9.0.1-9 [25.9 MB]
Fetched 39.9 MB in 13s (2,990 kB/s)
Selecting previously unselected package libclang-ccp9.
(Reading database ... 251246 files and directories currently installed.)
Preparing to unpack .../00-libclang-ccp9_1%3a9.0.1-9_amd64.deb ...
Unpacking libclang-cpp9 (1:9.0.1-9) ...
Selecting previously unselected package libclang-common-9-dev.
Preparing to unpack .../01-libclang-common-9-dev_1%3a9.0.1-9_amd64.deb ...
Unpacking libclang-common-9-dev (1:9.0.1-9) ...
Selecting previously unselected package clang-9.
Preparing to unpack .../02-clang-9_1%3a9.0.1-9_amd64.deb ...
Unpacking clang-9 (1:9.0.1-9) ...
Preparing to unpack .../03-clang_1%3a9.0-49_amd64.deb ...
Unpacking clang (1:9.0-49) over (1:8.0-48.3) ...
Preparing to unpack .../04-libomp-8-dev_1%3a8.0.1-8_amd64.deb ...
Unpacking libomp-8-dev (1:8.0.1-8) over (1:8.0.1-4) ...
Preparing to unpack .../05-libomp5-8_1%3a8.0.1-8_amd64.deb ...
Unpacking libomp5-8:amd64 (1:8.0.1-8) over (1:8.0.1-4) ...
Preparing to unpack .../06-pocl-opencl-icd_1.4-6_amd64.deb ...
Unpacking pocl-opencl-icd:amd64 (1.4-6) over (1.3-10) ...
Preparing to unpack .../07-libpocl2_1.4-6_amd64.deb ...
Unpacking ibpocl2:amd64 (1.4-6) over (1.3-10) ...
Preparing to unpack .../08-libpocl2-common_1.4-6_amd64.deb ...
Unpacking ibpocl2-common (1.4-6) over (1.3-10) ...
Selecting previously unselected package libz3-dev:amd64.
Preparing to unpack .../09-libz3-dev_4.8.7-4_amd64.deb ...
Unpacking libz3-dev:amd64 (4.8.7-4) ...
Selecting previously unselected package llvm-9-runtime.
Preparing to unpack .../10-llvm-9-runtime_1%3a9.0.1-9_amd64.deb ...
Unpacking llvm-9-runtime (1:9.0.1-9) ...
Selecting previously unselected package llvm-9.
Preparing to unpack .../11-llvm-9_1%3a9.0.1-9_amd64.deb ...
Unpacking llvm-9 (1:9.0.1-9) ...
Selecting previously unselected package llvm-9-tools.
Preparing to unpack .../12-llvm-9-tools_1%3a9.0.1-9_amd64.deb ...
Unpacking llvm-9-tools (1:9.0.1-9) ...
Selecting previously unselected package llvm-9-dev.
Preparing to unpack .../13-llvm-9-dev_1%3a9.0.1-9_amd64.deb ...
Unpacking llvm-9-dev (1:9.0.1-9) ...
Setting up libz3-dev:amd64 (4.8.7-4) ...
$ grep Version /etc/os-release
VERSION="2020.1"
VERSION_ID="2020.1"
VERSION_CODENAME="kali-rolling"
$ sudo apt full-uprade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo apt update
Hit:1 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.

sources.list以下

deb http://kali.mirror.garr.it/mirrors/kali kali-rolling main non-free contrib
deb-src http://kali.mirror.garr.it/mirrors/kali kali-rolling main non-free contrib

我仍然可以安装新的 Kali 2020.3,但下载和安装所有工具将花费大量时间。我的网速非常慢。

请帮忙。

答案1

你正在使用镜子http://kali.mirror.garr.it/mirrors/kali。目前,它有 Kali Linux 存储库的旧快照。例如,其base-files版本为 1:2020.1.0,而在 Kali Linux 2020.3 中为 1:2020.3.1。这就是为什么您现在无法使用您的配置升级到 2020.3。

根据 kali.org 维基,你sources.list应该包含仅有的默认主机,它将apt自动重定向到最近的最新镜像:

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

将您的更改sources.list为该行,然后重试。


单行sources.list应该足够了。您还可以为程序的源代码添加另一行正如 kali.org 所解释的sources.list以开头的行deb是预编译的二进制包,可以运行。以开头的行deb-src是源代码,您必须在运行之前将其编译为二进制文件。如果您想知道是否需要它,那么您很可能不需要。debdeb-src之间的区别sources.list 之前也解释过

相关内容