编辑net配置
sudo vim /etc/netplan/00-network-manager-all.yaml
let networkmanager manage all devices on this system
network:
version:2
renderer:networkmanager
ethernets:
ens33:
dhcp4:no
addresses:[192.168.166.180/24]
gateway4:192.168.166.1
nameservers:
addresses:[114.114.114.114]
重启net网络
sudo netplan --debug apply
----------------------------------------------------------------------------------------------------------
更换源文件
sudo chmod 777 /etc/apt/sources.list
sudo vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
评论 (0)