zoukankan      html  css  js  c++  java
  • Ubuntu更换阿里源

    换源原因

    还用说吗,官方服务器在海外,速度太慢了。

    更换源步骤

    1.更改源文件的权限

    如果是以普通用户状态进入系统的,推荐先更改源文件的独写权限,这样子方便后续维护操作。

    sudo chmod 777 /etc/apt/sources.list
    

    2.更改源文件内容

    可以利用vim等编辑器进入sources.list之后禁用默认的源,直接在默认源之前加入#即可。 然后在sources.list里面添加以下内容(阿里云)

    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.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    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
    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
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
    

    更新与升级

    sudo apt-get update
    
    sudo apt-get upgrade
    

    上面这两个命令的顺序尽量不要错,调换顺序的影响暂时不清楚,也不想尝试,麻烦。。

  • 相关阅读:
    C#快速生成数据数组
    PHP访问Oracle数据库
    C# 监听HTTP请求
    三维重建基础
    三维重建技术概述
    python+OpenCV 特征点检测
    windows10,redhat6.5下python3.5.2使用cx_Oracle链接oracle
    《读书报告 -- Elasticsearch入门 》-- 安装以及简单使用(1)
    2016年简直一晃而过
    windows下python3.5使用pip离线安装whl包
  • 原文地址:https://www.cnblogs.com/mirage-mc/p/12672696.html
Copyright © 2011-2022 走看看