zoukankan      html  css  js  c++  java
  • apt-get update 404 解决方案

    原文:https://blog.csdn.net/nbxuwentao/article/details/90524349

     

    方案一:

    解决方案

    1. vi etc/apt/sources.list

    2. 将里面的内容替换成下面这些(artful可以更换,主要看http://mirrors.163.com/ubuntu/dists/下面有哪些可用的前缀自行更换)
    
    deb http://mirrors.163.com/ubuntu/ artful main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ artful-security main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ artful-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ artful-proposed main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ artful-backports main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ artful main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ artful-security main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ artful-updates main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ artful-proposed main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ artful-backports main restricted universe multiverse 
    之后输入:
    sudo apt-get update


    方案2:
    1)编辑/etc/apt/sources.list文件
    在命令行中输入: sudo vim /etc/apt/sources.list 或者 sudo gedit /etc/apt/sources.list 推荐使用后者
    (2)在上面打开的文件开头添加(中科大的源)
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    之后输入:
    sudo apt-get update



  • 相关阅读:
    python装饰器的作用
    python的__call__、__str__、__repr__、__init__、__class__、__name___、__all__、__doc__、__del__等魔术方法的作用
    安全小测试:介绍一个简单web安全知识测试的网站
    浏览器都知道我们的哪些信息?
    SQL开发技巧(二)
    如何解决SQLServer占CPU100%
    记一次SQLServer的分页优化兼谈谈使用Row_Number()分页存在的问题
    如何在SQLServer中处理每天四亿三千万记录
    SqlServer索引的原理与应用
    T-sql语句查询执行顺序
  • 原文地址:https://www.cnblogs.com/lshan/p/11954764.html
Copyright © 2011-2022 走看看