debian9换源存在的问题

今天租借了云服务器搭建了debian9,给apt-get换源过程中出现了很多问题,主要有两个问题:

  • 问题1:
bash 复制代码
sudo apt-get update
0% [Working]
  • 问题2:
bash 复制代码
W: The repository 'http://mirrors.aliyun.com/debian stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://mirrors.aliyun.com/debian-security stretch/updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://mirrors.aliyun.com/debian stretch-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://mirrors.aliyun.com/debian stretch-backports Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://mirrors.aliyun.com/debian/dists/stretch/non-free/source/Sources  404  Not Found [IP: 106.116.170.186 80]
E: Failed to fetch http://mirrors.aliyun.com/debian-security/dists/stretch/updates/main/source/Sources  404  Not Found [IP: 106.116.170.186 80]
E: Failed to fetch http://mirrors.aliyun.com/debian/dists/stretch-updates/non-free/source/Sources  404  Not Found [IP: 106.116.170.186 80]
E: Failed to fetch http://mirrors.aliyun.com/debian/dists/stretch-backports/contrib/source/Sources  404  Not Found [IP: 106.116.170.186 80]

出现这两个的主要问题就是使用csdn的一些文章推荐的,但是这些都有问题,包括阿里云自己的地址都没有更新,但是下面有一个评论更新了新的地址:

bash 复制代码
deb http://mirrors.aliyun.com/debian-archive/debian stretch main contrib non-free
deb http://mirrors.aliyun.com/debian-archive/debian stretch-backports main
deb http://mirrors.aliyun.com/debian-archive/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-archive/debian stretch main
deb-src http://mirrors.aliyun.com/debian-archive/debian stretch-backports main
deb-src http://mirrors.aliyun.com/debian-archive/debian-security stretch/updates main

请大家一定要去阿里的官网看一哈评论:阿里镜像官网

相关推荐
uhakadotcom2 分钟前
rAthena:快速入门与基础知识详解,附实用示例代码
面试·架构·github
qianmoQ3 小时前
GitHub 趋势日报 (2025年04月24日)
github
前端太佬7 小时前
从拧螺丝到造火箭:Git高阶玩家生存报告
前端·git·github
前端太佬7 小时前
从青铜到塑料:Git逃难指南(附救命指令大全)
前端·git·github
uhakadotcom10 小时前
跨越速运日调用千万,秒级响应!Flink + OceanBase 实时分析方案全解析
后端·面试·github
uhakadotcom10 小时前
marimo Python笔记本:让Python交互式编程更简单、更可靠
后端·面试·github
Gladiator57519 小时前
博客记录-day151-面试+力扣
github
三道杠卷胡21 小时前
【AI News | 20250424】每日AI进展
人工智能·pytorch·python·语言模型·github
油泼辣子多加1 天前
2025年04月24日Github流行趋势
github
uhakadotcom1 天前
人工智能如何改变医疗行业:简单易懂的基础介绍与实用案例
算法·面试·github