[Exchange and share] V23 docker 不能安装,提示(E: 软件包 docker-ce 没有可安装候选)
Tofloor
poster avatar
taoyy528
deepin
2023-02-21 15:20
Author
$ sudo apt-get remove docker docker-engine docker.io
 
$ sudo apt-get purge docker-ce docker-ce-cli containerd.io
 
$ sudo apt autoremove
 
$ sudo rm -rf /var/lib/docker
 
$ sudo rm -rf /var/lib/containerd 


$ sudo apt-get update
 
$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
 
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
 
$ echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

  
$  sudo apt-get update
$  sudo apt-get install docker-ce docker-ce-cli containerd.io

log

taoyy@taoyy-PC:~/Desktop$ sudo apt-get install docker-ce
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成             
没有可用的软件包 docker-ce,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到

E: 软件包 docker-ce 没有可安装候选
taoyy@taoyy-PC:~/Desktop$ sudo apt-get install docker.io
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成             
没有可用的软件包 docker.io,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到

E: 软件包 docker.io 没有可安装候选
taoyy@taoyy-PC:~/Desktop$ echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
taoyy@taoyy-PC:~/Desktop$ sudo apt-get install docker-ce正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成             
没有可用的软件包 docker-ce,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到

E: 软件包 docker-ce 没有可安装候选
taoyy@taoyy-PC:~/Desktop$ sudo apt-get update
命中:2 https://pro-driver-packages.uniontech.com eagle InRelease                                     
忽略:3 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu beige InRelease                   
错误:4 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu beige Release                     
  404  Not Found [IP: 101.6.15.130 443]
命中:1 https://home-store-img.uniontech.com/230220151536620/appstorev23 beige InRelease              
命中:5 http://packages.microsoft.com/repos/code stable InRelease                                     
命中:6 https://community-packages.deepin.com/beige beige InRelease  
命中:7 https://community-packages.deepin.com/driver driver InRelease
正在读取软件包列表... 完成
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu beige Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
taoyy@taoyy-PC:~/Desktop$ sudo apt-get install docker-ce
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成             
没有可用的软件包 docker-ce,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到

E: 软件包 docker-ce 没有可安装候选
taoyy@taoyy-PC:~/Desktop$ sudo apt-get remove docker docker-engine docker.io
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成             
软件包 docker.io 未安装,所以不会被卸载
E: 无法定位软件包 docker
E: 无法定位软件包 docker-engine
taoyy@taoyy-PC:~/Desktop$ sudo apt-get purge docker-ce docker-ce-cli containerd.io
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成             
软件包 docker-ce 未安装,所以不会被卸载
E: 无法定位软件包 docker-ce-cli
E: 无法定位软件包 containerd.io
E: 无法按照 glob ‘containerd.io’ 找到任何软件包
E: 无法按照正则表达式 containerd.io 找到任何软件包
taoyy@taoyy-PC:~/Desktop$ sudo apt autoremove
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成             
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
taoyy@taoyy-PC:~/Desktop$ sudo rm -rf /var/lib/docker
taoyy@taoyy-PC:~/Desktop$ sudo rm -rf /var/lib/containerd
taoyy@taoyy-PC:~/Desktop$ sudo apt-get update
命中:1 https://community-packages.deepin.com/beige beige InRelease
命中:2 https://community-packages.deepin.com/driver driver InRelease                                 
命中:4 http://packages.microsoft.com/repos/code stable InRelease                                     
命中:5 https://pro-driver-packages.uniontech.com eagle InRelease                  
忽略:6 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu beige InRelease
命中:3 https://home-store-img.uniontech.com/230220151536620/appstorev23 beige InRelease
错误:7 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu beige Release
  404  Not Found [IP: 101.6.15.130 443]
正在读取软件包列表... 完成
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu beige Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
taoyy@taoyy-PC:~/Desktop$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成             
apt-transport-https 已经是最新版 (2.4.5.1-deepin1)。
ca-certificates 已经是最新版 (20211016)。
curl 已经是最新版 (7.79.1-2)。
gnupg 已经是最新版 (2.2.27-2)。
lsb-release 已经是最新版 (11.1.0)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
taoyy@taoyy-PC:~/Desktop$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
文件‘/usr/share/keyrings/docker-archive-keyring.gpg’已存在。 是否覆盖?(y/N) y

taoyy@taoyy-PC:~/Desktop$ echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

taoyy@taoyy-PC:~/Desktop$ sudo apt-get update
命中:1 https://community-packages.deepin.com/beige beige InRelease
命中:2 https://community-packages.deepin.com/driver driver InRelease                         
命中:4 http://packages.microsoft.com/repos/code stable InRelease                             
命中:5 https://pro-driver-packages.uniontech.com eagle InRelease                             
命中:3 https://home-store-img.uniontech.com/230220151536620/appstorev23 beige InRelease
忽略:6 https://download.docker.com/linux/ubuntu beige InRelease
错误:7 https://download.docker.com/linux/ubuntu beige Release
  404  Not Found [IP: 13.224.167.90 443]
