赞
踩
之前试过阿里的镜像源,但是因为有些问题不好用,现在用的是以下镜像源。
- #打开编辑Apt镜像源配置文件
- sudo vim sources.list
-
- #将原来的配置注释掉,添加新的配置
- deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
- deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
- deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
- deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
-
- #确认保存就好了
这边要注意以下自己的ubuntu版本适合什么镜像源
- # 查看系统信息
- lsb_release -a
如果codename是jammy,则需要使用jammy的镜像源,如下
- deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
-
- deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
-
- deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
-
- # deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
- # deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
-
- deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。