1. 添加 docker 官方 GPG key

    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

    报错:

    gpg: can't connect to the agent: IPC connect call failed

    解决方法:

    apt remove gpg
    apt install gnupg1
  2. 设置 docker 稳定版仓库

    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

    报错:

    add-apt-repository command not found

    解决方法:

    apt-get install software-properties-common
  3. 更新源

    sudo apt-get update
    

    报错:

    Hit: https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal InRelease
    Hit: https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRelease
    Hit: https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports InRelease
    Hit: https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRelease
    Ign: https://download.docker.com/linux/ubuntu focal InRelease
    Err: https://download.docker.com/linux/ubuntu focal Release
    Not Found [IP: 13.227.60.113 ]
    Reading package lists... Done
    E: The repository 'https://download.docker.com/linux/ubuntu focal Release' does not have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure() manpage for repository creation and user configuration details.

    解决方法:在 /etc/apt/source.list 文件中增加如下配置

    deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
    

    再次更新源

    sudo apt-get update
    

    报错:

    Hit:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal InRelease
    Hit:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRelease
    Hit:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports InRelease
    Hit:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRelease
    Ign:5 https://download.docker.com/linux/ubuntu focal InRelease
    Get:6 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
    Err:7 https://download.docker.com/linux/ubuntu focal Release
    404 Not Found [IP: 13.224.166.20 443]
    Get:8 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages [11.0 kB]
    Reading package lists... Done
    E: The repository 'https://download.docker.com/linux/ubuntu focal Release' does not have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.

    解决方法:删除 /etc/apt/source.list

    https://download.docker.com/linux/ubuntu focal Release
    

      

ubuntu docker相关错误记录的更多相关文章

  1. 【JavaWeb】Spring相关错误记录

    Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: ...

  2. ubuntu 下安装docker 踩坑记录

    ubuntu 下安装docker 踩坑记录 # Setp : 移除旧版本Docker sudo apt-get remove docker docker-engine docker.io # Step ...

  3. PHP 错误与异常 笔记与总结(5)配置文件中与错误日志相关的选项 && 将错误记录到指定的文件中

    [记录错误(生产环境)] php.ini: ① 开启 / 关闭 错误日志功能 log_errors = On ② 设置 log_errors 的最大字节数 log_errors_max_len = 其 ...

  4. Ubuntu Docker 安装和配置 GitLab CI 持续集成

    相关文章: Ubuntu Docker 简单安装 GitLab 劈荆斩棘:Gitlab 部署 CI 持续集成 目的:在 Ubuntu 服务器上,使用 Docker 安装和配置 GitLab Runne ...

  5. Centos + docker,Ubuntu + docker介绍安装及详细使用

    docker笔记 常用命令 设置docker开机自启:sudo chkconfig docker on 查所有镜像: docker images 删除某个镜像:docker rmi CONTAINER ...

  6. Ubuntu16.04编译Android6.0/cm13.0教程及相关错误解决办法

    一.必备工作 1.安装依赖库 sudo apt--dev libesd0-dev git-core gnupg flex bison gperf build-essential zip curl zl ...

  7. Docker相关文档

    网上找到的一个入门级Docker学习笔记,写的不错,值得一看. 转自:http://www.open-open.com/lib/view/open1423703640748.html#articleH ...

  8. 安装nagios出现的两个错误记录

    最近在安装nagios,出现几个错误记录: 一 检查nagios配置的时候出现错误如下: Warning: Duplicate definition found for host 'kelly' (c ...

  9. Docker相关释义

    Docker相关释义 基础网站:http://www.runoob.com/docker/docker-tutorial.html Docker的思想来自于集装箱,集装箱解决了什么问题?在一艘大船上, ...

随机推荐

  1. linux常用命令--打包和压缩文件

    bunzip2 file1.bz2 解压一个叫做 'file1.bz2'的文件 bzip2 file1 压缩一个叫做 'file1' 的文件 gunzip file1.gz 解压一个叫做 'file1 ...

  2. 使用binlog2sql工具来恢复数据库

    (一)binlog2sql介绍 binlog2sql是国内MySQL大佬danfengcao开发,许多MySQL爱好者参与改进的一款MySQL binlog解析软件.根据不同选项,可以得到原始SQL. ...

  3. kafka高吞吐量之消息压缩

    背景 保证kafka高吞吐量的另外一大利器就是消息压缩.就像上图中的压缩饼干. 压缩即空间换时间,通过空间的压缩带来速度的提升,即通过少量的cpu消耗来减少磁盘和网络传输的io. 消息压缩模型 消息格 ...

  4. 新增记录txt文档

    StringBuilder s = new StringBuilder(); s.Append("[" + dt.Rows[i]["Store"].Conver ...

  5. TensorFlow keras vgg16net的使用

    from tensorflow.python.keras.applications.vgg16 import VGG16,preprocess_input,decode_predictions fro ...

  6. Java 自动拆箱 装箱 包装类的缓存问题--结合源码分析

    都0202 了 java 1.8 已经是主流 自动装箱 .拆箱已经很普遍使用了,那么有时候是不是会遇到坑呢? 我们先来看一段代码: public class TestWraperClass { pub ...

  7. 理解RESTful API

    近日妹子向我求助RESTful API到底是个什么东西.原因是她们公司一个新启动的项目因为RESTful API起了争执.服务端同学坚持要用RESTful API,而前端同学则认为服务端用RESTfu ...

  8. 非常简单的string驻留池,你对它真的了解吗

    昨天看群里在讨论C#中的string驻留池,炒的火热,几轮下来理论一堆堆,但是在证据提供上都比较尴尬.虽然这东西很基础,但比较好的回答也不是那么容易,这篇我就以我能力范围之内跟大家分享一下 一:无处不 ...

  9. 0day笔记(1)PE文件格式与虚拟文件内存的映射

    PE文件格式 PE 文件格式把可执行文件分成若干个数据节(section),不同的资源被存放在不同的节中. 一个典型的 PE 文件中包含的节如下: .text 存放着二进制的机器代码 .data 初始 ...

  10. thinkphp--多个id查询

    $feedback_list = $feedback -> where( array("member_id"=>array("in", " ...