正在读取软件包列表... 完成
E: 仓库 “https://download.docker.com/linux/ubuntu beige Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
taoyy@taoyy-PC:~/Desktop$ sudo apt-get install docker-ce docker-ce-cli containerd.io
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成     
没有可用的软件包 docker-ce,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到

E: 软件包 docker-ce 没有可安装候选
E: 无法定位软件包 docker-ce-cli
E: 无法定位软件包 containerd.io
E: 无法按照 glob ‘containerd.io’ 找到任何软件包
E: 无法按照正则表达式 containerd.io 找到任何软件包
taoyy@taoyy-PC:~/Desktop$ apt-cache madison docker-ce
taoyy@taoyy-PC:~/Desktop$ wget -qO- - https://jihulab.com/jetsung/devenv/-/raw/main/sh/docker.sh | sudo bash

# Executing docker install script, commit: 66474034547a96caa0a25be56051ff8b726a1b28

+ sh -c 'apt-get update -qq >/dev/null'
E: 仓库 “https://download.docker.com/linux/ubuntu beige Release” 没有 Release 文件。
Failed to restart docker.service: Unit docker.service not found.
main:行45: docker:未找到命令
taoyy@taoyy-PC:~/Desktop$ 
taoyy@taoyy-PC:~/Desktop$ wget -qO- - https://jihulab.com/jetsung/devenv/-/raw/main/sh/docker.sh | sudo bash
# Executing docker install script, commit: 66474034547a96caa0a25be56051ff8b726a1b28
+ sh -c 'apt-get update -qq >/dev/null'
E: 仓库 “https://download.docker.com/linux/ubuntu beige Release” 没有 Release 文件。
Failed to restart docker.service: Unit docker.service not found.
main:行45: docker:未找到命令
taoyy@taoyy-PC:~/Desktop$ apt-cache madison docker-cetaoyy@taoyy-PC:~/Desktop$ sudo apt-get install docker-ce docker-ce-cli containerd.io正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成     
没有可用的软件包 docker-ce,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到

E: 软件包 docker-ce 没有可安装候选
E: 无法定位软件包 docker-ce-cli
E: 无法定位软件包 containerd.io
E: 无法按照 glob ‘containerd.io’ 找到任何软件包
E: 无法按照正则表达式 containerd.io 找到任何软件包

Reply Favorite View the author
All Replies
fuuko
deepin
2023-02-21 16:38
#1

换V20或者自己拉docker官方的源ok

Reply View the author
Jokul
deepin
2023-02-21 17:01
#2

用sudo apt search docker 搜索一下源内是否有docker

Reply View the author
touchzen
deepin
2023-02-21 18:06
#3

安装 Docker 的方式-论坛-深度科技 (deepin.org) 我参考的这个方法,没有问题

Reply View the author
taoyy528
deepin
2023-02-21 20:08
#4
Jokul

用sudo apt search docker 搜索一下源内是否有docker

taoyy@taoyy-PC:~/Desktop$ sudo apt search docker
请输入密码:
验证成功
正在排序... 完成
全文搜索... 完成
debootstick/未知 2.5 amd64
Turn a chroot environment into a bootable image

golang-github-docker-spdystream-dev/未知,未知 0.2.0-1 all
multiplexed stream library using spdy

j2cli/未知,未知 0.3.12b-3 all
Command line tool for templating in shell-scripts, leveraging

libcib27/未知 2.1.1-2 amd64
cluster resource manager CIB library

libcrmcluster29/未知 2.1.1-2 amd64
cluster resource manager cluster library

libcrmcommon34/未知 2.1.1-2 amd64
cluster resource manager common library

libcrmservice28/未知 2.1.1-2 amd64
cluster resource manager service library

liblrmd28/未知 2.1.1-2 amd64
cluster resource manager LRMD library

libnss-docker/未知 0.02-1 amd64
nss module for finding Docker containers

libnss-docker-dbgsym/未知 0.02-1 amd64
debug symbols for libnss-docker

libpacemaker1/未知 2.1.1-2 amd64
cluster resource manager utility library

libpe-rules26/未知 2.1.1-2 amd64
cluster resource manager Policy Engine rules library

libpe-status28/未知 2.1.1-2 amd64
cluster resource manager Policy Engine status library

libstonithd26/未知 2.1.1-2 amd64
cluster resource manager STONITH daemon library

pacemaker/未知 2.1.1-2 amd64
cluster resource manager

pacemaker-cli-utils/未知 2.1.1-2 amd64
cluster resource manager command line utilities

pacemaker-common/未知,未知 2.1.1-2 all
cluster resource manager common files

