Apt
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,但下載和安裝所有工具需要很長時間。我的網速真的很慢。
請幫忙。
您正在使用鏡子
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 wiki,您
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
是原始碼,您必須在執行之前將其編譯成二進製文件。如果您想知道是否需要它,您很可能不需要。deb
和deb-src
line in的區別sources.list
之前也有解釋過。