本文主要是介绍windows10 乌班图配置阿里云镜像2021-07-29,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
修改下载源
进入Ubuntu的界面,运行如下命令:
robin@DESKTOP-083AISO:~$cd /etc/apt
备份文件
robin@DESKTOP-083AISO:~$cp sources.list sources.list.bak
清空文件
robin@DESKTOP-083AISO:~$echo > sources.list
编辑文件
robin@DESKTOP-083AISO:~$sudo vim sources.list
添加以下语句:
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
也就是把下载源更换为国内的镜像地址,否则下载起来,等待的时间会让人抓狂。
# 先升级apt-get ,不然很多包会找不到 sudo apt-get update
这篇关于windows10 乌班图配置阿里云镜像2021-07-29的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!