[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.
Locked
drqxr

[SOLVED] nvidia errors during driver update

Post by drqxr »

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.
Last edited by drqxr on Tue Nov 20, 2018 1:03 pm, edited 1 time in total.
User avatar
trytip
Level 14
Level 14
Posts: 5371
Joined: Tue Jul 05, 2016 1:20 pm

Re: nvidia errors during driver update

Post by trytip »

delete everything and start again,
apt purge nvidia-*
then run dkms status to see what you have reboot and install one driver from the driver manager
Image
drqxr

Re: nvidia errors during driver update

Post by drqxr »

Thanks for the suggestion.
Did it:

Code: Select all

sudo apt purge *nvidia*
sudo apt autoremove
Then got this error:

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).
Tried but failed to:

Code: Select all

sudo apt-get install -f
Then I found similar issue on Ubuntu forums, so I tried that solution:

Code: Select all

sudo su 
for FILE in $(dpkg-divert --list | grep nvidia-340 | awk '{print $3}'); do dpkg-divert --remove $FILE; done
exit
After that I was able to:

Code: Select all

sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade
Then rebooted my system and no errors also no "Rendering in software mode" message, so I am assuming it is fixed. :)
User avatar
trytip
Level 14
Level 14
Posts: 5371
Joined: Tue Jul 05, 2016 1:20 pm

Re: [SOLVED] nvidia errors during driver update

Post by trytip »

what does dkms status say now? does your nvidia-settings work? or are you on nouveau now?
Image
drqxr

Re: [SOLVED] nvidia errors during driver update

Post by drqxr »

trytip wrote: Tue Nov 20, 2018 7:13 pm what does dkms status say now? does your nvidia-settings work? or are you on nouveau now?
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
User avatar
trytip
Level 14
Level 14
Posts: 5371
Joined: Tue Jul 05, 2016 1:20 pm

Re: [SOLVED] nvidia errors during driver update

Post by trytip »

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
Image
coolau

Re: [SOLVED] nvidia errors during driver update

Post by coolau »

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.
Zik_t

Re: [SOLVED] nvidia errors during driver update

Post by Zik_t »

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?
SuperMan1981

Re: [SOLVED] nvidia errors during driver update

Post by SuperMan1981 »

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.
User avatar
trytip
Level 14
Level 14
Posts: 5371
Joined: Tue Jul 05, 2016 1:20 pm

Re: [SOLVED] nvidia errors during driver update

Post by trytip »

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.
Image
Locked

Return to “Graphics Cards & Monitors”