Ubuntu

配置修改

Ubuntu源的使用需要以root权限修改/etc/apt/sources.list配置文件,修改之前,请做好备份,本文以Ubuntu14.04和Ubuntu16.04为例,介绍使用方式

Ubuntu 14.04
deb http://mirrors.cloud.tencent.com/ubuntu trusty main restricted universe multiverse
deb http://mirrors.cloud.tencent.com/ubuntu trusty-updates main restricted universe multiverse
deb http://mirrors.cloud.tencent.com/ubuntu trusty-security main restricted universe multiverse
#deb http://mirrors.cloud.tencent.com/ubuntu trusty-backports main restricted universe multiverse
#deb http://mirrors.cloud.tencent.com/ubuntu trusty-proposed main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu trusty main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu trusty-updates main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu trusty-security main restricted universe multiverse
#deb-src http://mirrors.cloud.tencent.com/ubuntu trusty-backports main restricted universe multiverse
#deb-src http://mirrors.cloud.tencent.com/ubuntu trusty-proposed main restricted universe multiverse
Ubuntu 16.04
deb http://mirrors.cloud.tencent.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.cloud.tencent.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.cloud.tencent.com/ubuntu/ xenial-updates main restricted universe multiverse
#deb http://mirrors.cloud.tencent.com/ubuntu/ xenial-proposed main restricted universe multiverse
#deb http://mirrors.cloud.tencent.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial-updates main restricted universe multiverse
#deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial-proposed main restricted universe multiverse
#deb-src http://mirrors.cloud.tencent.com/ubuntu/ xenial-backports main restricted universe multiverse
也可以通过wget获取配置文件
# 14.04
wget -O /etc/apt/sources.list  http:/mirrors.cloud.tencent.com/repo/ubuntu14_sources.list
# 16.04
wget -O /etc/apt/sources.list http:/mirrors.cloud.tencent.com/repo/ubuntu16_sources.list
更新缓存
apt-get clean all
apt-get update

相关链接

官方主页: https://www.ubuntu.com/
文档: https://help.ubuntu.com/
Wiki: https://wiki.ubuntu.com/
邮件列表: https://community.ubuntu.com/contribute/support/mailinglists/
提问: https://askubuntu.com/
论坛: https://ubuntuforums.org/

提示

文件列表项中的帮助链接为Linux发行版本软件的安装源的帮助,如果您有任何不懂可以点击获取相应的帮助。

若您使用腾讯云服务器,请将源的域名从 mirrors.cloud.tencent.com 改为 mirrors.tencentyun.com,使用内网流量不占用公网流量。

常用链接