Centos7/8 和 Ubuntu 更换源
文章目录
- 1. centos7 更换阿里 yum 源
- 2. ubuntu 更换阿里源
- 3. centos8 安装阿里源
1. centos7 更换阿里 yum 源
备份 repo 源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all && yum makecache # 失败检查 hosts 和 resolv.conf
2. ubuntu 更换阿里源
备份
cd /etc/apt/
cp sources.list sources.list_bak
vim sources.list
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
更新
apt update # 失败检查 hosts 和 resolv.conf
升级软件
apt upgrade # 失败检查 hosts 和 resolv.conf
3. centos8 安装阿里源
试验了阿里云 Anolis OS release 8.6 可行
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
wget https://mirrors.aliyun.com/repo/epel-archive-8.repo -O /etc/yum.repos.d/epel-archive-8.repo
yum clean all && yum makecache
Centos7/8 和 Ubuntu 更换源相关推荐
- ubuntu更换源(清华、中科大、阿里)
ubuntu更换源(清华.中科大.阿里) 一.备份文件 mv /etc/apt/sources.list /etc/apt/sourses.list.backup 二.新建sourses.list文件 ...
- ubuntu更换源(清华源)并更新系统
首先更新自己需要的源 (1)打开清华园官网https://mirrors.tuna.tsinghua.edu.cn/: (2)搜索Ubuntu: (3)点击旁边的问号: (4)选择自己ubuntu的版 ...
- 安装ubuntu更换源以及未满足依赖关系问题
首先因为Ubuntu的源是国外的,下载东西太慢了. so,就装个vim你就要用10个小时来折磨我嘛?嗯? 所以对于大部分人来说还是需要一个国内的源来使得下载速度提升,so,先备份然后用gedit来编辑 ...
- ubuntu更换源报 E: Failed to fetch。。。。错误的解决办法
在VirtualBOx中安装ubuntu系统,将源更换为阿里,网易之类的源都报下面这写错误 E: Failed to fetch http://mirrors.aliyun.com/ubuntu/di ...
- Ubuntu更换源(全)更换阿里云源 清华源 豆瓣源 腾讯源 sohu源 163源 西电 网易源
换源步骤 切换到源文件夹下 cp /etc/apt/,查看文件ls,里面有个sources.list文件: 输入命令,sudo cp sources.list sources.list.bak,备份原 ...
- ubuntu更换源的方法
(1)备份原来的源,以防以后需要用到. sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak (2)打开/etc/apt/sources.li ...
- Ubuntu快速更换源
Ubuntu更换源,零基础操作 提示:跟着一步步来,很快完成操作 为什么要换源?安装的linux系统默认的源是国外的,当用命令行安装软件(比如安装gcc)时下载速度非常慢,这里将源换成国内阿里云,就可 ...
- linux学习笔记(设置中文界面,更换源,linux常用命令)
文章目录 1.ubuntu设置中文 1.1设置中文界面 打开系统设置 找到语言配置,安装语言 点击安装或移除语言,找到Chinese(simplified) 应用并重启ubuntu 至此中文界面设置完 ...
- ubuntu镜像源更换_ubuntu16.04更换镜像源
1.备份原有 cp /etc/apt/sources.list /etc/apt/sources.list.old 2.打开阿里巴巴镜像源: https://opsx.alibaba.com/mir ...
最新文章
- 4.Product-based Neural Networks for User Response Prediction论文详细解读和代码实现
- 著名IT公司名字来由
- [LeetCode]题解(python):140-Word Break II
- react中使用构建缓存_使用React和Netlify从头开始构建电子商务网站
- 问:为什么python中有了全局解释器锁GIL,还要有互斥锁?
- 佳能80d有人脸识别吗_2020单反/微单相机推荐,单反和微单(无反)选购攻略,佳能、尼康、索尼、富士、松下相机...
- Android 原创新作 超级水平仪 发布
- Mac常用测试工具环境变量配置
- MCGSpor软件下载及安装教程
- 解决永中集成office和opera的中文输入问题
- 深入理解Binder机制
- “风味人间”与计算机程序设计艺术《禅与计算机程序设计艺术》 / 陈光剑
- 数值分析常见算法C++实现
- 荣耀手机与无线电脑连接服务器,华为手机怎么实现无线连接PC电脑传输文件和图片...
- Stream和方法引用
- R语言矩阵操作:根据值找到行号和列号
- 简易计算器,你值得拥有
- 李峋同款爱心代码(附源码)
- Authentication failed for 解决办法
- 题解:单词排序(水)
热门文章
- AI 编剧大师 #Dramatron
- 浪漫的python代码_十行Python代码让你秒变撩妹达人,程序员浪漫起来就没有你们啥事了!...
- python grad_在Python中实现Adagrad
- IOS系统抓包之短链-破解双向证书
- 机器学习算法系列(十四)-硬间隔支持向量机算法(Hard-margin Support Vector Machine)
- 数影周报:微星被索要2750万元巨额赎金,标贝科技获超亿元融资
- IDEA(下载、安装、激活详细图文)
- 2022年G3锅炉水处理上岗证题目及答案
- 如何使用ABBYY将PDF文档转换为演示使用的PPT
- Vcenter 7.0 HA部署