Debian10更换apt源

今天安装了个debian10,发现网上包括各大镜像网站提供的源地址都有点问题,经测试,Debian 10(buster)可用的国内软件源如下:

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

备份 etc/apt/sources.list

备份

cp /etc/apt/sources.list /etc/apt/sources.list.bak
在 /etc/apt/sources.list 文件,注释原文件所有内容,前面添加上面的条目。

/etc/apt/sources.list 是包管理工具 apt 所用的记录软件包仓库位置的配置文件
其中,deb:档案类型为二进制预编译软件包,一般我们所用的档案类型。
deb-src:档案类型为用于编译二进制软件包的源代码

最后 apt-get update 进行更新

<<:  服务器安装libsodium支持chacha20&salsa20

>>:  Centos7安装seafile7.1.5专业版

Day 27 Compose UI Drawer

Day 27 Compose UI Drawer 今年的疫情蛮严重的,希望大家都过得安好,希望疫情快...

Flutter体验 Day 12-线性布局

线性布局 不管是水平布局或是垂直布局都是布局上常用的配置方式。 布局组件 Row Column Wr...

学习历程救援事件(灾难复原实例)後续追踪

事件简述 学习历程救援事件(灾难复原实例)後续追踪 暨大提出精进措施管控风险 行政院长苏贞昌也指示行...

前端藏宝图 - 宝藏在哪儿?

前言 第一次参加铁人赛,很单纯的只是将自己学习的内容做整理记录,有很多不周全的地方,谢谢其他铁人们的...

[Golang] Modules

Within a small application, we can just use the ma...