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

ubuntu 配置apt-get源

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-1-11 17:00:01 | 显示全部楼层 |阅读模式
ubuntu 配置apt-get源. |  L/ n9 B; b) L- B1 m

% G) J$ V/ B) T2 k5 X3 h
ubantu安装软件速度慢一般是因为系统默认选择的源导致,可以通过手动配置源设置解决。
1. 原文件备份
mv /etc/apt/sources.list /etc/apt/sources.list_bk

* W) f# \; f5 o
2. 编辑源列表文件
vim /etc/apt/sources.list
( n$ y4 Q) d5 c
3. 添加如下内容
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse5 z# g* E% J+ F* j4 h2 N2 S- E
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, ?+ u' l* T. a3 v. C
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse6 e1 j- w# h# e/ |
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, ^! I! Q& C+ f" 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
% E  R( ^; Q  M4 M6 Gdeb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

) }2 {5 m2 J9 I* `" C
4. 更新源
apt-get update
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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