
1、编辑源文件
nano /etc/apt/sources.list内容改成这个
deb http://deb.debian.org/debian trixie main contrib non-free non-free-firmware
deb http://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
2、编辑dns
nano /etc/resolv.conf内容改成这个
nameserver 223.5.5.5
nameserver 223.6.6.6
3、安装sudo:
apt install sudo4、编辑文件:
sudo nano /etc/network/interfaces5、按“i”键启动编辑模式;
# The primary network interface
allow-hotplug ens192
# iface ens192 inet dhcp
auto ens192
iface ens192 inet static
address 10.5.5.8
netmask 255.255.255.0
gateway 10.5.5.6
dns-nameservers 223.5.5.5,223.6.6.66、按ctrrl+x,选Y,回车。
7、重启生效