模板:Ubuntu:Feisty/GettingStarted/zh:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
RegentW留言 | 贡献
Fideas留言 | 贡献
第39行: 第39行:
==== 源的添加和使用 ====
==== 源的添加和使用 ====


*参阅[[#General Notes]]
*参阅[[#General Notes|基础知识]]
*你可以通过源管理软件添加额外的源,该程序的启动位置为: '''系统 -> 管理 ->软件源'''.  明确并加入你所需要的源,比如(main, universe, restricted, multiverse).  一般情况下用不到软件源码的源,也就是 'sources' 那部份.  '''这是添加源时推荐的一种做法:'''
*你可以通过源管理软件添加额外的源,该程序的启动位置为: '''系统 -> 管理 ->软件源'''.  明确并加入你所需要的源,比如(main, universe, restricted, multiverse).  一般情况下用不到软件源码的源,也就是 'sources' 那部份.  '''这是添加源时推荐的一种做法:'''



2007年5月30日 (三) 10:00的版本

千里之行,始于足下

欣赏Ubuntu的屏幕截图

欣赏Kubuntu的屏幕截图

欣赏Xubuntu的屏幕截图

获取更多出色的Linux软件

获取主题/壁纸/配色方案等系统美化解决方案

想得到更多的k-x-u-buntu教材?

如何从Edgy升级到Feisty

源的添加和使用

  • 参阅基础知识
  • 你可以通过源管理软件添加额外的源,该程序的启动位置为: 系统 -> 管理 ->软件源. 明确并加入你所需要的源,比如(main, universe, restricted, multiverse). 一般情况下用不到软件源码的源,也就是 'sources' 那部份. 这是添加源时推荐的一种做法:
  • 添加额外源的另外一种方法 (使用本方法请自行承担风险):
  • 备份当前的源列表文件
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup
  • 用文本编辑器编辑源列表文件
Ubuntu (GNOME) 用户:
sudo gedit /etc/apt/sources.list
Kubuntu (KDE) 用户:
 sudo kate /etc/apt/sources.list
其他系统用户,比如Xubuntu:
sudo nano /etc/apt/sources.list
  • 以下面这些行的内容作为模板来引导自己编辑sources.list中的软件源
你可以试着用以下这些行来代替sources.list中当前的内容
要想使用你本地的镜像,可以在archive.ubuntu.com之前加入"cc.",其中cc = 你所在国家的代码
例如 deb http://lv.archive.ubuntu.com/ubuntu feisty main restricted universe multiverse
## See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
## newer versions of the distribution.

## Add comments (##) in front of any line to remove it from being checked.   
## Use the following sources.list at your own risk.  

## Uncomment deb-src if you wish to download the source packages

## If you have a install CD you can add it to the reposity using 'apt-cdrom add'
## which will add a line similar to the following:
#deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Beta i386 (20070322.1)]/ feisty main restricted
deb http://us.archive.ubuntu.com/ubuntu/ feisty main restricted
#deb-src http://us.archive.ubuntu.com/ubuntu/ feisty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted
#deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted

## 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/ feisty universe
#deb-src http://us.archive.ubuntu.com/ubuntu/ feisty universe

## 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
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ feisty multiverse
#deb-src http://us.archive.ubuntu.com/ubuntu/ feisty multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
#deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu feisty-security main restricted
#deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted
deb http://security.ubuntu.com/ubuntu feisty-security universe
#deb-src http://security.ubuntu.com/ubuntu feisty-security universe
deb http://security.ubuntu.com/ubuntu feisty-security multiverse
#deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse

## PLF REPOSITORY (Unsupported.  May contain illegal packages.  Use at own risk.)
## Medibuntu - Ubuntu 7.04 "feisty fawn"
## Please report any bug on https://launchpad.net/products/medibuntu/+bugs
deb http://medibuntu.sos-sts.com/repo/ feisty free non-free
#deb-src http://medibuntu.sos-sts.com/repo/ feisty free non-free

## CANONICAL COMMERCIAL REPOSITORY (Hosted on Canonical servers, not Ubuntu
## servers. RealPlayer10, Opera, DesktopSecure and more to come.) 
deb http://archive.canonical.com/ubuntu feisty-commercial main

## enlightenment e17 beta, use at your own risk
## E17 is in Beta and may break or break your system
#deb http://edevelop.org/pkg-e/ubuntu feisty e17
#deb http://e17.dunnewind.net/ubuntu feisty e17
#deb-src http://edevelop.org/pkg-e/ubuntu feisty e17

  • 保存编辑完毕的文件
  • 下载需要的 gpg keys; 例如, 使用下面的命令以得到 PLF 软件源的 gpg key:
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
  • 如果你希望尝试 E17 beta, 也需要下载其 gpg key:
wget -q http://lut1n.ifrance.com/repo_key.asc -O- | sudo apt-key add -
  • 更新包的列表:
sudo aptitude update


  • 只有在你知道自己在做什么的前提下才能修改Ubuntu默认的 sources.list。将不同软件源混杂在一起可能使你的系统崩溃