首页 帮助中心 香港服务器租用 Debian8系统中执行apt-get update命令提示404 Not Found
Debian8系统中执行apt-get update命令提示404 Not Found
时间 : 2023-05-09 10:11:38 编辑 : 华纳云 阅读量 : 258

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系统如何使用speedtest-cli测试网速 Debian8系统如何使用ping命令 Debian8系统如何通过set-hostname命令修改系统主机名 Debian8系统如何通过history查看历史命令 Debian8系统如何查看CPU、内存、版本等系统信息 Debian8系统如何使用vi命令修改hosts文件 Debian8系统如何设置时间同步 Debian8系统如何使用route命令添加路由 Debian8系统如何使用PS命令查看进程 Debian8系统如何用pidof命令查找指定进程的id号
活动
客服咨询
7*24小时技术支持
技术支持
渠道支持