debian10 更换apt-get 163国内源

在用debain10的时候装软件 各种拉胯,受不了,还是C7香···

1、可以先备份sources.list文件
文件位于:

/etc/apt/sources.list

2、直接覆盖修改成以下163源(用了aliyun和163,发现还是163好用)

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

3、更新源

apt-get update

然后就愉快的安装apt-get

标签: 无

发表评论:

选择表情