模板:Ubuntu:Feisty/Repositories:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
New page: ==== Upgrade Ubuntu Edgy to Ubuntu Feisty ==== *[http://www.ubuntugeek.com/upgrade-ubuntu-610-edgy-eft-to-ubuntu-704-feisty-fawn-2.html Step By Step Upgrade Guide with Screenshots ] *[htt...
 
RegentW留言 | 贡献
第4行: 第4行:
*[http://www.ubuntugeek.com/upgrade-ubuntu-server-610-edgy-eft-to-704-feisty-fawn.html How to Upgrade Ubuntu Edgy Server to Feisty Server]
*[http://www.ubuntugeek.com/upgrade-ubuntu-server-610-edgy-eft-to-704-feisty-fawn.html How to Upgrade Ubuntu Edgy Server to Feisty Server]


==== How to add extra repositories ====
==== 如何添加额外的软件源 ====


*Read [[#General Notes]]
*阅读 [[#概述]]
*You can add extra repositories using the Software Sources application, which can be found in the menu: '''System -> Administration -> Software Sources'''.  Check the repositories you think you will need (main, universe, restricted, multiverse).  You probably won't need the 'sources' repository.  '''This is the recommended way to add extra repositories:'''
*可以用"软件源"应用程序添加额外的源,见'''系统 -> 系统管理 -> 软件源'''。在你认为需要的源(main, universe, restricted, multiverse)前面打勾。你可能不需要'源代码'这个源。'''推荐用这种方法添加额外的源。'''


*添加源还有一种方法,用以下步骤 '''(风险自负)''':


*Another way to add extra repositories is to use following steps '''(do this at your own risk)''':
*创建一个你现在使用的源列表的备份
 
*Create a backup of your current list of sources.
  sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup
  sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup


*Open the list of sources in a text editor
*用任一文本编辑器打开源的列表
:Ubuntu (GNOME) users:
:Ubuntu (GNOME) 用户:
  sudo gedit /etc/apt/sources.list
  sudo gedit /etc/apt/sources.list


:Kubuntu (KDE) users:
:Kubuntu (KDE) 用户:
  sudo kate /etc/apt/sources.list
  sudo kate /etc/apt/sources.list


:Other users (if the above don't work):
:其他用户 (在上面这些都不行的情况下):
  sudo nano /etc/apt/sources.list
  sudo nano /etc/apt/sources.list


*Use the following lines as a template to guide you in editing the repositories in sources.list:
*以下面这些行作为模板,自己在sources.list中编辑源:
:You can try replacing the current contents of sources.list with the following lines
:可试着用下面这几行代替sources.list中的当前内容
:To use your local mirror you can add "''cc.''" before ''archive.ubuntu.com'', where cc = your country code
:要使用你所在地的镜像,在''archive.ubuntu.com''前面加上"''cc.''", 其中 cc = 你所在国家的代码
:e.g. ''<nowiki>deb http://lv.archive.ubuntu.com/ubuntu feisty main restricted universe multiverse</nowiki>''
:例如 ''<nowiki>deb http://lv.archive.ubuntu.com/ubuntu feisty main restricted universe multiverse</nowiki>''


<pre>
<pre>
第101行: 第100行:
</pre>
</pre>


*Save the edited file
*保存编辑过的文件


* Download needed gpg keys; e.g., use the following command for the PLF repository's gpg key:
* 下载需要的 gpg keys; 比如可以下面的命令得到 PLF 源的 gpg key:
  wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
  wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -


* If you wish to try out the E17 beta, you will also need to download it's gpg key:
* 要想试用 E17 beta, 还需要下载其 gpg key:
  wget -q http://lut1n.ifrance.com/repo_key.asc -O- | sudo apt-key add -
  wget -q http://lut1n.ifrance.com/repo_key.asc -O- | sudo apt-key add -


* Refresh packages list:
* 刷新包列表:
  sudo aptitude update
  sudo aptitude update




* You may also generate your own sources.list and find other repositories at: http://www.ubuntulinux.nl/source-o-matic
* 也可以生成你自己的sources.list,或到 http://www.ubuntulinux.nl/source-o-matic 寻找其他的源。


* ''Modify the default Ubuntu sources.list only if you understand what you're doing.  Mixing repositories can '''break''' your system.''
* ''只有在知道自己在做什么的前提下才可修改默认的Ubuntu sources.list! 把不同的源混杂在一起可能使你的系统 '''崩溃'''''

2007年5月31日 (四) 22:59的版本

Upgrade Ubuntu Edgy to Ubuntu Feisty

如何添加额外的软件源

  • 阅读 #概述
  • 可以用"软件源"应用程序添加额外的源,见系统 -> 系统管理 -> 软件源。在你认为需要的源(main, universe, restricted, multiverse)前面打勾。你可能不需要'源代码'这个源。推荐用这种方法添加额外的源。
  • 添加源还有一种方法,用以下步骤 (风险自负):
  • 创建一个你现在使用的源列表的备份
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
其他用户 (在上面这些都不行的情况下):
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! 把不同的源混杂在一起可能使你的系统 崩溃