CFC00:Howto-repositories
出自Full Circle 中文项目主页
|
|
这是一篇从英文翻译成中文的翻译文章 若您愿意参与本文的简体中文翻译工作,或者认为此條目的翻译需要修订或进一步增补,请勇于更新页面,作出您的贡献。如果您不知道如何开始,请参看编辑指南。(为避免翻译冲突,请务必先参看本页面讨论页上的翻译状态) 如果发生编辑冲突,请将您的翻译先保存在本机,稍后查看变更之处再更新。 |
How to add repositories to your ubuntu 如何为你的ubuntu系统添加软件源
Because of that default repositories don't contain the right locations for most software packages that you'll want to install, you need always to add a repository to your ubuntu installation, to be able to download and install packages.
由于系统默认的软件源不包含大部分你想安装的软件包所在的服务器地址。所以当你在安装某些软件时,你每次必须将相应的软件仓库加入你的ubuntu中,以便能下载并安装软件包。
How to add new repositories?
如何加入一个新的软件源?
You will want to open up the /etc/apt/sources.list file, find and uncomment the following lines
你要打开 /etc/apt/sources.list 文件,找到并反注释如下行:
Repositories on Ubuntu are the locations that you can download software from. As a general rule, the default repositories don't contain the right locations for most software packages that you'll want to install. You will want to open up the /etc/apt/sources.list file, find and uncomment the following lines
ubuntu的软件源是存放安装软件文件的所在服务器地址。常规情况下。默认的软件源不包含大部分你想安装的软件包所在的服务器地址。你要打开 /etc/apt/sources.list 文件,找到并反注释如下行:
deb http://us.archive.ubuntu.com/ubuntu dapper universe main restricted universe
deb http://security.ubuntu.com/ubuntu dapper-security universe
Note that if you are using a different version than Dapper Drake (6.06), you will
probably see a different name there, something like breezy or edgy. 注意:如果你使用除了Dapper Drake (6.06)之外的其他版本,你将可能看到不同名字,它可能是
breezy 或 edgy
Once you are done adding the repositories, you'll need to run this command:
一旦你完成添加软件源,你将需要运行这个命令行(以便更新系统软件列表):
sudo apt-get update