Linux更换软件源(国内)阿里云
生活随笔
收集整理的這篇文章主要介紹了
Linux更换软件源(国内)阿里云
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
(請先看置頂博文)https://blog.csdn.net/GenuineMonster/article/details/104495419
有很多在Windows系統下使用的軟件下雖然有Linux的版本,但是無法在終端用命令行下載使用,這也許是軟件源的問題。
所以修改軟件源,也許會解決此類問題。
1、備份系統默認的軟件源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak2、修改/etc/apt/sources.list??
sudo -i >/etc/apt/sources.list3、
?
?
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial universe deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties deb http://archive.canonical.com/ubuntu xenial partner deb-src http://archive.canonical.com/ubuntu xenial partner deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse EOF3、進行更新設置
apt-get update? ? ?(必須執行,缺少這一步是無效的)
?
總結
以上是生活随笔為你收集整理的Linux更换软件源(国内)阿里云的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 力帆集团汽车研究院?
- 下一篇: 算法学习路线图