Debian8系統(tǒng)中執(zhí)行apt-get update命令提示404 Not Found
debian8系統(tǒng)中執(zhí)行apt-get update命令提示404 Not Found,本教程以debian8系統(tǒng)為例
本配置適用于debian8,9版本
1.問題描述
Debian 8系統(tǒng)在執(zhí)行“apt-get update”命令時提示以下報錯。
Err http://mirrors.could.aliyuncs.com jessie/updates/main Sources
404 Not Found
Err http://mirrors.could.aliyuncs.com jessie/updates/contrib Sources
404 Not Found
Err http://mirrors.could.aliyuncs.com jessie/updates/non-free Sources
404 Not Found
2.問題原因
在/etc/apt/sources.list文件中的軟件源地址錯誤或者無效。
3.解決辦法,更換sources.list文件里面源文本即可
請您將/etc/apt目錄下的sources.list文件和sources.list.d目錄改名。然后新建一個sources.list文件,在文件中添加以下內(nèi)容。
deb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib
退出文件保存后執(zhí)行apt-get update更新下即可
版權(quán)保護: 本文「Debian8系統(tǒng)中執(zhí)行apt-get update命令提示404 Not Found」由 云主機配置專家 原創(chuàng),轉(zhuǎn)載請保留鏈接: http://www.iqcg.cn/docs/system/1208.html