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

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

相关推荐
STDD12 小时前
Soulmask《灵魂面具》 专用服务器搭建教程
运维·服务器·github
lolo大魔王12 小时前
Linux的监测程序
linux·运维·github
米高梅狮子15 小时前
Redis
数据库·redis·mysql·缓存·docker·容器·github
_Evan_Yao16 小时前
如何搭建属于自己的技术博客(CSDN / GitHub Pages)
后端·学习·github
Quirkybrain16 小时前
从多态调用到简单析构:C 语言里的对象生命周期管理
github
加贝哥|usun17 小时前
最佳实践分享:GitHub项目自动同步到Gitee(码云)
gitee·github
m0_6346667317 小时前
ViMax 为什么会冲上 GitHub Trending:AI 视频生成开始从“出片”转向“制片”
人工智能·github·ai编程
JAVA学习通19 小时前
《大营销平台系统设计实现》 - 营销服务 第5节:抽奖前置规则过滤
java·数据库·github
少司府20 小时前
Tools相关:深入浅出学Git
大数据·c++·git·gitee·github·仓库·分支
ChampaignWolf20 小时前
Eclipse + GitHub Copilot = Lightspeed SAP ABAP Development
eclipse·github·copilot