nvidia-cuda-dev conflicts with nvidia-experimental-*
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-cuda-toolkit (Debian) |
Fix Released
|
Unknown
|
|||
nvidia-cuda-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[SRU] The debdiff attached to comment #5 backports the required changes from nvidia-cuda-toolkit 5.0.35-4 in Raring.
[IMPACT]
Users with only nvidia-
Users with only nvidia-
[Test Cases]
Install nvidia-
[Regression Potential]
Minimal: the changes only affect the installation of nvidia-cuda-toolkit by allowing additional packages to satisfy its dependencies.
Original bug description:
On Quantal x86_64, you can't install nvidia-cuda-dev if you've got the nvidia-experimental drivers installed, which are the only supported drivers for things like the Steam beta:
$ sudo apt-get install nvidia-cuda-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libcublas4 libcudart4 libcufft4 libcuinj4 libcurand4 libcusparse4 libnpp4 libthrust-dev libvdpau-dev nvidia-current
Suggested packages:
nvidia-
The following packages will be REMOVED:
nvidia-
The following NEW packages will be installed:
libcublas4 libcudart4 libcufft4 libcuinj4 libcurand4 libcusparse4 libnpp4 libthrust-dev libvdpau-dev nvidia-cuda-dev nvidia-current
0 upgraded, 11 newly installed, 1 to remove and 0 not upgraded.
Need to get 146 MB of archives.
After this operation, 427 MB of additional disk space will be used.
Do you want to continue [Y/n]? n
There's no reason this package incompatibility exists, CUDA operations should be available with any version of the nvidia binary drivers.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: nvidia-cuda-dev (not installed)
ProcVersionSign
Uname: Linux 3.5.0-19-generic x86_64
NonfreeKernelMo
ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
Date: Wed Dec 19 11:00:00 2012
MarkForUpload: True
SourcePackage: nvidia-cuda-toolkit
UpgradeStatus: Upgraded to quantal on 2012-10-23 (56 days ago)
Related branches
Changed in nvidia-cuda-toolkit (Debian): | |
status: | Unknown → New |
Changed in nvidia-cuda-toolkit (Debian): | |
status: | New → Fix Released |
description: | updated |
Changed in nvidia-cuda-toolkit (Ubuntu Precise): | |
status: | New → In Progress |
Changed in nvidia-cuda-toolkit (Ubuntu Precise): | |
status: | In Progress → New |
Changed in nvidia-cuda-toolkit (Ubuntu Quantal): | |
status: | New → In Progress |
Hi there
If anyone wants to work around this while waiting on the fix, as I needed to do, this is how I did it. What you would do is download the attached patches file to a folder that you create and run the set of commands below. Run the commands one by one in case something doesn't work.
Note the patches are not complete; they are only for a very specific proble - you need to edit them if e.g. you are using nvidia- experimental- 304.
Also, take care. If things are different on your system it may not work.
Regardses
Damien
sudo apt-get install build-essential fakeroot dpkg-dev ubuntu-dev-tools #possibly the last one is unnecessary
mkdir nvidia_cuda_fix #where we will be working
cd nvidia_cuda_fix #download the patch files to here - patches_ cuda_work_ with_310_ 1210.tar. gz
apt-get source nvidia-cuda-toolkit #get the source for the package - you will build it - this is the source with all the additional ubuntu/debian bits
tar -xvzvf patches_ cuda_work_ with_310_ 1210.tar. gz #unzip the patches I have provided in the attachment and which you downloaded
patch nvidia- cuda-toolkit_ 4.2.9-1ubuntu1. dsc nvidia- cuda-toolkit_ 4.2.9-1ubuntu1. dsc.patch. 20121220 #adds nvidia- experimental- 310 to list of dependencies
dpkg-source -x nvidia- cuda-toolkit_ 4.2.9-1ubuntu1. dsc # I am not sure what this does exactly... - extracts the source package - I think actually this is already done by apt-get, but anyway
cd nvidia- cuda-toolkit- 4.2.9/ #go to where things are going to be built
patch debian/control ../control. patch.20121220 #adds nvidia- experimental- 310 to list of dependencies
dpkg-buildpackage -rfakeroot -b #compile the stuff we are going to install
cd .. #it has put the deb files in the parent dir (our working dir)
sudo apt-get install gcc-4.4 g++-4.4 libthrust-dev opencl-headers # some random dependencies of the built packages - you may need more here and rerun the below line untill things work if dependencies weren't satisfied on your system
sudo dpkg --install *deb # install it and see it break