首页>>帮助中心>>香港云服务器Debain运行sudo-apt-instal报错无法下载如何换源

香港云服务器Debain运行sudo-apt-instal报错无法下载如何换源

2024/2/1 136次
香港云服务器Debain运行sudo-apt-instal报错无法下载如何换源

运行sudo apt install命令报错如下:
错误:1 http://mirrors.163.com/debian-security buster/updates/main amd64libcurl4 amd64 7.64.0-4+deb10u2 404 Not Found [IP: 60.191.80.15 80]

错误:2 http://mirrors.163.com/debian-security buster/updates/mainamd64 curl amd64 7.64.0-4+deb10u2404 Not Found [IP: 60.191.80.15 80]

E: 无法下载
http://mirrors.163.com/debian-security/pool/updates/main/c/curl/libcurl4_7.64.0-4+deb10u2_amd64.deb40 4 Not Found [IP: 60.191.80.15 80]

E: 无法下载
http://mirrors.163.com/debian-security/pool/updates/main/c/curl/curl_7.64.0-4+deb10u2_amd64.deb404 N ot Found [IP: 60.191.80.15 80]

E: 有几个软件包无法下载,要不运行 apt-get update 或者加上--fix-missing 的选项再试试?



解决方法:换源,方法如下:
1.修改/etc/apt/sources.list文件:vim /etc/apt/sources.list

2.修改为:(建议先备份再操作)
deb https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ buster-updates main contribnon-free

deb https://mirrors.ustc.edu.cn/debian/ buster-backports main contribnon-free

deb https://mirrors.ustc.edu.cn/debian-security/ buster/updates maincontrib non-free

deb-src https://mirrors.ustc.edu.cn/debian/ buster main contribnon-free

deb-src https://mirrors.ustc.edu.cn/debian/ buster-updates maincontrib non-free

deb-src https://mirrors.ustc.edu.cn/debian/ buster-backports maincontrib non-free

deb-src https://mirrors.ustc.edu.cn/debian-security/ buster/updatesmain contrib non-free


3.更新源:apt-get update


换源完成,即可下载软件了。