ubuntu12.04更换软件源

本文介绍了如何在Ubuntu12.04系统中更换软件源以提高软件下载速度。步骤包括备份原有软件源,打开并编辑软件源列表,替换为新的源,然后加载新源使其生效。操作过程中需注意可能的长时间等待和部分源无法更新的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

        在ubuntu下自带的软件源安装软件非常慢,如果想要快速下载东西得更换软件源。而更换软件源的方法很简单。

一  备份系统自带的软件源

终端输入

sudo cp /etc/apt/sources.list /etc/apt/sources_backup.list

二  打开系统自带的软件源

终端输入

sudo gedit /etc/apt/sources.list

三  替换新的软件源



# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ftp.sjtu.edu.cn/ubuntu/ precise main restricted
deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise main restricted
deb http://cz.archive.ubuntu.com/ubuntu lucid main

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ftp.sjtu.edu.cn/ubuntu/ precise-updates main restricted
deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ftp.sjtu.edu.cn/ubuntu/ precise universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise universe
deb http://ftp.sjtu.edu.cn/ubuntu/ precise-updates universe
deb-src http://ftp.sjtu.ed
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值