在Debian上安装网卡驱动,可参考以下步骤:
lspci(PCI设备)或lsusb(USB设备)命令查看网卡型号和制造商。sudo apt update。sudo apt install <驱动包名>安装,如sudo apt install firmware-linux-nonfree安装无线网卡固件。.tar.gz文件,解压后进入目录,依次执行./configure、make、sudo make install;若是.deb文件,用sudo dpkg -i <驱动包路径>安装。sudo modprobe <驱动模块名>加载驱动,如sudo modprobe r8168。lsmod | grep <驱动名>查看驱动是否加载,用ip a或ifconfig查看网卡是否正常。对于无线网卡,还可通过nmcli或wpa_supplicant连接网络。安装完成后,建议重启网络服务,用sudo systemctl restart networking或sudo systemctl restart NetworkManager。