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
个人工具