CentOS8/Debian10安装源教程LinuxServer

印迹发布于:2021-9-29 567

安装:

CentOS8通过引导盘+网络镜像镜像源安装系统,设置网络镜像安装源为:

https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/


更换更新源:

cd /etc/yum.repos.d/

CentOS 7

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

CentOS 8

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
更换安装源
cd /etc
mv yum.repos.d yum.repos.d.bak
mkdir yum.repos.d
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
Debian

阿里:https://developer.aliyun.com/mirror/debian?spm=a2c6h.13651102.0.0.3e221b11KlIzik

debian 11.x (bullseye)

编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

deb http://mirrors.cloud.aliyuncs.com/debian/ bullseye main non-free contrib
deb-src http://mirrors.cloud.aliyuncs.com/debian/ bullseye main non-free contrib
deb http://mirrors.cloud.aliyuncs.com/debian-security bullseye/updates main
deb-src http://mirrors.cloud.aliyuncs.com/debian-security bullseye/updates main
deb http://mirrors.cloud.aliyuncs.com/debian/ bullseye-updates main non-free contrib
deb-src http://mirrors.cloud.aliyuncs.com/debian/ bullseye-updates main non-free contrib
deb http://mirrors.cloud.aliyuncs.com/debian/ bullseye-backports main non-free contrib
deb-src http://mirrors.cloud.aliyuncs.com/debian/ bullseye-backports main non-free contrib


网易:

deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib


Debian10

安装了Debian10,但是想安装宝塔面板和transmission都出错,主要是因为apt源的问题,

更换apt源

nano /etc/apt/sources.list

用#注释掉原来的

加入一下记录

deb https://mirrors.aliyun.com/debian  stable main contrib non-free
deb https://mirrors.aliyun.com/debian  stable-updates main contrib non-free

保存,然后 apt-get update 进行更新

官方/镜像源下载

解决步骤:

去mirrors.163.com

找到debian,去右边help,下载源配置文件

放到/etc/apt/source.list

apt update 更新源

常用软件在源里安装就行了

其它:

1、技术文章汇总

2、阿里CentOS安装源Debian安装源




http://www.virplus.com/thread-1422.htm
转载请注明:2021-9-29 于 VirPlus 发表

推荐阅读
最新回复 (0)

    ( 登录 ) 后,可以发表评论!

    返回