heihe

导航

 

怎样添加额外的资源?

  1. 阅读全局提示 (http://wiki.ubuntu.org.cn/index.php/Hoarystarterguide/document_view#.E5.85.A8.E5.B1.80.E6.8F.90.E7.A4.BA)

$sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

$sudo gedit /etc/apt/sources.list
3. 找到这一部分
## Uncomment the following two lines to fetch updated software from the network
# deb http://us.archive.ubuntu.com/ubuntu hoary main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu hoary main restricted
## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
# deb http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://us.archive.ubuntu.com/ubuntu hoary universe
# deb-src http://us.archive.ubuntu.com/ubuntu hoary universe
# deb http://security.ubuntu.com/ubuntu hoary-security main restricted
# deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted
# deb http://security.ubuntu.com/ubuntu hoary-security universe
# deb-src http://security.ubuntu.com/ubuntu hoary-security universe
4. 用以下几行替换
## Uncomment the following two lines to fetch updated software from the network
deb http://us.archive.ubuntu.com/ubuntu hoary main restricted
deb-src http://us.archive.ubuntu.com/ubuntu hoary main restricted
## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu hoary universe
deb-src http://us.archive.ubuntu.com/ubuntu hoary universe
deb http://security.ubuntu.com/ubuntu hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted
deb http://security.ubuntu.com/ubuntu hoary-security universe
deb-src http://security.ubuntu.com/ubuntu hoary-security universe
deb http://archive.ubuntu.com/ubuntu hoary multiverse
deb-src http://archive.ubuntu.com/ubuntu hoary multiverse
deb ftp://ftp.nerim.net/debian-marillat stable main
deb ftp://ftp.nerim.net/debian-marillat unstable main
deb ftp://ftp.nerim.net/debian-marillat testing main
5. 保存编辑后的文件 (样本 (http://www.ubuntuguide.org/sample/sources.list_extrarepositories))
6.
$gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 1F41B907

$gpg --armor --export 1F41B907 | $sudo apt-key add -

$sudo apt-get update

怎样添加Ubuntu Backports资源?

  1. 阅读全局提示 (http://wiki.ubuntu.org.cn/index.php/Hoarystarterguide/document_view#.E5.85.A8.E5.B1.80.E6.8F.90.E7.A4.BA)
  2. 阅读怎样添加额外的资源? (http://wiki.ubuntu.org.cn/index.php/Hoarystarterguide/document_view#.E6.80.8E.E6.A0.B7.E6.B7.BB.E5.8A.A0.E9.A2.9D.E5.A4.96.E7.9A.84.E8.B5.84.E6.BA.90.EF.BC.9F)

$sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
$sudo gedit /etc/apt/sources.list
4. 在文件的末尾添加以下两行
$deb http://backports.ubuntuforums.org/backports hoary-backports main universe multiverse restricted 
$deb http://backports.ubuntuforums.org/backports hoary-extras main universe multiverse restricted
5. 保存编辑后的文件(样本)
6. $sudo apt-get update
posted on 2005-04-17 09:22    阅读(393)  评论(0)    收藏  举报