linux修改源映象位址

2021-08-15 16:58:55 字數 1647 閱讀 4240

1、首先備份系統自帶yum源配置檔案/etc/yum.repos.d/centos-base.repo

[root@iz91q68xe2hhxlz yum.repos.d]#  mv /etc/yum.repos.d/centos-base.repo /etc/yum.repos.d/centos-base.repo.bak
2、進入yum源配置檔案所在的資料夾

[root@iz91q68xe2hhxlz yum.repos.d]# cd /etc/yum.repos.d/
[root@iz91q68xe2hhxlz yum.repos.d]# wget
1、首先備份系統自帶apt-get源配置檔案/etc/apt/sources.list

cp /etc/apt/sources.list /etc/apt/sources.list.bak
#阿里雲源

deb  trusty main restricted universe multiverse

deb trusty-security main restricted universe multiverse

deb trusty-updates main restricted universe multiverse

deb trusty-proposed main restricted universe multiverse

deb trusty-backports main restricted universe multiverse

deb-src trusty main restricted universe multiverse

deb-src trusty-security main restricted universe multiverse

deb-src trusty-updates main restricted universe multiverse

deb-src trusty-proposed main restricted universe multiverse

deb-src trusty-backports main restricted universe multiverse

#清華大學源

deb  xenial main restricted

deb xenial-updates main restricted

deb xenial universe

deb xenial-updates universe

deb xenial multiverse

deb xenial-updates multiverse

deb xenial-backports main restricted universe multiverse

deb xenial-security main restricted

deb xenial-security universe

deb xenial-security multiverse

3、更新測試一下

apt-get update

linux修改源映象位址

1.1 centos修改yum源映象位址為 mirrors.163.com 也可以改為阿里雲映象 1 首先備份系統自帶yum源配置檔案 etc yum.repos.d centos base.repo root iz91q68xe2hhxlz yum.repos.d mv etc yum.repos...

linux 修改映象源

deepin 系統修改源 deb camel main contrib non free deb camel main contrib non free ubantu配置apt軟體源 清華大學開源映象 幫助頁面 阿里雲開源映象 網易開源映象 蘭州大學開源映象 東北大學開元映象 2019.03.19進...

linux修改yum源映象源

修改centos預設yum源為國內yum映象源 1 首先備份系統自帶yum源配置檔案 etc yum.repos.d centos base.repo 1 root localhost mv etc yum.repos.d centos base.repo etc yum.repos.d cento...