dkpg “diversion” error after trying to install nvidia-340 [duplicate]
This question already has an answer here:
dpkg-divert: error: rename involves overwriting error after upgrading from 16.04 to 16.10
1 answer
I have a Dell with a Core I5 and a GeForce820M.
After upgrading to 18.04 LTS I tried to upgrade the nvidia drivers by running
sudo apt-get install nvidia-340
which is the recommended driver for my GPU.
The problem is the installation failed, I didn't record the fail reasons and now any dpkg
or apt-get
commands I try to run say that I should run
sudo dpkg --configure -a
I tried running that but it kept getting stuck at
Building initial module for 4.15.0-23-generic
Finally I managed to complete it, but when I tried to install the nvidia-340 package again I got an error:
Preparing to unpack .../nvidia-340_340.106-0ubuntu3_amd64.deb ...
Adding 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg-divert: error: rename involves overwriting '/usr/lib/x86_64-linux-gnu/libGL.so.1.distrib' with
different file '/usr/lib/x86_64-linux-gnu/libGL.so.1', not allowed
dpkg: error processing archive /var/cache/apt/archives/nvidia-340_340.106-0ubuntu3_amd64.deb (--unpack):
new nvidia-340 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-340_340.106-0ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
drivers apt nvidia dpkg 18.04
marked as duplicate by karel, Eric Carvalho, Fabby, Zanna, Thomas Dec 16 at 10:58
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
dpkg-divert: error: rename involves overwriting error after upgrading from 16.04 to 16.10
1 answer
I have a Dell with a Core I5 and a GeForce820M.
After upgrading to 18.04 LTS I tried to upgrade the nvidia drivers by running
sudo apt-get install nvidia-340
which is the recommended driver for my GPU.
The problem is the installation failed, I didn't record the fail reasons and now any dpkg
or apt-get
commands I try to run say that I should run
sudo dpkg --configure -a
I tried running that but it kept getting stuck at
Building initial module for 4.15.0-23-generic
Finally I managed to complete it, but when I tried to install the nvidia-340 package again I got an error:
Preparing to unpack .../nvidia-340_340.106-0ubuntu3_amd64.deb ...
Adding 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg-divert: error: rename involves overwriting '/usr/lib/x86_64-linux-gnu/libGL.so.1.distrib' with
different file '/usr/lib/x86_64-linux-gnu/libGL.so.1', not allowed
dpkg: error processing archive /var/cache/apt/archives/nvidia-340_340.106-0ubuntu3_amd64.deb (--unpack):
new nvidia-340 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-340_340.106-0ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
drivers apt nvidia dpkg 18.04
marked as duplicate by karel, Eric Carvalho, Fabby, Zanna, Thomas Dec 16 at 10:58
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
dpkg-divert: error: rename involves overwriting error after upgrading from 16.04 to 16.10
1 answer
I have a Dell with a Core I5 and a GeForce820M.
After upgrading to 18.04 LTS I tried to upgrade the nvidia drivers by running
sudo apt-get install nvidia-340
which is the recommended driver for my GPU.
The problem is the installation failed, I didn't record the fail reasons and now any dpkg
or apt-get
commands I try to run say that I should run
sudo dpkg --configure -a
I tried running that but it kept getting stuck at
Building initial module for 4.15.0-23-generic
Finally I managed to complete it, but when I tried to install the nvidia-340 package again I got an error:
Preparing to unpack .../nvidia-340_340.106-0ubuntu3_amd64.deb ...
Adding 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg-divert: error: rename involves overwriting '/usr/lib/x86_64-linux-gnu/libGL.so.1.distrib' with
different file '/usr/lib/x86_64-linux-gnu/libGL.so.1', not allowed
dpkg: error processing archive /var/cache/apt/archives/nvidia-340_340.106-0ubuntu3_amd64.deb (--unpack):
new nvidia-340 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-340_340.106-0ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
drivers apt nvidia dpkg 18.04
This question already has an answer here:
dpkg-divert: error: rename involves overwriting error after upgrading from 16.04 to 16.10
1 answer
I have a Dell with a Core I5 and a GeForce820M.
After upgrading to 18.04 LTS I tried to upgrade the nvidia drivers by running
sudo apt-get install nvidia-340
which is the recommended driver for my GPU.
The problem is the installation failed, I didn't record the fail reasons and now any dpkg
or apt-get
commands I try to run say that I should run
sudo dpkg --configure -a
I tried running that but it kept getting stuck at
Building initial module for 4.15.0-23-generic
Finally I managed to complete it, but when I tried to install the nvidia-340 package again I got an error:
Preparing to unpack .../nvidia-340_340.106-0ubuntu3_amd64.deb ...
Adding 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg-divert: error: rename involves overwriting '/usr/lib/x86_64-linux-gnu/libGL.so.1.distrib' with
different file '/usr/lib/x86_64-linux-gnu/libGL.so.1', not allowed
dpkg: error processing archive /var/cache/apt/archives/nvidia-340_340.106-0ubuntu3_amd64.deb (--unpack):
new nvidia-340 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-340_340.106-0ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
This question already has an answer here:
dpkg-divert: error: rename involves overwriting error after upgrading from 16.04 to 16.10
1 answer
drivers apt nvidia dpkg 18.04
drivers apt nvidia dpkg 18.04
edited Dec 15 at 19:43
Zanna
50k13131238
50k13131238
asked Jun 15 at 13:36
João Vitor Ignácio Costa
64
64
marked as duplicate by karel, Eric Carvalho, Fabby, Zanna, Thomas Dec 16 at 10:58
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by karel, Eric Carvalho, Fabby, Zanna, Thomas Dec 16 at 10:58
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Had the exact same hang onthe exact same kernel while trying to install nvidia-390.
Following this thread it seems like the install is waiting for a password, so I blind-typed it several times and the installation continued.
You should probably purge the package you installed and try to re-install it. Installing as root user would eliminate the need to type the password.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Had the exact same hang onthe exact same kernel while trying to install nvidia-390.
Following this thread it seems like the install is waiting for a password, so I blind-typed it several times and the installation continued.
You should probably purge the package you installed and try to re-install it. Installing as root user would eliminate the need to type the password.
add a comment |
Had the exact same hang onthe exact same kernel while trying to install nvidia-390.
Following this thread it seems like the install is waiting for a password, so I blind-typed it several times and the installation continued.
You should probably purge the package you installed and try to re-install it. Installing as root user would eliminate the need to type the password.
add a comment |
Had the exact same hang onthe exact same kernel while trying to install nvidia-390.
Following this thread it seems like the install is waiting for a password, so I blind-typed it several times and the installation continued.
You should probably purge the package you installed and try to re-install it. Installing as root user would eliminate the need to type the password.
Had the exact same hang onthe exact same kernel while trying to install nvidia-390.
Following this thread it seems like the install is waiting for a password, so I blind-typed it several times and the installation continued.
You should probably purge the package you installed and try to re-install it. Installing as root user would eliminate the need to type the password.
answered Jun 17 at 9:21
AVIDeveloper
1164
1164
add a comment |
add a comment |