zoukankan      html  css  js  c++  java
  • [机器学习] Ubuntu 软件源更新(校园网)以及问题总结

    最近在折腾Linux,在校园网下怎么能够很好的获取软件很是让我头疼啊~~~

    总结一下吧!!!

    首先是校园网的源地址:


    清华大学:
    https://mirrors.tuna.tsinghua.edu.cn/ 自动选择
    https://mirrors6.tuna.tsinghua.edu.cn/ 只解析 IPv6
    https://mirrors4.tuna.tsinghua.edu.cn/ 只解析 IPv4

    进入后选择镜像名称旁边的问号,选择对应版本的源,但是一定记住只有ipv6网络的一定将mirrors修改成mirrors6

    先测试一下,地址https://mirrors6.tuna.tsinghua.edu.cn/能不能打开,如果能的话,并且你的Ubuntu版本是16.04,就直接用下面的地址覆盖sources.list的内容吧。

    deb http://mirrors6.tuna.tsinghua.edu.cn/ubuntu/ xenial main multiverse restricted universe
    deb http://mirrors6.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main multiverse restricted universe
    deb http://mirrors6.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main multiverse restricted universe
    deb http://mirrors6.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main multiverse restricted universe
    deb http://mirrors6.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main multiverse restricted universe
    deb-src http://mirrors6.tuna.tsinghua.edu.cn/ubuntu/ xenial main multiverse restricted universe
    deb-src http://mirrors6.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main multiverse restricted universe
    deb-src http://mirrors6.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main multiverse restricted universe
    deb-src http://mirrors6.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main multiverse restricted universe
    deb-src http://mirrors6.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main multiverse restricted universe

    中科大USTC镜像源


    在这里配置相关参数获取,可以选择版本和网络线路

    https://mirrors.ustc.edu.cn/repogen/


    deb https://ipv6.mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
    deb-src https://ipv6.mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse

    deb https://ipv6.mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
    deb-src https://ipv6.mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse

    deb https://ipv6.mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    deb-src https://ipv6.mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse

    deb https://ipv6.mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    deb-src https://ipv6.mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

    ## Not recommended
    # deb https://ipv6.mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
    # deb-src https://ipv6.mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse


    北京交通大学
    http://mirror.bjtu.edu.cn/cn/

    另外的具体配置参考这里:

    http://blog.csdn.net/bleachswh/article/details/51423585

    正常的ipv4网络以后用到再总结吧:



    问题总结:

    1、如果在安装软件时经常出现:

    比如安装python-dev时出现依赖包错误

    The following packages have unmet dependencies:  

    python-dev : Depends: python2.7-dev (>= 2.7.3) but it is not going to be installed  

    E: Unable to correct problems, you have held broken packages.

    那么很大的可能是你的软件源配置出了问题,版本不对应等等。

    2、

  • 相关阅读:
    每日一水 POJ8道水题
    编译和使用 MySQL C++ Connector
    j2ee model1模型完成分页逻辑的实现 详解!
    DB查询分析器访问EXCEL时,要在表名前后加上中括弧或双引号
    指向结构体变量的指针
    EOSS V3.0 企业运营支撑系统(基于RBAC原理的权限管理)
    MybatisGen1.0 Mybatis JavaBean Mapper生成工具
    The table name must be enclosed in double quotation marks or sqare bracket while accessing EXCEL by
    资源-Android:Android
    软件-开发软件:Android Studio
  • 原文地址:https://www.cnblogs.com/yushuo1990/p/5903374.html
Copyright © 2011-2022 走看看