1,虚拟机安装Ubuntu20.10
- 磁盘选项选择nvme, 开机会更快
2, 更换清华源
sudo cp /etc/apt/source.list /etc/apt/source.list-back
sudo gedit /etc/apt/source.list
- 删除原来所有的内容,添加如下内容
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
sudo apt update && sudo apt upgrade
3, vmware tools 安装以及一些常见错误
-
常规安装vmtools
测试中,Ubuntu20.10使用上述方法安装会出现 segmentation fault (core dumped),导致主机和虚拟机之间不能复制等等问题。
sudo cp -r /your vmtools cd-rom path/ /~desktop
sudo tar -zxvf vmtools.tar-gz
cd vmtools
sudo ./vmware-tools.pl -d
P.S: (-d使用默认选项安装) -
简易安装
sudo apt install open-vm-tools
sudo apt install open-vm-tools-desktop
sudo apt install open-vm-tools-dev
sudo /etc/init.d/gdm3 restart
网友评论