镜像下载、域名解析、时间同步请点击 阿里云开源镜像站
前言
Qt6.22LTS版本正式推出了,刚好有个项目,使用的linux屏资源比较好,准备使用Qt6.22,记录下在ubuntu20.04.3下安装Qt6.22的步骤
一、安装步骤
1.安装ubuntu20.04.3
直接到ubuntu网站,下载该安装镜像,在虚拟机下安装即可
2.更新ubuntu镜像下载源
2.1 修改 sources.list文件
不要使用ubuntu桌面的设置来设置为国内下载源,直接修改/etc/apt/sources.list文件
使用 sudo gedit /etc/apt/sources.list打开该文件
删除文件内所有内容后,使用阿里云镜像
# 阿里云镜像
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted u