当前位置:首页 > 技术问答 > Debian11 apt-get update报错no longer has a Release file的解决方法

Debian11 apt-get update报错no longer has a Release file的解决方法

技术问答 / 星之宇 / 2025-3-26 8:53 / 浏览:10 / 评论:0

问题描述

1台阿里云主机Debian11系统,再使用命令 sudo apt update -y && sudo apt upgrade -y 更新补丁时报错。报错信息如下:

E: The repository 'http://mirrors.cloud.aliyuncs.com/debian bullseye-backports Release' no longer has a Release file.

N: Updating from such a repository can't be done securely, and is therefore disabled by default.

N: See apt-secure(8) manpage for repository creation and user configuration details.

511-1.png


问题分析

Debian报这个错是因为错误配置APT源的问题(可能版本太老源已经删除)


解决方法

重新配置阿里云的Debian 11.x (bullseye)源 ,编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
#deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
#deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib

目前有 0 条评论

    • 昵称
    • 邮箱
    • 网址