• linux修改aptget 源


    1. cd /etc/apt/

    2. cp source.list source.list.bak   //备份当前的源文件
    3. vi source.list            //root用户修改
    4. 清空或者注释掉之前的源
    5. 粘贴以下内容
     
    deb http://ports.ubuntu.com/ bionic main restricted universe multiverse
    deb-src http://ports.ubuntu.com/ bionic main restricted universe multiverse
    
    deb http://ports.ubuntu.com/ bionic-updates main restricted universe multiverse
    deb-src http://ports.ubuntu.com/ bionic-updates main restricted universe multiverse
    
    deb http://ports.ubuntu.com/ bionic-security main restricted universe multiverse
    deb-src http://ports.ubuntu.com/ bionic-security main restricted universe multiverse
    
    deb http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse
    deb-src http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse
    # deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
    # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
    # deb [arch=amd64]https://download.docker.com/linux/ubuntu] bionic stable
    # deb-src [arch=amd64]https://download.docker.com/linux/ubuntu] bionic stable
    deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
    # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
    # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic test
    deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
    # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
     6. apt-get update
    7. apt-get upgrade
  • 相关阅读:
    docker底层原理
    搭建docker私有镜像仓库harbor
    docker 网络详解
    从对集合数据去重到Distinct源码分析
    学习笔记(3)centos7 下安装RabbitMQ
    学习笔记(2)centos7 下安装mysql
    学习笔记(1)centos7 下安装nginx
    2.Redis的数据类型
    1.Redis介绍以及安装
    mongoDB的安装和配置
  • 原文地址:https://www.cnblogs.com/hjj801006/p/16049483.html
Copyright © 2020-2023  润新知