win10 linux Ubuntu 18.04更换国内源

Posted raisok

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了win10 linux Ubuntu 18.04更换国内源相关的知识,希望对你有一定的参考价值。

  • 安装了win10的linux bash 版本为ubuntu 18.04
    首先查询自己的linux版本信息
cat /etc/issue

技术图片 
然后对系统的镜像源文件进行备份,再修改镜像源文件/etc/apt/sources.list

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

在镜像源文件的最前面添加国内镜像源地址即可

  • 中科大镜像
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
  • 阿里镜像
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
  • 然后使用下面命令进行更新
sudo apt-get update
sudo apt-get upgrade



以上是关于win10 linux Ubuntu 18.04更换国内源的主要内容,如果未能解决你的问题,请参考以下文章

win10 远程登录Ubuntu 18.04错误

1 win10双系统安装ubuntu16.04和18.04(问题详细记录)

Win10+Ubuntu18.04安装双系统

win10+ubuntu18.04双系统的安装

Ubuntu18.04系统下安装Win10

win10+ubuntu18.04 双系统的安装