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

ubuntu 配置apt-get源

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-1-11 17:00:01 | 显示全部楼层 |阅读模式
ubuntu 配置apt-get源1 u' U6 b( S; o" a
) q# {. M, C- X( a% n5 Q
ubantu安装软件速度慢一般是因为系统默认选择的源导致,可以通过手动配置源设置解决。
1. 原文件备份
mv /etc/apt/sources.list /etc/apt/sources.list_bk

3 D# m6 c' C. n! K. ~/ g0 Q
2. 编辑源列表文件
vim /etc/apt/sources.list

& }" c* v4 F5 h9 \- i; N7 Z6 ]1 i
3. 添加如下内容
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
( [- }! H) N: F2 [' B+ jdeb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse8 D$ x- [  a' m- j
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% ^: V  z3 s& K6 j+ J7 W* j
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& F2 k& k% d2 g, w, E( S2 l
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
( Z1 \; t9 Y' [* _( Y5 gdeb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
# U- g6 z3 b/ L: V+ o( P
4. 更新源
apt-get update
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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