【使用小记】Debian开箱不即用之apt镜像源之配置
安装问题
首先开局就是:```Debian读取数据出错 请确认您已经插入了正确的安装介质......```
(我默认的是繁体:```讀取資料時發生了問題 請確認是否已確實放置安裝媒體...```)
处理方法①:推荐!刷入livdCD,安装时候镜像源前用工具ping一下然后看看哪个快
(这个方法不会轻易出现apt更新失败需要手动配置问题以及组件版本过久问题。!不推荐华为镜像源 我装过好几次都缺模块!)
处理方法②:使用ventoy刷入,然后把安装包丢进去。
处理方法③:把电脑吃了(反鸡批剃指纹)
apt配置
终端先备份一下原来的配置,然后再编辑配置修改后Ctrl+X,Y,回车保存即可。
sudo apt-get install apt-transport-https # 首先安装http
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak #备份配置文件
sudo nano /etc/apt/sources.list #修改配置文件
发一下自用的apt配置
# deb cdrom:[Debian GNU/Linux 11.3.0 _Bullseye_ - Official amd64 NETINST 20220326-11:22]/ bullseye main
#deb cdrom:[Debian GNU/Linux 11.3.0 _Bullseye_ - Official amd64 NETINST 20220326-11:22]/ bullseye main
#deb http://mirrors.ustc.edu.cn/debian bullseye main
#deb-src http://mirrors.ustc.edu.cn/debian bullseye main
#deb http://security.debian.org/debian-security bullseye-security main
#deb-src http://security.debian.org/debian-security bullseye-security main
# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
#deb http://mirrors.ustc.edu.cn/debian bullseye-updates main
#deb-src http://mirrors.ustc.edu.cn/debian bullseye-updates main
deb https://mirrors.ustc.edu.cn/debian bullseye main
deb-src https://mirrors.ustc.edu.cn/debian bullseye main
deb https://mirrors.ustc.edu.cn/debian bullseye-updates main
deb-src https://mirrors.ustc.edu.cn/debian bullseye-updates main
deb https://mirrors.ustc.edu.cn/debian bullseye-backports main
deb-src https://mirrors.ustc.edu.cn/debian bullseye-backports main
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main
deb-src https://mirrors.ustc.edu.cn/debian-security bullseye-security main
我是中科大精神学生!