[SOLVED] nvidia errors during driver update
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[SOLVED] nvidia errors during driver update
Hi,
For some time now I have issues with nvidia-driver-390, tried reverting to nvidia-340, or switching to open-source ones but in each case getting errors.
Currently logging in to rendering in software mode.
Suggested on similar topic - Safe Boot is disabled on my PC.
Error examples below, for full list please see the attached text file:
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /tmp/apt-dpkg-install-JMcCgJ/43-libnvidia-gl-390_390.77-0ubuntu0.18.04.1_i386.deb (--unpack):
new libnvidia-gl-390:i386 package pre-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of nvidia-driver-390:
nvidia-driver-390 depends on libnvidia-gl-390 (= 390.77-0ubuntu0.18.04.1); however:
Package libnvidia-gl-390:amd64 is not installed.
dpkg: error processing package nvidia-driver-390 (--configure):
dependency problems - leaving unconfigured
Any suggestions greatly appreciated.
For some time now I have issues with nvidia-driver-390, tried reverting to nvidia-340, or switching to open-source ones but in each case getting errors.
Currently logging in to rendering in software mode.
Suggested on similar topic - Safe Boot is disabled on my PC.
Error examples below, for full list please see the attached text file:
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /tmp/apt-dpkg-install-JMcCgJ/43-libnvidia-gl-390_390.77-0ubuntu0.18.04.1_i386.deb (--unpack):
new libnvidia-gl-390:i386 package pre-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of nvidia-driver-390:
nvidia-driver-390 depends on libnvidia-gl-390 (= 390.77-0ubuntu0.18.04.1); however:
Package libnvidia-gl-390:amd64 is not installed.
dpkg: error processing package nvidia-driver-390 (--configure):
dependency problems - leaving unconfigured
Any suggestions greatly appreciated.
Last edited by drqxr on Tue Nov 20, 2018 1:03 pm, edited 1 time in total.
Re: nvidia errors during driver update
delete everything and start again,
then run
apt purge nvidia-*
then run
dkms status
to see what you have reboot and install one driver from the driver managerRe: nvidia errors during driver update
Thanks for the suggestion.
Did it:
Then got this error:
Tried but failed to:
Then I found similar issue on Ubuntu forums, so I tried that solution:
After that I was able to:
Then rebooted my system and no errors also no "Rendering in software mode" message, so I am assuming it is fixed.
Did it:
Code: Select all
sudo apt purge *nvidia*
sudo apt autoremove
Code: Select all
The following packages have unmet dependencies.
libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not going to be installed
libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not going to be installed
nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.77-0ubuntu0.18.04.1) but it is not going to be installed
Recommends: libnvidia-gl-390:i386 (= 390.77-0ubuntu0.18.04.1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Code: Select all
sudo apt-get install -f
Code: Select all
sudo su
for FILE in $(dpkg-divert --list | grep nvidia-340 | awk '{print $3}'); do dpkg-divert --remove $FILE; done
exit
Code: Select all
sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade
Re: [SOLVED] nvidia errors during driver update
what does
dkms status
say now? does your nvidia-settings
work? or are you on nouveau now?Re: [SOLVED] nvidia errors during driver update
Thanks for checking trytip, yes my nvidia settings are working fine, and this is the dkms status:
Code: Select all
nvidia, 390.77, 4.15.0-39-generic, x86_64: installed
Re: [SOLVED] nvidia errors during driver update
https://launchpad.net/~graphics-drivers ... ubuntu/ppa timeshift your system and test out the new driver updates. they install with no issue for me in mint 17.3 and mint19
Re: [SOLVED] nvidia errors during driver update
sudo apt purge nvidia-*
sudo apt autoremove
installing of nvidia-driver-430 SOLVED by above command.
removed error below (believe the problem is nvidia-driver-390 still existed)
he following packages have unmet dependencies:
nvidia-driver-430 : Depends: libnvidia-gl-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-dkms-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-kernel-source-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-compute-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-compute-utils-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-decode-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-encode-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-utils-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-ifr1-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Recommends: libnvidia-compute-430:i386 (= 430.40-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-decode-430:i386 (= 430.40-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-encode-430:i386 (= 430.40-0ubuntu0~gpu18.04.1)
E: Unable to correct problems, you have held broken packages.
sudo apt autoremove
installing of nvidia-driver-430 SOLVED by above command.
removed error below (believe the problem is nvidia-driver-390 still existed)
he following packages have unmet dependencies:
nvidia-driver-430 : Depends: libnvidia-gl-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-dkms-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-kernel-source-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-compute-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-compute-utils-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-decode-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-encode-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-utils-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-ifr1-430 (= 430.40-0ubuntu0~gpu18.04.1) but it is not going to be installed
Recommends: libnvidia-compute-430:i386 (= 430.40-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-decode-430:i386 (= 430.40-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-encode-430:i386 (= 430.40-0ubuntu0~gpu18.04.1)
E: Unable to correct problems, you have held broken packages.
Re: [SOLVED] nvidia errors during driver update
I have the same issue on ubuntu. Tried following your answer above and here are the errors I got:
sudo apt purge *nvidia*...
The following packages have unmet dependencies.
libnvidia-ifr1-440:i386 : Depends: libnvidia-gl-440:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
libnvidia-ifr1-440 : Depends: libnvidia-gl-440 but it is not installed
libnvidia-ifr1-440:i386 : Depends: libnvidia-gl-440:i386 but it is not installed
nvidia-driver-440 : Depends: libnvidia-gl-440 (= 440.59-0ubuntu0.18.04.1) but it is not installed
Recommends: libnvidia-gl-440:i386 (= 440.59-0ubuntu0.18.04.1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
How do I go about fixing this?
sudo apt purge *nvidia*...
The following packages have unmet dependencies.
libnvidia-ifr1-440:i386 : Depends: libnvidia-gl-440:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
libnvidia-ifr1-440 : Depends: libnvidia-gl-440 but it is not installed
libnvidia-ifr1-440:i386 : Depends: libnvidia-gl-440:i386 but it is not installed
nvidia-driver-440 : Depends: libnvidia-gl-440 (= 440.59-0ubuntu0.18.04.1) but it is not installed
Recommends: libnvidia-gl-440:i386 (= 440.59-0ubuntu0.18.04.1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
How do I go about fixing this?
Re: [SOLVED] nvidia errors during driver update
This is in response to Zik_t about the Nvidia-440 dependency error:
I had the Exact Same problem so i tried the code above but changed the grep nvidia-340 to grep nvidia-440 and it worked.
Copy and Paste each code line one by one into Terminal:
sudo su
(enter root password)
for FILE in $(dpkg-divert --list | grep nvidia-440 | awk '{print $3}'); do dpkg-divert --remove $FILE; done
(when code is finished working type: exit)
After that the system can be updated using:
sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade
Then finally the system can be cleaned using:
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
Using an Nvidia GeForce GT 730 graphics card in a Dell R410 server. After the correction the system runs better and Compiz Desktop Cube rotates better without any flicker.
I had the Exact Same problem so i tried the code above but changed the grep nvidia-340 to grep nvidia-440 and it worked.
Copy and Paste each code line one by one into Terminal:
sudo su
(enter root password)
for FILE in $(dpkg-divert --list | grep nvidia-440 | awk '{print $3}'); do dpkg-divert --remove $FILE; done
(when code is finished working type: exit)
After that the system can be updated using:
sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade
Then finally the system can be cleaned using:
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
Using an Nvidia GeForce GT 730 graphics card in a Dell R410 server. After the correction the system runs better and Compiz Desktop Cube rotates better without any flicker.
Re: [SOLVED] nvidia errors during driver update
if you have issues with nvidia this is an old thread and solved. you need to open your own thread and post the proper information of your system and problem you need help with. and if you use this thread then by all means read all the posts and codes.