首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >默认情况下无法在Ubuntu18.04下安装nvidia-docker2 2

默认情况下无法在Ubuntu18.04下安装nvidia-docker2 2
EN

Stack Overflow用户
提问于 2019-06-12 15:17:27
回答 1查看 2.7K关注 0票数 1

1.问题或特征说明

无法在Ubuntu18.04下安装nvidia-docker2 2

2.复制问题的步骤

代码语言:javascript
复制
$ cat /etc/issue
Ubuntu 18.04.1 LTS \n \l

$ docker --version
Docker version 18.06.1-ce, build e68fc7a

$ sudo apt install nvidia-docker2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-docker2 : Depends: docker-ce (= 5:18.09.0~3-0~ubuntu-bionic) but it is not installable or
                           docker-ee (= 5:18.09.0~3-0~ubuntu-bionic) but it is not installable
E: Unable to correct problems, you have held broken packages.

$ uname -a
Linux zixia-desktop 4.15.0-42-generic #45-Ubuntu SMP Thu Nov 15 19:32:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-06-12 15:17:27

解决方案

删除默认的docker.io并从Docker官方存储库中安装docker。

脚本如下:

代码语言:javascript
复制
sudo apt-get remove docker docker-engine docker.io

sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88

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

sudo apt-get update
sudo apt-get install docker-ce
sudo apt-get install nvidia-docker2

https://github.com/NVIDIA/nvidia-docker/issues/887相关

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56565525

复制
相关文章

相似问题

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