精华内容
下载资源
问答
  • Ubuntu系统下载文件的时候,可能会比较缓慢,当一个几十兆的文件半天下载不了的时候,你就可以考虑换源了,我所使用的是Ubuntu18.1版本。 1、先将用户更改为root,为了方便 su root #根据提示输入密码 su password...
  • ubuntu换源

    万次阅读 2019-04-06 22:48:11
    ubuntu原来的源有可能是外国的源,所以在下载软件的时候,会出奇的慢,所以在我们安装好ubuntu桌面系统之后换源,会很大程度上减少下载软件的速度 打开环境源的文件 sudo gedit /etc/apt/sources.list 可以进行修该 ...

    ubuntu原来的源有可能是外国的源,所以在下载软件的时候,会出奇的慢,所以在我们安装好ubuntu桌面系统之后换源,会很大程度上减少下载软件的速度

    打开环境源的文件

    sudo gedit /etc/apt/sources.list

    可以进行修该

    原生源(不同渠道不一样)

    16.04的原生源

    # deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted
    
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
    ## team, and may not be under a free licence. Please satisfy yourself as to 
    ## your rights to use the software. Also, please note that software in 
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    # deb http://archive.canonical.com/ubuntu xenial partner
    # deb-src http://archive.canonical.com/ubuntu xenial partner
    
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted
    # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial-security universe
    # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial-security multiverse
    # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
    

    18.04的原生源

    #deb cdrom:[Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main restricted
    
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
    # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
    # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic universe
    deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
    # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
    ## team, and may not be under a free licence. Please satisfy yourself as to 
    ## your rights to use the software. Also, please note that software in 
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
    # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    # deb http://archive.canonical.com/ubuntu bionic partner
    # deb-src http://archive.canonical.com/ubuntu bionic partner
    
    deb http://security.ubuntu.com/ubuntu bionic-security main restricted
    # deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
    deb http://security.ubuntu.com/ubuntu bionic-security universe
    # deb-src http://security.ubuntu.com/ubuntu bionic-security universe
    deb http://security.ubuntu.com/ubuntu bionic-security multiverse
    # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
    

    对刚才的文件内容进行修改,换成阿里的镜像源

    deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
    

    执行

    sudo apt-get update

    sudo apt-get upgrade

    展开全文
  • ubuntu更换

    千次阅读 2019-09-27 23:49:00
    由于ubuntu本身是在国外,有时候下载东西非常慢,接下来介绍一下ubuntu如果更换,以清华大学的为例: 1. 寻找国内镜像 首先进入清华大学开源软件镜像站:清华大学开源软件镜像站 往下拉找到ubuntu,点击...

    所谓的镜像源:可以理解为提供下载软件的地方,比如Android手机上可以下载软件的应用商店;iOS手机上可以下载软件的AppStore

    由于ubuntu本身源是在国外,有时候下载东西非常慢,接下来介绍一下ubuntu如果更换源,以清华大学的源为例:

    1. 寻找国内镜像源

    首先进入清华大学开源软件镜像站:清华大学开源软件镜像站

    往下拉找到ubuntu,点击旁边问号

    找到自己系统的版本,我是ubuntu16.04

    复制其中的内容

    2. 备份Ubuntu默认的源地址

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

     

    3. 更新源服务器列表 

    sudo gedit /etc/apt/sources.list

    4. 更新源

    sudo apt-get update

     然后等待即可

    在更新之后就可以 尽情的sudo apt-get install 下载了

     

    展开全文
  • 树莓派 Ubuntu换源

    2021-04-07 15:04:13
    树莓派 Ubuntu换源 清华源 vim编辑配置文件 vim /etc/apt/sources.list 更换为清华源 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse # deb-src ...

    树莓派 Ubuntu换源

    清华源

    vim编辑配置文件
    vim /etc/apt/sources.list

    更换为清华源

    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse
    

    更新
    sudo apt-get update
    sudo apt-get upgrade

    展开全文
  • 主要介绍了Ubuntu18.04更换国内的方法示例,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
  • Ubuntu快速更换国内

    2019-01-07 12:10:53
    Ubuntu快速更换国内,适用于14.04、16.04、18.04,方便下载使用。
  • 每次都要换源很麻烦,所以在这里写了一个简单的换源脚本,下载即用,只需要`sudo ./demo.sh`即可
  • Ubuntu换源

    千次阅读 2019-06-14 10:20:15
    前言:按照网上换源的方法出现:Unable to correct problems, you have held broken packages 一、查看系统Codename: lsb_release -a 或者 cat /etc/apt/sources.list 二、确认阿里源支持:登陆以下网页...

    前言:按照网上换源的方法出现:Unable to correct problems, you have held broken packages

    一、查看系统Codename:

    lsb_release -a

    或者

    cat /etc/apt/sources.list

    二、确认阿里源支持:登陆以下网页:http://mirrors.aliyun.com/ubuntu/dists/

    三、更换源

    sudo cp /etc/apt/sources.list /etc/apt/sources.list_bak
    sudo vi /etc/apt/sources.list

    以下内容:注意,每一行的bionic应该用第一步查看得到的Codename来代替

    deb http://mirrors.aliyun.com/ubuntu/ bionic main multiverse restricted universe
    deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main multiverse restricted universe
    deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main multiverse restricted universe
    deb http://mirrors.aliyun.com/ubuntu/ bionic-security main multiverse restricted universe
    deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main multiverse restricted universe

    四、更新

    更新源

    sudo apt-get update

    修复损坏的包,重新安装正确版本

    sudo apt-get -f install

    更新软件

     sudo apt-get upgrade
    展开全文
  • ubuntu换源(更换国内清华源)

    千次阅读 2020-04-29 18:18:14
    ubuntu更换国内 1.备份原始源文件source.list cp ./etc/apt/sources.list /etc/apt/sources.list.bak 2.修改源文件sources.list (1)更改sources.list文件权限使其可编辑 sudo chmod 777 /etc/apt/sources.list ...
  • Ubuntu换源 (Ubuntu20.04)

    万次阅读 多人点赞 2020-05-07 23:04:41
    Ubuntu系统中我们可以通过apt-get 命令很方便的安装 / 卸载软件,由于默认的软件包仓库是位于国外的,安装软件的时候就可能遇到各种网络问题或者下载到的一些资源不完整,因此就需要切换数据为国内的镜像站点来...
  • Ubuntu换源以及安装Git

    2019-11-04 22:02:08
    在虚拟机Ubuntu下安装git ...查询了很多资料以后发现需要更新Ubuntu的源,附上一个换源的连接: https://blog.csdn.net/weixin_44174099/article/details/89061637 换好了源以后直接开始安装git,这个是安装教程 ...
  • ubuntu更换(清华、中科大、阿里)

    千次阅读 2019-08-22 16:53:52
    ubuntu更换(清华、中科大、阿里) 一、备份文件 mv /etc/apt/sources.list /etc/apt/sourses.list.backup 二、新建sourses.list文件 切换到管理员,并新建文件 sudo su vi /etc/apt/sources.list ...
  • ubuntu 换源

    千次阅读 2019-07-31 22:45:05
    ubuntu 换源 更换源之前,需要做好备份 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 更换操作 sudo vi /etc/apt/sources.list 贴入如下内容 # 阿里云源 deb ...
  • Ubuntu更换

    千次阅读 2019-06-17 16:33:11
    1.备份原来的 sudo cp /etc/apt/sources.list /etc/apt/sources_origin.list 2.用gedit打开存储信息的文档 sudo gedit /etc/apt/sources.list 3.用找来的编辑sources.list 操作方法:直接在sources.list的...
  • 1.备份 备份以前的,预防万一。 sudo cp /etc/apt/sources.list /etc/apt/sources_init.list 2.更换 使用gedit打开存放镜像的文档 sudo gedit /etc/apt/sources.list 注意:将原来的内容全部删掉不用担心...
  • sudo sed -i "s@http://.*archive.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.list sudo sed -i "s@http://.*security.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.list sudo ...
  • 默认的软件更新是国外的,速度超级慢,用"apt install"安装软件时各种网络问题也是层出不穷(上次安装ubuntu后忘记修改结果导致N多次安装半小时然后失败.....亲身经历了这种苦,回过头发现修改之后很多网络...
  • Ubuntu换源(带源配置文件)

    千次阅读 2018-03-19 10:28:01
    相信大部分朋友在使用Ubuntu系统的时候都会碰到一个很头疼的问题,那就是在终端执行下载命令的时候下载速度太慢,有些软件包甚至会下载失败,如果PC没有使用VPN的话,在使用国外的情况下,这种问题更加严重,这个...
  • 安装NVIDIApx2ros总是失败,NVIDIADRIVE px2是arm64架构,跟平常的笔记本,台式机不一样,不过也有一定...Failed to fetch https://mirros.tuna.tsinghua.edu.cn/ubuntu/dists/xenial-backports/main/binary-arm64/...
  • 换源后仍然无法解析域名,咋办呢???咱改一个域名就成了 编辑配置文件sudo gedit /etc/resolv.conf 在末尾加上nameserver 8.8.8.8 Ctrl+S保存退出 再更新一下试试sudo apt-get update ...
  • 主要介绍了Ubuntu 20.04 apt 更换国内的实现方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
  • 主要介绍了Ubuntu 20.04阿里的方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
  • ubuntu 换源 (阿里源/清华源)

    千次阅读 2018-07-17 14:51:48
    一行命令搞定(网易)(仅适用于ubuntu16/ubuntu18): export mirror_target="https://mirrors.163.com" && export source_fname="/etc/apt/sources.list" && ((sudo which python>>/dev...
  • 文章目录前言备份原来的源更换源更新源 前言 安装好ubuntu系统后,默认的软件更新源是国外的,在国内使用速度...首先第一步就是备份我们之前的源,留着以后用,以免换源之后出现问题,方便我们恢复。 cp /etc/ap...
  • Ubuntu 更换国内

    万次阅读 多人点赞 2018-03-11 15:09:05
    Ubuntu系统自带的都是国外的网址,国内用户在使用的时候网速比较慢。一个软件的下载是十分痛苦的,这里讲解一下如何将国外更换为国内,让你的网速Biu.Biu.Biu 1.备份原来的 sudo cp /etc/apt/...
  • ubuntu系统换源

    2021-03-21 19:53:30
    这次我们要说的是ubuntu系统换国内源,大约所有的linux系统换源都有一种通用的换源方法,那就是修改源的配置文件,在ubuntu中是sources.list,别的系统我就不知道了。然而啊

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 72,771
精华内容 29,108
关键字:

ubuntu换源