2.2 APT更新源
2.2 apt更新源
如果读者使用的是ubuntu系统,会经常需要使用apt工具进行软件管理。apt工具默认的镜像源速度极其缓慢,强烈建议使用国内的镜像源。推荐的配置方式为,编辑/etc/apt/sources-list,添加如下内容即可:
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted
universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
xenial-security main restricted deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse
如果读者使用的是ubuntu系统,会经常需要使用apt工具进行软件管理。apt工具默认的镜像源速度极其缓慢,强烈建议使用国内的镜像源。推荐的配置方式为,编辑/etc/apt/sources-list,添加如下内容即可:
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted
universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
xenial-security main restricted deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe deb
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse