ubuntu下载第三方库给所有用户_Ubuntu第三方软件仓库源(国内源)

本文介绍了如何将Ubuntu的官方软件仓库替换为国内镜像点,以加快下载和升级速度。详细步骤包括备份原有配置文件,编辑`sources.list`添加163镜像点和北京理工大学镜像点的源,然后执行`apt-get update`更新源。
摘要由CSDN通过智能技术生成

一般来说ubuntu官方的软件仓库因为服务器在国外,下载升级速度较慢,需要将软件仓库更换为国内镜像点。

1、修改源配置文件① 先备份原来的配置文件

mv /etc/apt/sources.list /etc/apt/sources.list.bak

vim /etc/apt/sources.list② 将国内的Ubuntu镜像点增加到配置文件Ubuntu 163镜像点:deb http://mirrors.163.com/ubuntu/ precise main restricted

deb-src http://mirrors.163.com/ubuntu/ precise main restricted

deb http://mirrors.163.com/ubuntu/ precise-updates main restricted

deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted

deb http://mirrors.163.com/ubuntu/ precise universe

deb-src http://mirrors.163.com/ubuntu/ precise universe

deb http://mirrors.163.com/ubuntu/ precise-updates universe

deb-src http://mirrors.163.com/ubuntu/ precise-updates universe

deb http://mirrors.163.com/ubuntu/ precise multiverse

deb-src http://mirrors.163.com/ubuntu/ precise multiverse

deb http://mirrors.163.com/ubuntu/ precise-updates multiverse

deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse

deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ precise-security main restricted

deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted

deb http://mirrors.163.com/ubuntu/ precise-security universe

deb-src http://mirrors.163.com/ubuntu/ precise-security universe

deb http://mirrors.163.com/ubuntu/ precise-security multiverse

deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse

deb http://extras.ubuntu.com/ubuntu precise main

deb-src http://extras.ubuntu.com/ubuntu precise main

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22北京理工大学Ubuntu镜像点:deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe

deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe

deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe

deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe

deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe

1

2

3

4

5

6

7

8

9

10

2、升级源

apt-get update

现在修改后的国内的ubuntu镜像点即可以用了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值