搭建个人博客-总结

  1. 安装 Docker更新源 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
Err:6 https://download.docker.com/linux/ubuntu focal Release
  404  Not Found [IP: 13.227.60.113 443]
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 文件中增加如下配置

deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
  1. 报错2:
Hit:1 http://mirrors.cloud.aliyuncs.com/ubuntu bionic InRelease
Hit:2 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-updates InRelease
Get:3 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-backports InRelease [74.6 kB]
Hit:4 http://mirrors.cloud.aliyuncs.com/ubuntu bionic-security InRelease
Get:5 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
Err:5 https://download.docker.com/linux/ubuntu bionic InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
Hit:6 https://deb.nodesource.com/node_14.x bionic InRelease
Reading package lists... Done
W: GPG error: https://download.docker.com/linux/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
E: The repository 'https://download.docker.com/linux/ubuntu bionic InRelease' is not signed.
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.

运行此命令以添加正确的 key :

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  1. 遇到端口打不开,在云服务器配置安全组
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 姓名 郭宇 学号 16130130299 转载自 【hexo+github个人博客搭建(一)】 https://m...
    水果无味阅读 411评论 0 0
  • 搭建线上环境需要做什么?1、购买域名。2、购买服务器(就是一台带外网ip的虚拟电脑)。3、配置服务器应用环境(用户...
    LoveBugs_King阅读 2,253评论 0 2
  • 项目部署(阿里云) 一、阿里云服务器 创建实例—控制台 给安全组配置规则,添加5000端口 利用命令行进行远程服务...
    梦醒家先生阅读 2,206评论 0 0
  • 1 概述 作为一名使用 win10 的开发者,搭建开发环境往往是一件比较痛苦的事,需要从网上下载各种软件,在电脑...
    IT读享阅读 674评论 0 0
  • lddr3要求的内核是 2.6.10的,按照网上别人的说法,用其他版本的内核,会出问题,为了避免不必要的麻烦,还是...
    xuxiang阅读 242评论 0 0