• debian9换源存在的问题


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

    • 问题1:
    sudo apt-get update
    0% [Working]
    
    • 1
    • 2
    • 问题2:
    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]
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17

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

    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
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    请大家一定要去阿里的官网看一哈评论:阿里镜像官网
    在这里插入图片描述

  • 相关阅读:
    mysql为什么使用B+树
    c++ || 容器适配器
    关于安卓jxl的excel操作(一)
    Java设计模式 | 饿汉&懒汉单例设计模式
    Java23种设计模式-结构型模式之装饰器模式
    信创环境下分布式文件存储MinIO集群部署
    毕设-基于SSM高校学生社团管理系统
    软考高级之系统架构师之计算机基础
    Java私活200元,完成JavaSwing学生成绩管理系统(三)
    Netty源码阅读(2)之——服务端源码梗概
  • 原文地址:https://blog.csdn.net/weixin_43495948/article/details/133845375