package nvidia-340 (not installed) failed to install/upgrade: trying to overwrite '/usr/lib/x86_64-linux-gnu/libnvidia-ml.so', which is also in package libnvidia-compute-390:amd64 390.77-0ubuntu0.18.04.1

Bug #1807694 reported by Etienne
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-340 (Ubuntu)
New
Undecided
Unassigned

Bug Description

First of all, I installer the nvidia driver via this following repo: sudo add-apt-repository ppa:graphics-drivers/ppa

Then I got the error message attached in this report when I tried to install nvidia-cuda-toolkit.

So I tried to uninstall all nvidia:
sudo add-apt-repository --remove ppa:graphics-drivers/ppa
sudo apt update
ubuntu-drivers devices
Then I install the nvidia driver from the official repo of ubuntu like described in https://doc.ubuntu-fr.org/nvidia chapter 3.1.
Then I tried to install nvidia-cuda-toolkit again but I faced the same issue.

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: nvidia-340 (not installed)
ProcVersionSignature: Ubuntu 4.15.0-42.45-generic 4.15.18
Uname: Linux 4.15.0-42-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia
ApportVersion: 2.20.9-0ubuntu7.5
AptOrdering:
 nvidia-340:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
Date: Mon Dec 10 12:45:12 2018
DuplicateSignature:
 package:nvidia-340:(not installed)
 Unpacking nvidia-340 (340.107-0ubuntu0.18.04.1) ...
 dpkg: error processing archive /var/cache/apt/archives/nvidia-340_340.107-0ubuntu0.18.04.1_amd64.deb (--unpack):
  trying to overwrite '/usr/lib/x86_64-linux-gnu/libnvidia-ml.so', which is also in package libnvidia-compute-390:amd64 390.77-0ubuntu0.18.04.1
ErrorMessage: trying to overwrite '/usr/lib/x86_64-linux-gnu/libnvidia-ml.so', which is also in package libnvidia-compute-390:amd64 390.77-0ubuntu0.18.04.1
InstallationDate: Installed on 2018-12-06 (3 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
Python3Details: /usr/bin/python3.6, Python 3.6.7, python3-minimal, 3.6.7-1~18.04
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2.1
 apt 1.6.6
SourcePackage: nvidia-graphics-drivers-340
Title: package nvidia-340 (not installed) failed to install/upgrade: trying to overwrite '/usr/lib/x86_64-linux-gnu/libnvidia-ml.so', which is also in package libnvidia-compute-390:amd64 390.77-0ubuntu0.18.04.1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Etienne (ebraud) wrote :
Revision history for this message
Apport retracing service (apport) wrote : This bug is a duplicate

Thank you for taking the time to report this crash and helping to make this software better. This particular crash has already been reported and is a duplicate of bug #1798721, so is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

tags: removed: need-duplicate-check
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.