Advertisement

Replace the APT source repositories in Ubuntu.

阅读量:

问题与背景概述

在使用apt工具进行软件包管理时,Ubuntu系统默认配置的软件源多为境外服务器,导致下载速度较慢。为提升访问效率,建议将软件源地址更改为国内镜像站点。

解决方案

需注意的是,不同版本的Ubuntu系统所对应的软件源存在差异。在控制终端中,请输入以下代码:

复制代码
    sudo tee /etc/apt/sources.list <<-'EOF'
    deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    
    deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    
    deb http://mirrors.al

全部评论 (0)

还没有任何评论哟~