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

最后成功搞定

相关推荐
眠修11 分钟前
Kuberrnetes 服务发布
linux·运维·服务器
即将头秃的程序媛3 小时前
centos 7.9安装tomcat,并实现开机自启
linux·运维·centos
fangeqin3 小时前
ubuntu源码安装python3.13遇到Could not build the ssl module!解决方法
linux·python·ubuntu·openssl
爱奥尼欧5 小时前
【Linux 系统】基础IO——Linux中对文件的理解
linux·服务器·microsoft
超喜欢下雨天5 小时前
服务器安装 ros2时遇到底层库依赖冲突的问题
linux·运维·服务器·ros2
tan77º6 小时前
【Linux网络编程】网络基础
linux·服务器·网络
笑衬人心。6 小时前
Ubuntu 22.04 + MySQL 8 无密码登录问题与 root 密码重置指南
linux·mysql·ubuntu
chanalbert8 小时前
CentOS系统新手指导手册
linux·运维·centos
星宸追风8 小时前
Ubuntu更换Home目录所在硬盘的过程
linux·运维·ubuntu
热爱生活的猴子9 小时前
Poetry 在 Linux 和 Windows 系统中的安装步骤
linux·运维·windows