主机 windows 10, VM 虚机装 ubu 22 桌面版,出现无网络状态,先清理 NetworkManager 缓存,如下命令:
# 关闭 NetworkManager
sudo service NetworkManager stop
# 删除 NetworkManager 缓存
sudo rm /var/lib/NetworkManager/NetworkManager.state
# 重新启动 NetworkManager
sudo service NetworkManager start
配置 aliyun
源
#deb包
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源码
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
注
使用 sudo apt update
进行更新操作
安装 open-vm-tools
VM 工具
sudo apt install open-vm-tools
网友评论