ubuntu更新软件源

转载 2015年07月08日 23:03:17

     身为在中国的ubuntu使用者,当您费劲千辛万苦安装好ubuntu,准备开始体验一下开源操作系统的魅力的时候,您会发现有很多的软件还没有安装或者是更新,这时候千万不要急着去安装或者更新,因为您还没有更新ubuntu的软件源,这样直接安装会非常的慢,慢到让人eggache。如果您先更新了软件源,一定会事半功倍。

     按ctrl+alt+t打开一个新的终端,在里面输入

    sudo gedit /etc/apt/sources.list  

然后将打开的文件中的内容全部都清空,如果您不放心的话,可以先将这个文件备份一下。然后挑选如下的一个或者几个源复制进去就可以了。

搜狐源

    deb http://mirrors.sohu.com/ubuntu/ precise main restricted  
    deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted  
    deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted  
    deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted  
    deb http://mirrors.sohu.com/ubuntu/ precise universe  
    deb-src http://mirrors.sohu.com/ubuntu/ precise universe  
    deb http://mirrors.sohu.com/ubuntu/ precise-updates universe  
    deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe  
    deb http://mirrors.sohu.com/ubuntu/ precise multiverse  
    deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse  
    deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse  
    deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse  
    deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse  
    deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse  
    deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted  
    deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted  
    deb http://mirrors.sohu.com/ubuntu/ precise-security universe  
    deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe  
    deb http://mirrors.sohu.com/ubuntu/ precise-security multiverse  
    deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse  
    deb http://extras.ubuntu.com/ubuntu precise main  
    deb-src http://extras.ubuntu.com/ubuntu precise main  

163的源

    deb http://mirrors.163.com/ubuntu/ precise main restricted  
    deb-src http://mirrors.163.com/ubuntu/ precise main restricted  
    deb http://mirrors.163.com/ubuntu/ precise-updates main restricted  
    deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted  
    deb http://mirrors.163.com/ubuntu/ precise universe  
    deb-src http://mirrors.163.com/ubuntu/ precise universe  
    deb http://mirrors.163.com/ubuntu/ precise-updates universe  
    deb-src http://mirrors.163.com/ubuntu/ precise-updates universe  
    deb http://mirrors.163.com/ubuntu/ precise multiverse  
    deb-src http://mirrors.163.com/ubuntu/ precise multiverse  
    deb http://mirrors.163.com/ubuntu/ precise-updates multiverse  
    deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse  
    deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse  
    deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse  
    deb http://mirrors.163.com/ubuntu/ precise-security main restricted  
    deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted  
    deb http://mirrors.163.com/ubuntu/ precise-security universe  
    deb-src http://mirrors.163.com/ubuntu/ precise-security universe  
    deb http://mirrors.163.com/ubuntu/ precise-security multiverse  
    deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse  
    deb http://extras.ubuntu.com/ubuntu precise main  
    deb-src http://extras.ubuntu.com/ubuntu precise main  

教育网的源

#兰州大学

    deb http://mirror.lzu.edu.cn/ubuntu/ intrepid main multiverse restricted universe  
    deb http://mirror.lzu.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe  
    deb http://mirror.lzu.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe  
    deb http://mirror.lzu.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe  
    deb http://mirror.lzu.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe  
    deb http://mirror.lzu.edu.cn/ubuntu-cn/ intrepid main multiverse restricted universe  


#电子科技大学

    deb http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse  
    deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse  
    deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse  
    deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse  
    deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse  
    deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse  
    deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse  
    deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse  
    deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse  
    deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse  


#中国科技大学

    deb http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse  
    deb http://debian.ustc.edu.cn/ubuntu/ precise-backports restricted universe multiverse  
    deb http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse  
    deb http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse  
    deb http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse  
    deb-src http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse  
    deb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse  
    deb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse  
    deb-src http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse  
    deb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse  


#北京理工大学

    deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe  
    deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe  
    deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe  
    deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe  
    deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe  
    deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe  
    deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe  
    deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe  
    deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe  
    deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe  

关闭文件,然后输入:

    sudo apt-get update  


给ubuntu16.04更新软件源

给自家的Ubuntu下载软件速度有点慢,毕竟是从国外下载软件,就想更换到国内比较好的更新源(就是这些软件所在的服务器),一般直接百度Ubuntu更新源就能出来一大堆,这时候最好是找和自己Ubuntu版...

Ubuntu12.04使用apt-get出错——更新软件源

本来打算在Ubuntu上用apt-get安装vsftpd(very secure ftp daemon,ftp服务器),于是输入如下命令:# apt-get install vsftpd  但是出现如...

Linux学习笔记——Ubuntu更新软件源

0.前言     通过修改ubuntu软件源可提高apt命令下载安装软件的速度。     参考资料     【官方资料】——配置文件修改方法     【Ubuntu怎样修改软件源地址】——使用ubun...

ubuntu 14.04源更新以及安装软件

Ubuntu 14.04 搜狐更新源及安装软件 sudo vim /etc/apt/source.list # 将软件源改为 sohu 的 deb http://mirrors.sohu....

ubuntu安装软件时出现:没有该文件?--更新源

linux下软件的安装方式有多种,最简单的莫过于从软件中心直接安装了或者用命令行直接安装 sudo apt-get install xxxx 使用该命令便是从软件中心(ubuntu软件中心)进行...

解决ubuntu安装不成功(by更新软件源source.list )

1、首先备份Ubuntu 11.10源列表 sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表,有备无患...

ubuntu 下更新软件源,提高apt-get下载速度

环境: 使用ubuntu 系统为 14.04 1 打开software center 并全屏。 2 左上角 Edit->Software Source... 3 Download From ...

Ubuntu14.04-i386的虚拟机安装、软件源更新、输入法安装

一、虚拟机的安装:

Ubuntu 12.10 软件更新源列表

Ubuntu 12.10 软件更新源列表 Ubuntu 12.10也正式发布了, 安装好后第一件事就是更换源,Ubuntu网易的更新源速度很不错。 Ubuntu 12.10正式...

给Ubuntu 13.04换源 软件源、更新源

Ubuntu 13.04正式发布有段时间了, 在安装好后的第一件事就是给Ubuntu 13.04换源,软件源、更新源,Ubuntu网易的更新源速度还是不错。 相关阅读: Ubuntu 13.04 ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:ubuntu更新软件源
举报原因:
原因补充:

(最多只允许输入30个字)