全新安装 Debian 后无法连接到互联网

全新安装 Debian 后无法连接到互联网

因此,昨天我在我的 Dell Vostro 3480 上全新安装了 Debian 11,在配置过程中遇到了 DHCP 问题,因此我当时手动输入了 IP 和掩码。

安装完成后,我发现没有任何 Wi-Fi 图标,或者无法连接到我的家用调制解调器。

我做了以下事情:

lspci 输出

01:00.0 Ethernet Controller: Realtek Semiconductor Co. , Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Network Controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)

是否配置

bash: ifconfig: command not found

IP 地址

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
   inet 127.0.0.1/8 scope host lo
    valid_lft forever preferred_lft forever 
   inet6 ::1/128 scope host 
    valid_lft forever preferred_lft forever 
2: enpls0:  <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether d8:d0:50:44:76:6d brd ff:ff:ff:ff:ff:ff 

路线-n

bash: route: command not found

路由

[未显示任何内容]

我能够看到之前发布过类似的问题在这里,我完全参考了这些帖子

因此,我下载了firmware-iwlwifi文件从这里在我的 USB 驱动器上,然后我使用以下命令将文件安装到另一个目录

sudo mount /dev/sdb1 /media/usb

此后,我陷入/etc/apt/sources.list并在以下预定义行的末尾添加“非免费”,因此它看起来像这样:

deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free

此后,我进入 /media/usb,然后运行以下命令

sudo dpkg -i 固件-iwlwifi_20210315-3_all.deb

Selecting previously unselected package firmware iwlwifi
(Reading database ... 143298 files and directories currently installed.)
Preparing to unpack firmware-iwlwifi_20210315-3_all.deb ...
Unpacking firmware-iwlwifi (20210315-3) ...
Setting up firmware-iwlwifi (20210315-3) ...

sudo apt-get 安装固件-iwlwifi

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
firmware-iwlwifi is already the newest version (20210315-3).
0 upgraded , 0 newly installed , 0 to remove and 0 not upgraded .

此后,当我重新启动设备(如建议的那样)然后再次登录并输入以下命令时:

lsmod | grep iwl

[什么也没发生]

在此之后,当我输入以下命令时,我能够看到 NetworkManager 已启动。

sudo systemctl status NetworkManager

NetworkManager.service - Network Manager
    Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
    Active: active (running) since Wed 2023-01-18 09:16:54 GMT; 35min ago
    Docs: man:NetworkManager(8)
    Main PID: 594 (NetworkManager)
    Tasks: 3 (limit: 9322)
    Memory: 13.0M
    CPU: 721ms 
    CGroup: /system.slice/NetworkManager.service
          594 /usr/bin/NetworkManager --no-daemon

我现在对这个问题很困惑,任何有关此问题的建议或帮助都将非常有用。因为目前无法从这台机器访问互联网。

谢谢 !

相关内容