Ubuntu安装基础教程

作者:Teliute 来源:基础教程网

九、设置源 返回目录 下一课

 Ubuntu里的许多应用程序软件包,是放在网络里的服务器上,这些服务器网站,就称作“源”,从源里可以很方便地获取软件包,下面我们来看一个练 习;

 1、设置源

 1)点击上面板条的系统菜单“System-系统管理-软件源”命令,出来一个面板;

 a1cd.gif

 2)先出来一个密码输入框,输入自己密码后,点绿色“OK”按钮确定,进入源面板;

 a2mm.gif

 3)在第一个面板里,把上面的勾都去掉,再点一下中间的列表框,选择“Server for 中国”即中国的服务器;

 a3yu.gif

 4)再点上边的第二个标签“Third-Party software”第三方软件,进入一个列表面板,

 先把里面的两个方框的勾点掉

 a4yu.gif

 5)然后点下面左边的“+Add..”添加按钮,出来一个对话框,把下面的一组网址复制粘贴一条进去,

 注意细致,每次复制一条,点“+Add Source”按钮确定,同样再复制下一条;

 a5yu.gif

deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ hardy main restricted universe multiverse

 这些CN99的源专门是电信用的,Ubuntu欧洲官方源服务器是这另一组:

deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

 更多的源可以查看:http://wiki.ubuntu.org.cn/index.php?title=Qref/Source&variant=zh-cn

 进去找到相应的版本(比如8.04),在里面选一组就可以了;

 2、更新源列表

 1)把一组源全部添加进去后,点右下角的“close”关闭按钮,出来一个更新提示,

 点“Reload”按钮重新载人;;

 b3yu3.gif

 2)点“Reload”按钮后,出来一个下载进度面板,等下载结束后即可自动关闭,

 如果下载过程中出现错误提示,可能是源不正确,可以检查一下,或者换另一组较快的源;

 b4yu.gif b4yu1.gif

 3)源设置好以后,下一步就可以下载各个语言包、软件包、升级包等等;

 4)终端设置源的方法,进入终端,输入命令:(第一句是备份命令,输完后按一下回车键)

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

 在出来的文档窗口里,先删除所有内容,再复制一组源进去,保存关闭后,再执行下面命令更新源;

sudo apt-get update

 本节学习了在Ubuntu中设置源列表的基本方法的基本方法,如果你成功地完成了练习,请继续学习下一课内容;

返回目录 下一课

本教程由86团学校TeliuTe制作|著作权所有,商业用途请与作者联系

基础教程网:http://www.laxjyj.com/teliute/

美丽的校园……



转载和引用本站内容,请保留版权信息和本站链接。