Ubuntu22.04安装

使用Vmware安装好后

首先执行下面命令,不然每次打开终端会出现To run a command as administrator (user root)...

bash 复制代码
touch  ~/.sudo_as_admin_successful

换源

参考

bash 复制代码
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

sudo gedit /etc/apt/sources.list

清空原有内容把下面内容写入

bash 复制代码
## 默认禁用源码镜像以提高速度,如需启用请自行取消注释
deb https://mirrors.ustc.edu.cn/ubuntu jammy main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu jammy main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu jammy-updates main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu jammy-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu jammy-backports main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu jammy-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu jammy-security main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu jammy-security main restricted universe multiverse

## 预发布软件源(不建议启用)
# deb https://mirrors.ustc.edu.cn/ubuntu jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu jammy-proposed main restricted universe multiverse
bash 复制代码
sudo apt update

安装vmtools

直接使用VMware自带的方法不太行,这里参考

通过命令行来安装高版本的,中间一路按回车就行

bash 复制代码
sudo apt install open-vm-tools-desktop -y
sudo reboot

最后成功搞定

相关推荐
Sheffield3 小时前
Alpine是什么,为什么是Docker首选?
linux·docker·容器
Johny_Zhao21 小时前
centos7安装部署openclaw
linux·人工智能·信息安全·云计算·yum源·系统运维·openclaw
haibindev21 小时前
在 Windows+WSL2 上部署 OpenClaw AI员工的实践与踩坑
linux·wsl2·openclaw
0xDevNull2 天前
Linux切换JDK版本详细教程
linux
进击的丸子2 天前
虹软人脸服务器版SDK(Linux/ARM Pro)多线程调用及性能优化
linux·数据库·后端
Johny_Zhao4 天前
OpenClaw安装部署教程
linux·人工智能·ai·云计算·系统运维·openclaw
chlk1235 天前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑5 天前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件5 天前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux