Chinaunix首页 | 论坛 | 博客
  • 博客访问: 218817
  • 博文数量: 39
  • 博客积分: 945
  • 博客等级: 准尉
  • 技术积分: 532
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-04 17:25
文章分类

全部博文(39)

文章存档

2012年(39)

我的朋友

分类: LINUX

2012-05-15 19:11:09

ubuntu server 12.04 官方的源代码更新比较慢,所以更替成国内的源。
163源

点击(此处)折叠或打开

  1.  deb http://mirrors.163.com/ubuntu/ precise main restricted
  2.  deb-src http://mirrors.163.com/ubuntu/ precise main restricted
  3.  deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
  4.  deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
  5.  deb http://mirrors.163.com/ubuntu/ precise universe
  6.  deb-src http://mirrors.163.com/ubuntu/ precise universe
  7.  deb http://mirrors.163.com/ubuntu/ precise-updates universe
  8.  deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
  9.  deb http://mirrors.163.com/ubuntu/ precise multiverse
  10.  deb-src http://mirrors.163.com/ubuntu/ precise multiverse
  11.  deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
  12.  deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
  13.  deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
  14.  deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
  15.  deb http://mirrors.163.com/ubuntu/ precise-security main restricted
  16.  deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted
  17.  deb http://mirrors.163.com/ubuntu/ precise-security universe
  18.  deb-src http://mirrors.163.com/ubuntu/ precise-security universe
  19.  deb http://mirrors.163.com/ubuntu/ precise-security multiverse
  20.  deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse
  21.  deb http://extras.ubuntu.com/ubuntu precise main
  22.  deb-src http://extras.ubuntu.com/ubuntu precise main
SOHU源

点击(此处)折叠或打开

  1. deb http://mirrors.sohu.com/ubuntu/ precise main restricted
  2.  deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted
  3.  deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
  4.  deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
  5.  deb http://mirrors.sohu.com/ubuntu/ precise universe
  6.  deb-src http://mirrors.sohu.com/ubuntu/ precise universe
  7.  deb http://mirrors.sohu.com/ubuntu/ precise-updates universe
  8.  deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe
  9.  deb http://mirrors.sohu.com/ubuntu/ precise multiverse
  10.  deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse
  11.  deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
  12.  deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
  13.  deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
  14.  deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
  15.  deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted
  16.  deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted
  17.  deb http://mirrors.sohu.com/ubuntu/ precise-security universe
  18.  deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe
  19.  deb http://mirrors.sohu.com/ubuntu/ precise-security multiverse
  20.  deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse
  21.  deb http://extras.ubuntu.com/ubuntu precise main
  22.  deb-src http://extras.ubuntu.com/ubuntu precise main

操作如下:

点击(此处)折叠或打开

  1. leslie@Notebook:~$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.apt
  2. leslie@Notebook:~$ sudo vim /etc/apt/sources.list
  3. #更替163源或者sohu源
  4. leslie@Notebook:~$ sudo apt-get update
然后会出现key无法找到。然后执行

点击(此处)折叠或打开

  1. leslie@Notebook:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys < add keys here >
  2. leslie@Notebook:~$ sudo apt-get update

大功告成:-)


阅读(4459) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~