New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install on Ubuntu 16.10 Yakkety - dependency issues #234

Closed
hammertimedk opened this Issue Oct 30, 2016 · 23 comments

Comments

Projects
None yet
@hammertimedk

hammertimedk commented Oct 30, 2016

Hi,

Installed Docker as per instructions here:

https://docs.docker.com/engine/installation/linux/ubuntulinux/

used the 16.04 repo, and Docker seems to run fine.

When installing nvidia-docker however, I get the following message:

dpkg -i /tmp/nvidia-docker*.deb && rm /tmp/nvidia-docker*.deb
Selecting previously unselected package nvidia-docker.
(Reading database ... 216533 files and directories currently installed.)
Preparing to unpack .../nvidia-docker_1.0.0.rc.3-1_amd64.deb ...
Unpacking nvidia-docker (1.0.0~rc.3-1) ...
dpkg: dependency problems prevent configuration of nvidia-docker:
 nvidia-docker depends on sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16); however:
  Package sysv-rc is not installed.
  Package file-rc is not installed.

dpkg: error processing package nvidia-docker (--install):
 dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 nvidia-docker
@Phyronnaz

This comment has been minimized.

Phyronnaz commented Oct 30, 2016

You need to install sysvinit-utils

@hammertimedk

This comment has been minimized.

hammertimedk commented Oct 30, 2016

Nope sorry, aptitude reports it's already the latest version:

# apt-get install sysvinit-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
sysvinit-utils is already the newest version (2.88dsf-59.8git1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
@Phyronnaz

This comment has been minimized.

Phyronnaz commented Oct 30, 2016

Try apt-get -f install
It should install the dependencies

@hammertimedk

This comment has been minimized.

hammertimedk commented Oct 31, 2016

That just prompts apt to remove the package ...

# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  nvidia-docker
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 14.0 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 216540 files and directories currently installed.)
Removing nvidia-docker (1.0.0~rc.3-1) ...
@flx42

This comment has been minimized.

Member

flx42 commented Oct 31, 2016

16.10 is not supported right now, but I believe that if you simply change this line to ubuntu:16.04, it should work. You can generate a package yourself with make deb. Let me know if that works.

@srmanikandasriram

This comment has been minimized.

srmanikandasriram commented Nov 4, 2016

@flx42 Thank you. I modified that line to ubuntu:16.10 and used make deb like you suggested and I was able to install nvidia-docker successfully.

@flx42 flx42 added the enhancement label Nov 7, 2016

@fbarilla

This comment has been minimized.

fbarilla commented Feb 22, 2017

@flx42 The 'this line' link is broken, which file has to be changed ?

@flx42

This comment has been minimized.

Member

flx42 commented Feb 23, 2017

@zixia

This comment has been minimized.

zixia commented Mar 4, 2017

@hammertimedk @flx42 Thanks for your question and your answer.

I followed your suggestion, built and installed successfully in my ubuntu desktop 16.10 box.

I zipped my file and uploaded it here, hope it can help others from clone&edit&docker&make works. :)

nvidia-docker_1.0.1-yakkety_amd64.deb.zip

@Tommy1011110

This comment has been minimized.

Tommy1011110 commented May 23, 2017

I have the same problem of the 1st post, but i didn't understand how to fix that..

@AwokeKnowing

This comment has been minimized.

AwokeKnowing commented Jul 1, 2017

I have same problem on ubuntu 17 but with the yakkety zip above I get

Job for nvidia-docker.service failed because the control process exited with error code.
See "systemctl status nvidia-docker.service" and "journalctl -xe" for details.
nvidia-docker.service couldn't start.

EDIT: OK, I fixed it by installing nvidia-modprobe first. Now the official .deb still didn't work but the above one did

@tycho01

This comment has been minimized.

tycho01 commented Oct 15, 2017

Same issue as @AwokeKnowing here, also Ubuntu 17.04, nvidia-modprobe already installed.

@rringham

This comment has been minimized.

rringham commented Oct 17, 2017

I have the same problem as the first post as well, but I don't understand enough about rebuilding deb files to fix this on my Ubuntu 17.04 setup. Could someone please explain what you need to do here?

@AwokeKnowing

This comment has been minimized.

AwokeKnowing commented Oct 17, 2017

@tycho01 @rringham I ended up just going with 16.04 (LTS). Everything is working fine. In one year 18.04 should be fully supported, so that's a year away. I do most everything dev-related in Docker anyways, so it shouldn't matter that much.

@3XX0

This comment has been minimized.

Member

3XX0 commented Nov 14, 2017

Closing, this should be fixed in 2.0/master

@3XX0 3XX0 closed this Nov 14, 2017

@heysemkaya

This comment has been minimized.

heysemkaya commented Jul 13, 2018

Hi, I suffer the same problem with Ubuntu 18.04 Bionic Beaver:

wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb
sudo dpkg -i /tmp/nvidia-docker*.deb
Selecting previously unselected package nvidia-docker.
(Reading database ... 211201 files and directories currently installed.)
Preparing to unpack .../nvidia-docker_1.0.1-1_amd64.deb ...
Unpacking nvidia-docker (1.0.1-1) ...
dpkg: dependency problems prevent configuration of nvidia-docker:
nvidia-docker depends on sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16); however:
Package sysv-rc is not installed.
Package file-rc is not installed.

dpkg: error processing package nvidia-docker (--install):
dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-20) ...
Errors were encountered while processing:
nvidia-docker

I checked the comments on these issues, tried to install sysvinit-utils but it didn't work out (already in its newest version). Is there a workaround? Or is Ubuntu 18.04 not supported at the moment?

@johnny06

This comment has been minimized.

johnny06 commented Jul 13, 2018

@heysemkaya

This comment has been minimized.

heysemkaya commented Jul 13, 2018

Thanks but how? See this:
sudo apt-get install sysvinit-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
sysvinit-utils is already the newest version (2.88dsf-59.10ubuntu1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
nvidia-docker : Depends: sysv-rc (>= 2.88dsf-24) but it is not installable or
file-rc (>= 0.8.16) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

@johnny06

This comment has been minimized.

johnny06 commented Jul 13, 2018

@heysemkaya

This comment has been minimized.

heysemkaya commented Jul 13, 2018

Here is what I get
sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
nvidia-docker
0 upgraded, 0 newly installed, 1 to remove and 78 not upgraded.
1 not fully installed or removed.
After this operation, 14.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 211208 files and directories currently installed.)
Removing nvidia-docker (1.0.1-1) ...

When I try to re install nvidia-docker I get the same error as above.

@flx42

This comment has been minimized.

Member

flx42 commented Jul 13, 2018

nvidia-docker v1 is not supported on ubuntu 18.04.

@heysemkaya

This comment has been minimized.

heysemkaya commented Jul 13, 2018

Thanks for the refreshing news. Is there a version that is supported?

@flx42

This comment has been minimized.

Member

flx42 commented Jul 13, 2018

Follow the instructions on the current README to get nvidia-docker v2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment