debian安装太慢问题解决

        安装debian的时候无论是什么安装方式(网络安装或者DVD ISO刻录U盘安装),只要在安装过程中选择了网络更新都会体验到奇慢的内容下载速度甚至是安装失败,哪怕是在安装过程中使用了debian列出的中国大陆地区的认证的软件源。具体的原因是debian.org默认的软件源deb.debian.org用的是海外CDN供应商,边缘节点在中国大陆地区几乎没有,所以大陆用户访问很慢;此外默认情况下选择中国大陆地区的软件源默认只会加速非security内容,因为一般来说,为了更及时地获得安全更新,不推荐使用镜像站安全更新软件源,因为镜像站往往有同步延迟。

解决方案:

        安装时不要连接网络!!!

        这样可以避开网络更新这个步骤。

        在安装过程中,在“Configure the package manager”时,选择“No”

        

        系统安装好后,修改/etc/apt/sources.list为国内源:

        su

        vi /etc/apt/sources.list

        

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
#deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
#deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
#deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
#deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware

        apt update

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值