?修改下载源
进入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
|