ubuntu更新源的意思是甚么
ubuntu更新源是指更新ubuntu系统的软件源,比你需要安装某个软件时是通过apt-get install xxx命令安装的,而ubuntu系统下载软件的地方,一般默许为海外的链接,因此会比较慢,能够换成国内的源提升下载速度。
更换源具体操作步骤:
1.打开终端。
2.输入以下命令备份原来的源。
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
3.再输入以下命令打开sources.list配置文件更换源。
sudo vim/etc/apt/sources.list
//配置内容以下
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse focal
4.再输入命令更新源。
sudo apt-get update
5.最后输入命令更新一下软件便可。
sudo apt-get upgrade
本文来源:https://www.yuntue.com/post/69671.html | 云服务器网,转载请注明出处!

微信扫一扫打赏
支付宝扫一扫打赏