帮助与文档

当前位置: 主页 > 系统相关 > 正文

Debian8系统中执行apt-get update命令提示404 Not Found

时间:2024/4/25 8:53:09   来源:米安网络   作者:云主机配置专家   点击:7次

debian8系统中执行apt-get update命令提示404 Not Found,本教程以debian8系统为例

本配置适用于debian8,9版本

1.问题描述

Debian 8系统在执行“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文件,在文件中添加以下内容。

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

退出文件保存后执行apt-get update更新下即可

版权保护: 本文「Debian8系统中执行apt-get update命令提示404 Not Found」由 云主机配置专家 原创,转载请保留链接: https://www.miandns.com/docs/system/1208.html

联系客服

0312-5535754

微信公众号