美文网首页
【阿里云镜像】切换阿里巴巴开源镜像站镜像——Ubuntu镜像

【阿里云镜像】切换阿里巴巴开源镜像站镜像——Ubuntu镜像

作者: 宝耶需努力 | 来源:发表于2021-11-28 10:47 被阅读0次

    一、简介

    Ubuntu,是一款基于 Debian Linux 的以桌面应用为主的操作系统,内容涵盖文字处理、电子邮件、软件开发工具和 Web 服务等,可供用户免费下载、使用和分享。

    二、配置方法

    参考链接:

    阿里巴巴开源镜像站

    阿里云 ubuntu镜像源

    1、图形化界面配置操作

    图形化Ubuntu操作系统安装步骤参考链接:Ubuntu 20.04安装过程

    如果安装图形化界面的Ubuntu系统的话,推荐使用此方法。

    使用图形界面配置操作步骤:
    系统设置 -> 软件和更新 选择下载服务器 -> "mirrors.aliyun.com"

    (1)打开Ubuntu系统。

    在这里插入图片描述

    (2)右击选择"设置"。

    在这里插入图片描述

    (3)选择”关于“,点击"软件更新"。如图所示。

    在这里插入图片描述

    (4)选择"其他站点"。

    在这里插入图片描述

    (5)选择"mirrors.aliyun.com",点击“选择服务器”。

    在这里插入图片描述

    (6)切换完成。

    在这里插入图片描述

    (7)重新载入镜像。

    在这里插入图片描述

    等待更新完成即可。

    在这里插入图片描述

    2、终端界面配置操作

    参考链接:阿里云 ubuntu镜像

    采用修改配置文件的方式进行切换。

    (1)备份源文件。

    选择"在终端中打开"。

    root@xyb-virtual-machine:~# cp /etc/apt/sources.list /etc/apt/sources.list.backup
    
    在这里插入图片描述

    (2)手动修改源文件。

    用熟悉的编辑器打开:
    /etc/apt/sources.list
    替换默认的
    http://archive.ubuntu.com/

    mirrors.aliyun.com

    在这里插入图片描述

    ubuntu 20.04(focal) 配置如下

    deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    
    deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    
    deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    
    deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse</pre>
    
    在这里插入图片描述

    (3)更新软件列表。

    在这里插入图片描述

    相关文章

      网友评论

          本文标题:【阿里云镜像】切换阿里巴巴开源镜像站镜像——Ubuntu镜像

          本文链接:https://www.haomeiwen.com/subject/ouhqxrtx.html