首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Docker安装错误:找不到Pop/groovy的发行模板

Docker安装错误:找不到Pop/groovy的发行模板
EN

Unix & Linux用户
提问于 2020-12-18 11:05:39
回答 1查看 873关注 0票数 0

我正试图在我的Pop_OS上安装Docker!

代码语言:javascript
复制
gustavoeklund in ~ ❯ lsb_release -a
No LSB modules are available.
Distributor ID: Pop
Description:    Pop!_OS 20.10
Release:    20.10
Codename:   groovy

当我运行以下命令时:

代码语言:javascript
复制
gustavoeklund in ~ ❯ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
gustavoeklund in ~ ❯ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

我得到了以下错误:

代码语言:javascript
复制
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 330, in <module>
    addaptrepo = AddAptRepository()
  File "/usr/bin/add-apt-repository", line 35, in __init__
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 91, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Pop/groovy
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2020-12-18 13:14:25

手动添加源(没有add-apt-repository):

代码语言:javascript
复制
echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu groovy stable" |sudo tee /etc/apt/sources.list.d/docker-ce.list
sudo apt update
sudo apt install docker-ce
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/625095

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档