zoukankan      html  css  js  c++  java
  • ubuntu更改apt源

    1、复制源文件备份

    cp /etc/apt/sources.list /etc/apt/sources.list.bak

    2、编辑源列表文件

    gedit /etc/apt/sources.list

    3、将原有的内容注释掉,添加以下内容

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

    4、更新软件列表

    apt-get update

  • 相关阅读:
    redis 学习笔记
    导数据方法
    数据库常用操作
    zepto.js
    shopnc
    vue.js
    laravel
    mysql进阶学习
    Python基础------生成器表达式形式、面向过程编程、内置函数部分
    Python基础----生成器、三元表达式、列表生成式、生成器表达式
  • 原文地址:https://www.cnblogs.com/appear001/p/13632930.html
Copyright © 2011-2022 走看看