AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1207546
Accepted
Pompey Magnus
Pompey Magnus
Asked: 2020-02-03 05:28:21 +0800 CST2020-02-03 05:28:21 +0800 CST 2020-02-03 05:28:21 +0800 CST

包 docker-ce 不可用,但被另一个包引用。eoan 19.10 [重复]

  • 772
这个问题在这里已经有了答案:
适用于 Ubuntu 19.10 的 Docker ppa 包 3 个答案
2年前关闭。

我之前在 Ubuntu 上安装过几次 docker。不知道为什么这现在不起作用。现在似乎有一个 eoan 的版本。我的输出如下。

joe@hpd:~$ sudo apt-get remove docker docker-engine docker.io containerd runc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'docker-engine' is not installed, so not removed
Package 'containerd' is not installed, so not removed
Package 'docker' is not installed, so not removed
Package 'docker.io' is not installed, so not removed
Package 'runc' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
joe@hpd:~$ sudo apt-get update
Hit:1 http://prerelease.keybase.io/deb stable InRelease
Hit:2 https://updates.signal.org/desktop/apt xenial InRelease                                                                              
Hit:3 http://us.archive.ubuntu.com/ubuntu eoan InRelease                                                                                   
Hit:4 https://download.docker.com/linux/ubuntu eoan InRelease                                                                              
Get:5 http://us.archive.ubuntu.com/ubuntu eoan-updates InRelease [97.5 kB]                                                                 
Hit:6 http://packages.microsoft.com/repos/vscode stable InRelease                                                                          
Get:7 http://us.archive.ubuntu.com/ubuntu eoan-backports InRelease [88.8 kB]                                                               
Get:8 http://security.ubuntu.com/ubuntu eoan-security InRelease [97.5 kB]                                     
Hit:9 https://packages.microsoft.com/repos/azure-cli eoan InRelease                                                        
Hit:10 https://packages.microsoft.com/ubuntu/19.04/prod disco InRelease
Hit:11 https://packages.microsoft.com/repos/ms-teams stable InRelease
Fetched 284 kB in 1s (324 kB/s)
Reading package lists... Done
joe@hpd:~$ sudo apt-get install \
>     apt-transport-https \
>     ca-certificates \
>     curl \
>     gnupg-agent \
>     software-properties-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ca-certificates is already the newest version (20190110).
curl is already the newest version (7.65.3-1ubuntu3).
software-properties-common is already the newest version (0.98.5).
apt-transport-https is already the newest version (1.9.4).
gnupg-agent is already the newest version (2.2.12-1ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
jgreenaw@hpd:~$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
OK
joe@hpd:~$ sudo apt-key fingerprint 0EBFCD88
pub   rsa4096 2017-02-22 [SCEA]
      9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
uid           [ unknown] Docker Release (CE deb) <[email protected]>
sub   rsa4096 2017-02-22 [S]

joe@hpd:~$ sudo add-apt-repository \
>    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
>    $(lsb_release -cs) \
>    stable"
Hit:1 http://prerelease.keybase.io/deb stable InRelease
Hit:2 https://download.docker.com/linux/ubuntu eoan InRelease                                                                              
Hit:3 https://updates.signal.org/desktop/apt xenial InRelease                                                                              
Hit:4 http://us.archive.ubuntu.com/ubuntu eoan InRelease                                                                                   
Get:5 http://us.archive.ubuntu.com/ubuntu eoan-updates InRelease [97.5 kB]                                                                 
Hit:6 http://packages.microsoft.com/repos/vscode stable InRelease                                                                          
Get:7 http://us.archive.ubuntu.com/ubuntu eoan-backports InRelease [88.8 kB]                                                               
Get:8 http://security.ubuntu.com/ubuntu eoan-security InRelease [97.5 kB]                                      
Hit:9 https://packages.microsoft.com/repos/azure-cli eoan InRelease                                                        
Hit:10 https://packages.microsoft.com/ubuntu/19.04/prod disco InRelease
Hit:11 https://packages.microsoft.com/repos/ms-teams stable InRelease
Fetched 284 kB in 1s (330 kB/s)
Reading package lists... Done
jgreenaw@hpd:~$ sudo apt-get update
Hit:1 http://prerelease.keybase.io/deb stable InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu eoan InRelease                                                                                   
Hit:3 https://download.docker.com/linux/ubuntu eoan InRelease                                                                              
Get:4 http://us.archive.ubuntu.com/ubuntu eoan-updates InRelease [97.5 kB]                                                                 
Hit:5 https://updates.signal.org/desktop/apt xenial InRelease                                                                              
Get:6 http://us.archive.ubuntu.com/ubuntu eoan-backports InRelease [88.8 kB]                                                               
Hit:7 http://packages.microsoft.com/repos/vscode stable InRelease                                                        
Get:8 http://security.ubuntu.com/ubuntu eoan-security InRelease [97.5 kB]                                                
Hit:9 https://packages.microsoft.com/repos/azure-cli eoan InRelease                      
Hit:10 https://packages.microsoft.com/ubuntu/19.04/prod disco InRelease
Hit:11 https://packages.microsoft.com/repos/ms-teams stable InRelease
Fetched 284 kB in 1s (375 kB/s)
Reading package lists... Done
joe@hpd:~$ sudo apt-get install docker-ce docker-ce-cli containerd.io
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'docker-ce' has no installation candidate
E: Unable to locate package docker-ce-cli
E: Unable to locate package containerd.io
E: Couldn't find any package by glob 'containerd.io'
E: Couldn't find any package by regex 'containerd.io'
package-management apt docker
  • 1 1 个回答
  • 11765 Views

1 个回答

  • Voted
  1. Best Answer
    omer
    2020-02-03T07:07:30+08:002020-02-03T07:07:30+08:00

    首先,在官方文档中,目前还没有提到eoandist 。其次,根据我的调查(分发存储库)
    ,没有可用于分发的稳定版 docker 。eoan

    因此,您可以尝试以下方法:

    来自官方文档:

    1. 使用以下命令设置稳定存储库。要添加 nightly 或 test 存储库,请在以下命令中的单词 stable 之后添加单词 nightly 或 test(或两者)。了解夜间和测试频道。

    因此,使用nightly通道而不是stable

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

    祝你好运!

    • 3

相关问题

  • 如何从命令行仅安装安全更新?关于如何管理更新的一些提示

  • 如何从命令行判断机器是否需要重新启动?

  • 有没有办法重置所有包/源并从头开始?

  • 如何回滚到 PHP 5.2?

  • 包管理器之间有什么区别?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve