找回密码
 注册
查看: 1390|回复: 0

ubuntu 配置apt-get源

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-1-11 17:00:01 | 显示全部楼层 |阅读模式
ubuntu 配置apt-get源1 F$ M) E& N5 Q0 d
, w& _6 [& S' l) z: @$ Q' m- |
ubantu安装软件速度慢一般是因为系统默认选择的源导致,可以通过手动配置源设置解决。
1. 原文件备份
mv /etc/apt/sources.list /etc/apt/sources.list_bk
+ s3 F5 c& [! s7 F& M! _
2. 编辑源列表文件
vim /etc/apt/sources.list

' O0 ]: C2 Z. B" F6 L) t
3. 添加如下内容
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse" z9 \3 C% H4 t# n, i
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse! t* p; k1 b1 d! c2 }& g
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse7 v3 M) s$ E8 Q) b9 E7 q6 Q
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse) |9 p5 ^" F, A+ u
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
. |2 x) G* j) O  i) Ideb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
. \( Z8 r- r8 O: ?/ C
4. 更新源
apt-get update
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 02:00 , Processed in 0.018620 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表