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. 处理时间的类 —— System类、Date类 、SimpleDateFormat类 与 Calendar类

    在我们以往的编程中,就有过通过运行前和运行后时间差来判断时间复杂度的例子,再扯得远一点,我们在C语言中制造随机数的操作,也要用到有关时间的函数.而且,在我们未来的编程中,也会时不时要用到能够读取当前时 ...

  2. Linux常见提权

    常见的linux提权 内核漏洞提权 查看发行版 cat /etc/issue cat /etc/*-release 查看内核版本 uname -a 查看已经安装的程序 dpkg -l rpm -qa ...

  3. 【题解】P4570 [BJWC2011]元素 - 线性基 - 贪心

    P4570 [BJWC2011]元素 声明:本博客所有题解都参照了网络资料或其他博客,仅为博主想加深理解而写,如有疑问欢迎与博主讨论✧。٩(ˊᗜˋ)و✧*。 题目描述 给你 \(n\) 个二元组 \( ...

  4. .NET Core 3 WPF MVVM框架 Prism系列之对话框服务

     本文将介绍如何在.NET Core3环境下使用MVVM框架Prism的对话框服务,这也是prism系列的最后一篇完结文章,下面是Prism系列文章的索引: .NET Core 3 WPF MVVM框 ...

  5. Install go1.5 for CentOS7

    https://golang.org/doc/install 下载好后,通过FTPS,传递到Linux里去,放哪里随便你自己,因为被墙了,所以在Windows通过旋风下载了这个玩意儿. 你也可以: w ...

  6. MySQL基础知识和常用命令总结

    说明:以下内容是阅读书籍<<MySQL必知必会>>的摘要和总结 检索数据 排序检索数据 过滤数据 使用通配符过滤 使用正则表达式进行搜索 创建计算字段 使用数据处理函数 汇总数 ...

  7. ubuntu下载速度慢的解决办法--修改下载源

    操作:https://blog.csdn.net/qq_24326765/article/details/81916222 推荐源:https://blog.csdn.net/qq_36328643/ ...

  8. Android:finish()与System.exit(0)之间的区别

    finish()与System.exit(0)都是用来退出.但是两者还是有一定的区别: finish是Activity的类,仅仅针对Activity,当调用finish()时,只是将活动推向后台,并没 ...

  9. js之用IndexOf返回指定字符串的次数

    代码 var Str = "strs,strs,stras,str,strs,strs"; var subStr ="strs" ; var count = 0 ...

  10. 【linux三剑客】grep命令

    grep, egrep, fgrep - print lines matching a pattern grep 命令用于查找文件里符合条件的字符串. grep 指令用于查找内容包含指定的范本样式的文 ...