为什么当我在 macOS 上切换到与 VMWare 的桥接网络连接时会出现“哈希总和不匹配”?

为什么当我在 macOS 上切换到与 VMWare 的桥接网络连接时会出现“哈希总和不匹配”?

我更愿意以桥接配置运行我的虚拟机,这样它就会在我的网络上显示为另一台机器。但是,当我从 NATed 配置切换到桥接连接时,从 Kali 存储库提取数据时会出现“哈希总和不匹配”的情况。我最好奇的是为什么会出现这种情况。

我切换到桥接(自动检测或 Wi-Fi)
┌──(kali㉿kali)-[~]
└─$ sudo apt update              
Hit:1 http://kali.download/kali kali-rolling InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
462 packages can be upgraded. Run 'apt list --upgradable' to see them.

┌──(kali㉿kali)-[~]
└─$ sudo apt install netcat                                                                                                   100 ⨯
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  netcat-openbsd
The following NEW packages will be installed:
  netcat netcat-openbsd
0 upgraded, 2 newly installed, 0 to remove and 462 not upgraded.
Need to get 50.8 kB of archives.
After this operation, 130 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
...
E: Failed to fetch http://kali.download/kali/pool/main/n/netcat/netcat_1.10-46_all.deb  Hash Sum mismatch
   Hashes of expected file:
    - SHA256:ceca713ddc75918359f7c6b41e1bee9359af9cceb248d5bfeb741b1c514b458a
    - SHA1:4951e4dac216f1958608fea30341174a90746506 [weak]
    - MD5Sum:e9b4e8f1f33d5c06c5bd7fbd3bdb3dfa [weak]
    - Filesize:9728 [weak]
   Hashes of received file:
    - SHA256:01edcc26407d805db589199b3ff20ea20fa4989a33f23f33de39ccdb7b8ee9d1
    - SHA1:5e437148e0d904a210c27e7352a5c3f7f901903f [weak]
    - MD5Sum:2e8df299034b35a2dc4d36fba0531cd7 [weak]
    - Filesize:9728 [weak]
   Last modification reported: Sat, 29 Aug 2020 23:12:44 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我切换到 NAT
┌──(kali㉿kali)-[~]
└─$ sudo apt update                                                                                                           100 ⨯
Hit:1 http://kali.download/kali kali-rolling InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
462 packages can be upgraded. Run 'apt list --upgradable' to see them.
                                                                                                                                    
┌──(kali㉿kali)-[~]
└─$ sudo apt install netcat
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  netcat-openbsd
The following NEW packages will be installed:
  netcat netcat-openbsd
0 upgraded, 2 newly installed, 0 to remove and 462 not upgraded.
Need to get 50.8 kB of archives.
After this operation, 130 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://kali.download/kali kali-rolling/main amd64 netcat-openbsd amd64 1.217-3 [41.1 kB]
Get:2 http://kali.download/kali kali-rolling/main amd64 netcat all 1.10-46 [9,728 B]
Fetched 50.8 kB in 0s (116 kB/s)  
Selecting previously unselected package netcat-openbsd.
(Reading database ... 277931 files and directories currently installed.)
Preparing to unpack .../netcat-openbsd_1.217-3_amd64.deb ...
Unpacking netcat-openbsd (1.217-3) ...
Selecting previously unselected package netcat.
Preparing to unpack .../netcat_1.10-46_all.deb ...
Unpacking netcat (1.10-46) ...
Setting up netcat-openbsd (1.217-3) ...
update-alternatives: using /bin/nc.openbsd to provide /bin/nc (nc) in auto mode
Setting up netcat (1.10-46) ...
Processing triggers for kali-menu (2021.1.4) ...
Processing triggers for man-db (2.9.3-2) ...

我已经尝试过这里的解决方案:https://stackoverflow.com/questions/15505775/debian-apt-packages-hash-sum-mismatch 但我最终收到“签名无效”......

┌──(kali㉿kali)-[~]
└─$ sudo apt-get update 
Get:1 http://kali.download/kali kali-rolling InRelease [30.5 kB]
Err:1 http://kali.download/kali kali-rolling InRelease
  The following signatures were invalid: BADSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]
g>
Reading package lists... Done
W: GPG error: http://kali.download/kali kali-rolling InRelease: The following signatures were invalid
: BADSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
E: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

相关内容