pacemaker-dev/未知 2.1.1-2 amd64
cluster resource manager development

pacemaker-doc/未知,未知 2.1.1-2 all
cluster resource manager HTML documentation

pacemaker-remote/未知 2.1.1-2 amd64
cluster resource manager *** daemon for remote nodes

pacemaker-resource-agents/未知,未知 2.1.1-2 all
cluster resource manager general resource agents

python-pydata-sphinx-theme-doc/未知,未知 0.7.1-2 all
documentation for the pydata-sphinx-theme Python library

python3-pydata-sphinx-theme/未知,未知 0.7.1-2 all
bootstrap-based Sphinx theme from the PyData community

resource-agents/未知 1:4.7.0-1 amd64
Cluster Resource Agents

vim-syntastic/未知,未知 3.10.0-2 all
Syntax checking hacks for vim

whalebuilder/未知,未知 0.8 all
Debian package builder using Docker
Reply View the author
taoyy528
deepin
2023-02-21 20:22
#5
touchzen

安装 Docker 的方式-论坛-深度科技 (deepin.org) 我参考的这个方法,没有问题

试了,也是不行的,去妥协了,回到20.8了

Reply View the author
爱开发
deepin
2023-02-21 20:58
#6
taoyy528

试了,也是不行的,去妥协了,回到20.8了

你不贴流程出来再看看?deepin基于debian12的…

Reply View the author
q77190858
deepin
2023-02-21 23:37
#7

就用docker.io呗,省事

Reply View the author
Jokul
deepin
2023-02-22 00:24
#8
taoyy528
taoyy@taoyy-PC:~/Desktop$ sudo apt search docker
请输入密码:
验证成功
正在排序... 完成
全文搜索... 完成
debootstick/未知 2.5 amd64
Turn a chroot environment into a bootable image

golang-github-docker-spdystream-dev/未知,未知 0.2.0-1 all
multiplexed stream library using spdy

j2cli/未知,未知 0.3.12b-3 all
Command line tool for templating in shell-scripts, leveraging

libcib27/未知 2.1.1-2 amd64
cluster resource manager CIB library

libcrmcluster29/未知 2.1.1-2 amd64
cluster resource manager cluster library

libcrmcommon34/未知 2.1.1-2 amd64
cluster resource manager common library

libcrmservice28/未知 2.1.1-2 amd64
cluster resource manager service library

liblrmd28/未知 2.1.1-2 amd64
cluster resource manager LRMD library

libnss-docker/未知 0.02-1 amd64
nss module for finding Docker containers

libnss-docker-dbgsym/未知 0.02-1 amd64
debug symbols for libnss-docker

libpacemaker1/未知 2.1.1-2 amd64
cluster resource manager utility library

libpe-rules26/未知 2.1.1-2 amd64
cluster resource manager Policy Engine rules library

libpe-status28/未知 2.1.1-2 amd64
cluster resource manager Policy Engine status library

libstonithd26/未知 2.1.1-2 amd64
cluster resource manager STONITH daemon library

pacemaker/未知 2.1.1-2 amd64
cluster resource manager

pacemaker-cli-utils/未知 2.1.1-2 amd64
cluster resource manager command line utilities

pacemaker-common/未知,未知 2.1.1-2 all
cluster resource manager common files

pacemaker-dev/未知 2.1.1-2 amd64
cluster resource manager development

pacemaker-doc/未知,未知 2.1.1-2 all
cluster resource manager HTML documentation

pacemaker-remote/未知 2.1.1-2 amd64
cluster resource manager *** daemon for remote nodes

pacemaker-resource-agents/未知,未知 2.1.1-2 all
cluster resource manager general resource agents

python-pydata-sphinx-theme-doc/未知,未知 0.7.1-2 all
documentation for the pydata-sphinx-theme Python library

python3-pydata-sphinx-theme/未知,未知 0.7.1-2 all
bootstrap-based Sphinx theme from the PyData community

resource-agents/未知 1:4.7.0-1 amd64
Cluster Resource Agents

vim-syntastic/未知,未知 3.10.0-2 all
Syntax checking hacks for vim

whalebuilder/未知,未知 0.8 all
Debian package builder using Docker

看日志没有docker,你的第三方源没有添加成功

Reply View the author
132******59
deepin
2023-02-22 18:31
#9
taoyy528

试了,也是不行的,去妥协了,回到20.8了

我最新版的V23,docker今天安装成功了

就是用的清华源,使用了debian的方式

https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/

Reply View the author
Comments
念古
2023-02-23 11:21
uos 22.0版本确实可以安装成功,而且速度很快
HoneyGIFT
deepin
2023-02-27 18:18
#10

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

Reply View the author
归灵祈昱
deepin
2024-05-06 20:45
#11
HoneyGIFT

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

管用!一行解决

Reply View the author