sudo apt-get update
Ubuntu的默认源是位于欧洲的官方更新服务器(国内较慢,但无同步延迟问题),现在很多高校都开通了IPv6,而且对IPv6的免流量费,正好Ubuntu有很多镜像站支持IPv6,因此我们可以手动设置Ubuntu的源来达到免流量更新的目的,速度也更快。
首先备份源列表:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
而后用gedit或其他编辑器打开:
gksu gedit /etc/apt/sources.list
选择清华大学开源镜像站的源,替换掉文件中所有的内容,保存编辑好的文件:
清华大学更新服务器,IPv6-Only 地址(适用于Ubuntu 12.04)
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
然后,刷新列表 注意:一定要执行刷新
sudo apt-get update
相关推荐
由于ubuntu系统是国外开发,所用源也是国外服务器,默认使用系统软件源,导致国内用户下载缓慢,只能更换国内软件源,但是网上大多数都是让你复制黏贴,在server版本上不好操作,这里使用shell脚本编写一个方便使用...
打包的这些只是很少的一部分,比如,现在你要在客户机中#apt-get install vim那肯定是安装不了的,因为主机中根本就没有,如果想要安装怎么办,就在主机进行操作之前把软件给安装好apt-get install vim apt-get ...
切换ubuntu server的apt-get下载源为阿里云国内地址
Ubuntu12.04的apt-get搜狐源,直接下载至/etc/apt/下即可,执行apt-get update
ubuntu20华为软件镜像源
Wise2C Apt Source for Docker/K8S/Ceph/NFS installation Wise2C Apt Source for Docker/K8S/Ceph/NFS...Ubuntu16系统用户: ###################################################### deb ./ #######################
ubuntu18.04换源,以更换清华源为例
ubuntu 更新源 国内电信 163源 /etc/apt/sources.list
国内镜像使用阿里源,使用其他源只要稍微改下代码即可
Ubuntu14.04 LTS 配置本地可信的自定义APT-GET源,我自己搭建过程中的记录文档。 在我们平时在ubuntu系统上进行deb包安装的时候,经常会发现很多软件包是找不到的,而我们自己本地有相关的deb包,那么就可以搭建一个...
ubuntu 下载源, 网易源地址列表 ,可以直接替换/etc/apt/source.list文件更新下载源地址
Ubuntu Apt源生成器 一个Python实用程序,用于根据Ubuntu版本和所需的体系结构生成sources.list文件。 我第一次真正尝试启动和维护OSS项目。 如果需要更新,请发送PR。 谢谢。
我自己总结的如何搭建ubuntu本地仓库源,非常具有参考价值,和大家共享一下
用于同步ubuntu apt服务器的软件,创建和同步镜像服务器。使用后还需安装一个http服务器,如apache,其他主机配置sourcelist后就可以本地更新软件了。
Ubuntu 通过国内的镜像源安装 MySQL ,可以安装 MySQL 5.7 和 MySQL8.0 ,以及更新到最新版本。
Ubuntu1204的更新源
使用apt-get update 失败时更换数据源,亲测可用,更新后apt-get install 成功
一、升级apt源: 找个网速快的网吧,登录一个有安装包的ftp站点,如:ftp:// debian.cn99.com或者ftp:// security.ubuntu.com,然后下载以下安装包信息文件,目录与文件的保存位置与Ftp网站的一样,其中bz2的包可以...
Ubuntu20.04.iso光盘镜像源文件
ubuntu更新源下载 官方sources.list 适应ubuntu大多数版本