wifi 在 kali linux 上無法運作(也無法下載)

wifi 在 kali linux 上無法運作(也無法下載)

所以我的虛擬機器上有 kali linux (我使用 vm ware station pro 16),每當我嘗試下載任何更新時,它都會告訴我:

Ign:1 http://http.kali.org/kali kali-rolling InRelease
Ign:1 http://http.kali.org/kali kali-rolling InRelease
Ign:1 http://http.kali.org/kali kali-rolling InRelease
Err:1 http://http.kali.org/kali kali-rolling InRelease
  Temporary failure resolving 'http.kali.org'
Reading package lists... Done
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease  Temporary failure resolving 'http.kali.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

當我嘗試在 Firefox 上運行時,它給了我一個錯誤:

Hmm. We’re having trouble finding that site.

We can’t connect to the server at www.google.com.

If that address is correct, here are three other things you can try:`

    Try again later.
    Check your network connection.
    If you are connected but behind a firewall, check that Firefox has permission to access the Web.

答案1

我在 VMware Workstation Pro V16 和 Internet 上使用 Kali 2022.3 作為虛擬機,更新工作正常。

(1) 確保您的 Kali Guest 設定為 NAT 或橋接,而不是僅設定為主機。它似乎設置為僅限主機。

(2) 確保在設定 NAT 時 Kali 使用 VMware 的硬體網路連線。它看起來像以太網。

任何 VMware Guest 都使用 VMware 硬體網路連接,而不是實體 NIC。

如果您出於某種原因希望使用真正的網路卡,則需要一個 USB NIC,然後使用 VMware 直通並在 Kali 中設定該卡。您需要一張帶有 Linux 驅動程式的卡。

嘗試製作一台新的來賓機器,看看是否有效。請記住,您必須為 VMware 硬體網路連線設定 Kali。

相關內容