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

ubuntu 配置apt-get源

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-1-11 17:00:01 | 显示全部楼层 |阅读模式
ubuntu 配置apt-get源
9 n6 H- l9 K( r2 g: ]
2 y( f& s  u( I0 j% E& K; A
ubantu安装软件速度慢一般是因为系统默认选择的源导致,可以通过手动配置源设置解决。
1. 原文件备份
mv /etc/apt/sources.list /etc/apt/sources.list_bk
* i  t$ }; Y  l
2. 编辑源列表文件
vim /etc/apt/sources.list

% T% s* ~9 r: f( E8 h6 w
3. 添加如下内容
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse) F7 K2 w, [- V8 d; D( O" k
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse5 Q; c- c* @4 F4 `: a
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
1 r4 s7 ~7 r2 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
( v5 H# g  i8 x( R; t+ j4 q5 kdeb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse8 b' A2 p/ z+ M. C# |
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
" c% ]2 ^" c3 w3 _
4. 更新源
apt-get update
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:57 , Processed in 0.018962 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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