新系统Ubuntu18.04安装Qt5.12遇到的问题总结

个人在新安装系统下安装Qt5遇到的问题总结:

我们先修改apt源,默认的是外国的地址,访问太慢了

1.备份sources.list命令

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bcakup


2.编辑sources.list命令

sudo gedit /etc/apt/sources.list

注释或者删除以前的内容,添加清华和阿里的源

# 清华大学源
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
##測試版源
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
# 源碼
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/u

你可能感兴趣的:(Qt,linux,qt,开发语言)