*** This bug is a duplicate of bug 1798721 *** https://bugs.launchpad.net/bugs/1798721
Public bug reported: 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) ** Affects: nvidia-graphics-drivers-340 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-package bionic package-conflict -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1807694 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1807694/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs