Ubuntu软件源更新设计
创始人
2024-06-19 04:20:29
0

在向大家详细介绍Ubuntu软件源之前,首先让大家了解下buntu软件包,然后全面介绍Ubuntu软件源 ,希望对大家有用。Ubuntu 是一个完全以 Linux 为基础的操作系统, 可自由的获得,并提供社区和专业的支持。

Ubuntu软件源

对于Ubuntu的在线更新设计,相信您一定觉得十分方便,因为这可以提高系统安装的速度,并节省下载安装CD/DVD的大量时间(目前的Linux 发行版安装都需要多张CD或DVD,对于上网带宽不足的用户,这常会造成下载的困难)。

不知您是否想过,这些Ubuntu软件到底存放在哪里?是否可以指定下载的位置?解决此类问题,就必须提及Ubuntu使用的“Ubuntu软件源”(Software Repositories)。在Ubuntu中所谓的“Ubuntu软件源”,是指在世界上许多服务器上放置的Ubuntu软件数据库。就目前而言,Ubuntu软件源中大概有17 000个不同的Ubuntu软件包。由于Ubuntu软件源是开放给所有的Ubuntu用户进行更新,所以只要在Ubuntu软件源中定期上传***版本的Ubuntu软件,便可确保所有用户都用到***发布的Ubuntu软件包。

默认Ubuntu软件源

Ubuntu安装时,系统会根据选择的时区来指定默认的Ubuntu软件源,以加快用户下载更新时的速度。例如,在安装时,如果选择的时区为上海,则系统就会指定使用中国的UbuntuUbuntu软件源。如果希望了解目前系统所用的Ubuntu软件源列表,首先需要打开/etc/apt/sources.list文件。下面的范例是笔者目前的计算机设置,其中会列出不同用途的Ubuntu软件源网址:

Major bug fix updates produced after the final release of the
distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ edgy-updates main restricted multiverse universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ edgy-updates main restricted multiverse universe #Added by software-properties
Uncomment the following two lines to add software from the 'universe'
repository.
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://cn.archive.ubuntu.com/ubuntu/ edgy universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ edgy universe
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://cn.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu edgy-security main restricted multiverse universe
deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted multiverse universe #Added by software-properties
deb http://security.ubuntu.com/ubuntu edgy-security universe
deb-src http://security.ubuntu.com/ubuntu edgy-security universe
deb http://archive.canonical.com/ubuntu dapper-commercial main
deb http://archive.ubuntu.org.cn/ubuntu-cn dapper main universe multiverse restricted
deb http://ubuntu.cn99.com/ubuntu-cn/ dapper main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ edgy-proposed universe main multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu/ edgy-proposed universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu/ edgy-backports universe main multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu/ edgy-backports universe main multiverse restricted
deb http://static.audacious-media-player.org/ubuntu dapper main
deb-src http://static.audacious-media-player.org/ubuntu dapper main

更改Ubuntu软件源

不过有时若遇到某些突发状况,例如因为地震而引起的国际电缆线断裂,或到国外出差或旅行,此时如果仍尝试连接默认的Ubuntu软件源,可能会引起Ubuntu软件更新的失败。因此需视实际情况来更改Ubuntu软件源的位置,当然,可以直接编辑/etc/apt/sources.list文件的内容,不过为了避免使用错误的语法,以及不正确的Ubuntu软件源地址,因此一般都建议使用图形界面的Ubuntu软件源设置程序——synaptic。

【编辑推荐】

  1. Ubuntu镜像使用支持网易与搜狐
  2. Ubuntu GRUB系统引导器
  3. Ubuntu GRUB全局密码和菜单密码
  4. Ubuntu TomCat安装及管理员帐号
  5. Ubuntu安装显卡驱动教程比较复杂

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
Windows恶意软件20年“... 在Windows的早期年代,病毒游走于系统之间,偶尔删除文件(但被删除的文件几乎都是可恢复的),并弹...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...
德国电信门户网站可实时显示全球... 德国电信周三推出一个门户网站,直观地实时提供其安装在全球各地的传感器网络检测到的网络攻击状况。该网站...
着眼MAC地址,解救无法享受D... 在安装了DHCP服务器的局域网环境中,每一台工作站在上网之前,都要先从DHCP服务器那里享受到地址动...
为啥国人偏爱 Mybatis,... 关于 SQL 和 ORM 的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行...