15.8 docker 添加docker仓库失败
Tofloor
poster avatar
nan237420759
deepin
2018-11-27 18:35
Author
请问大家遇到了这个问题么?
  1. sudo add-apt-repository "deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/debian  jessie stable"
Copy the Code
  1. sudo apt-get update
Copy the Code
  1. 命中:1 http://packages.deepin.com/deepin panda InRelease
  2. 命中:2 http://packages.microsoft.com/repos/vscode stable InRelease                                                      
  3. 忽略:3 https://mirrors.ustc.edu.cn/docker-ce/linux/debian jessie InRelease                  
  4. 错误:4 https://mirrors.ustc.edu.cn/docker-ce/linux/debian jessie Release
  5.   Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 202.141.160.110 443]
  6. 正在读取软件包列表... 完成
  7. W: https://mirrors.ustc.edu.cn/docker-ce/linux/debian/dists/jessie/InRelease: No system certificates available. Try installing ca-certificates.
  8. W: https://mirrors.ustc.edu.cn/docker-ce/linux/debian/dists/jessie/Release: No system certificates available. Try installing ca-certificates.
  9. E: 仓库 “https://mirrors.ustc.edu.cn/docker-ce/linux/debian jessie Release” 没有 Release 文件。
  10. N: 无法安全地用该源进行更新,所以默认禁用该源。
  11. N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
Copy the Code


Reply Favorite View the author
All Replies
avatar
Island
deepin
2018-11-27 19:01
#1
sudo add-apt-repository "deb [arch=amd64 trusted=yes] https://mirrors.ustc.edu.cn/docker-ce/linux/debian  jessie stable"
没有别人仓库公钥 trusted=yes 仓库默认设置为信任
Reply View the author
avatar
nan237420759
deepin
2018-11-27 19:24
#2
https://bbs.deepin.org/post/171598
sudo add-apt-repository "deb [arch=amd64 trusted=yes] https://mirrors.ustc.edu.cn/docker-ce/linux/de ...

非常感谢您的回复!
秘钥是用
  1. curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/debian/gpg | sudo apt-key add -
Copy the Code
配置了的。
查看秘钥结果是:
  1. pub   rsa4096 2017-02-22 [SCEA]
  2.       9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
  3. uid           [ 未知 ] Docker Release (CE deb)
  4. sub   rsa4096 2017-02-22 [S]
Copy the Code


按照你您这个
  1. 忽略:3 https://mirrors.ustc.edu.cn/docker-ce/linux/debian jessie InRelease
  2. 错误:4 https://mirrors.ustc.edu.cn/docker-ce/linux/debian jessie Release
  3.   Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 202.38.95.110 443]
  4. 正在读取软件包列表... 完成                           
  5. W: https://mirrors.ustc.edu.cn/docker-ce/linux/debian/dists/jessie/InRelease: No system certificates available. Try installing ca-certificates.
  6. W: https://mirrors.ustc.edu.cn/docker-ce/linux/debian/dists/jessie/Release: No system certificates available. Try installing ca-certificates.
  7. E: 仓库 “https://mirrors.ustc.edu.cn/docker-ce/linux/debian jessie Release” 没有 Release 文件。
  8. N: 无法安全地用该源进行更新,所以默认禁用该源。
  9. N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
Copy the Code

依然是这个错误
Reply View the author
avatar
ih******op@vip.qq.com
deepin
2018-11-27 21:01
#3
删掉,改成这个
  1. apt install ca-certificates
Copy the Code

cat /etc/apt/sources.list.d/docker-ce.list
  1. deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/debian/ buster stable
Copy the Code

Reply View the author
avatar
a396211801
deepin
2018-12-07 22:53
#4
我的也是这样
不要用官方源。
参考下面的步骤添加几可以了
https://www.jianshu.com/p/07e405c01880
Reply View the author