• 更换ubuntu apt-get 源


    为了优化ubuntu软件安装/更新速度,我测试了国内几家apt源的速度,发现北京交大的apt源速度相对最快,然后可以通过以下步骤更新ubuntu源

    1) 备份默认的apt源

    1 $ cd /etc/apt
    2 $ sudo cp sources.list sources.list.backup

    2) 编辑

    $ sudo gedit sources.list

    复制粘贴以下列表:

     1 deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse
     2 deb http://archive.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
     3 deb http://archive.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse
     4 deb http://archive.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
     5 deb http://archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
     6 deb-src http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse
     7 deb-src http://archive.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
     8 deb-src http://archive.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse
     9 deb-src http://archive.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
    10 deb-src http://archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

     3) 注意,每次修改完apt源,一定要执行一下更新

    $ sudo apt-get update

    大概花了几分钟,更新完成之后,就可以使用apt来安装应用程序了。

    备注:ubuntu apt源列表 http://wiki.ubuntu.org.cn/源列表

  • 相关阅读:
    PHP多台服务器跨域SESSION共享
    php发送post请求到nodejs服务器
    xampp使用phpunit
    MarkdownPad 2
    php安装memcache注意事项
    yii 基础版用rbac-plus
    yii2高级版账号密码问题
    yii2 rbac-plus的使用
    manjaro-VM虚拟机vmmon错误
    Java并发包中的线程池ThreadPoolExecutor
  • 原文地址:https://www.cnblogs.com/zhangpengshou/p/3591387.html
Copyright © 2020-2023  润新知