Aptitude Nvidia alternatives problem

If none of the more specific forums is the right place to ask

Aptitude Nvidia alternatives problem

Postby kerem » 2010-09-15 15:47

Hi

I am using Nvidia`s compiled drivers (gcc 4.1) for 8600GT on Sequeeze.

For some reason I keep getting the errors below in my aptitude`s log. I am not trying to install an Nvidia driver or something, I guess there is some issue somewhere that Aptitude constantly complains about this, anytime I do upgrades or install an app.

Image

thanks
kerem
 
Posts: 192
Joined: 2010-06-16 16:29

Re: Aptitude Nvidia alternatives problem

Postby schmidtbag » 2010-09-16 16:42

i've been getting the same issues too... its really kind of annoying. what i'd suggest you do is just download the drivers from the nvidia website. they're a LOT more up to date anyway. debian's drivers are like 196.xx, but the official drivers are over 250.xx.

the only problem is if the kernel, grub, xserver, or xorg update, you have to reinstall the drivers.
schmidtbag
 
Posts: 239
Joined: 2010-04-14 20:51
Location: MA

Re: Aptitude Nvidia alternatives problem

Postby kerem » 2010-09-16 16:52

schmidtbag wrote:i've been getting the same issues too... its really kind of annoying. what i'd suggest you do is just download the drivers from the nvidia website. they're a LOT more up to date anyway. debian's drivers are like 196.xx, but the official drivers are over 250.xx.

the only problem is if the kernel, grub, xserver, or xorg update, you have to reinstall the drivers.


Hi

I actually use the drivers from Nvidia, I did compile them already but that did not stop Aptitute from complaining about alternatives
kerem
 
Posts: 192
Joined: 2010-06-16 16:29

Re: Aptitude Nvidia alternatives problem

Postby MeanDean » 2010-09-16 16:59

yea....you broke the package management system

start by trying apt-get -f install
User avatar
MeanDean
 
Posts: 3953
Joined: 2007-09-01 01:14

Re: Aptitude Nvidia alternatives problem

Postby schmidtbag » 2010-09-16 17:04

you have to purge the drivers from synaptic. i believe i encountered some difficulty while trying to do this and honestly i don't remember how i did do it, but, you may not encounter that issue yourself
schmidtbag
 
Posts: 239
Joined: 2010-04-14 20:51
Location: MA

Re: Aptitude Nvidia alternatives problem

Postby kerem » 2010-09-16 17:13

MeanDean wrote:yea....you broke the package management system

start by trying apt-get -f install


This is what I get after "sudo apt-get -f install"
Code: Select all
debian:~$ sudo apt-get -f install
[sudo] password for ubuntum:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
warning, in file '/var/lib/dpkg/available' near line 9079 package 'djv':
 missing architecture
Setting up libgl1-nvidia-alternatives (195.36.31-3) ...
Leaving 'diversion of /usr/lib/libGL.so to /usr/lib/nvidia/diversions/libGL.so by libgl1-nvidia-alternatives'
Leaving 'diversion of /usr/lib/libGL.so.1 to /usr/lib/nvidia/diversions/libGL.so.1 by libgl1-nvidia-alternatives'
Leaving 'diversion of /usr/lib/libGL.so.1.2 to /usr/lib/nvidia/diversions/libGL.so.1.2 by libgl1-nvidia-alternatives'
Processing triggers for libgl1-nvidia-alternatives ...
update-alternatives: error: alternative path /usr/lib/nvidia/diversions/libGL.so.1 doesn't exist.
dpkg: error processing libgl1-nvidia-alternatives (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of libgl1-nvidia-glx:
 libgl1-nvidia-glx depends on libgl1-nvidia-alternatives; however:
  Package libgl1-nvidia-alternatives is not configured yet.
dpkg: error processing libgl1-nvidia-glx (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-glx:
 nvidia-glx depends on libgl1-nvidia-glx (= 195.36.31-3); however:
  Package libgl1-nvidia-glx is not configured yet.
dpkg: error processing nvidia-glx (--configure):
 dependency problems - leaving unconfigured
configured to not write apport reports
                                      configured to not write apport reports
                                                                            configured to not write apport reports
                                                                                                                  Errors were encountered while processing:
 libgl1-nvidia-alternatives
 libgl1-nvidia-glx
 nvidia-glx
N: Ignoring file 'opera.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Sub-process /usr/bin/dpkg returned an error code (1)
kerem
 
Posts: 192
Joined: 2010-06-16 16:29

Re: Aptitude Nvidia alternatives problem

Postby Jimmy Johnson » 2010-09-28 06:19

I was having the same problem, there is a bug report against the problem, it says to install `libgl1-mesa-glx' and then install nvidia-glx with no problem, I already had `libgl1-mesa-glx' installed so I reinstalled it and then nvidia-glx installed successfully. http://www.mail-archive.com/debian-bugs ... 18711.html
Regard,
Jimmy Johnson
Registered Linux User #380263
Registered Linux Computer #279395
http://www.nosoftwarepatents.com/
User avatar
Jimmy Johnson
 
Posts: 38
Joined: 2006-12-11 16:37
Location: Bakersfield, Calif.

Re: Aptitude Nvidia alternatives problem

Postby bugsbunny » 2010-09-28 15:38

Unless you have a specific reason not to I'd recommend going with the nvidia drivers currently in squeeze. The recent dkms versions make installation and upkeep very simple. I(n any case it sounds like the system things it has at least some of the nvidia (debian) driver packages partially installed. What's the output of
Code: Select all
aptitude search nvidia|egrep -v "^p   |^v   "


(Don't do anythhing until after you've posted the output. Cleaning it up may be a bit tricky since you already have drivers installed the nvidia way. Basically you need to uninstall those drivers, then clean up aptitude, then reinstall drivers, either via aptitude or usinf nvidia scripts.

Easiest way via aptitude is:
Code: Select all
aptitude -r install nvidia-kernel-dkms nvidia-settings
(The -r ensures that recommends are installed, in case you have that turned off). That will pull in everything you need.

If you relly need the newer nvidia drivers then you'll need to install the nvidia way, and you'll need to re-install whenever xorg or mesa gets updated.

In any case you need to get the current configuration cleaned up first.
User avatar
bugsbunny
 
Posts: 5355
Joined: 2008-07-06 17:04

Re: Aptitude Nvidia alternatives problem

Postby kerem » 2010-09-28 20:52

bugsbunny wrote:Unless you have a specific reason not to I'd recommend going with the nvidia drivers currently in squeeze. The recent dkms versions make installation and upkeep very simple. I(n any case it sounds like the system things it has at least some of the nvidia (debian) driver packages partially installed. What's the output of
Code: Select all
aptitude search nvidia|egrep -v "^p   |^v   "


(Don't do anythhing until after you've posted the output. Cleaning it up may be a bit tricky since you already have drivers installed the nvidia way. Basically you need to uninstall those drivers, then clean up aptitude, then reinstall drivers, either via aptitude or usinf nvidia scripts.



Hi

Here is the result

Code: Select all
C   libgl1-nvidia-alternatives      - simplifies replacing MESA libGL with GPU v
u   libgl1-nvidia-dev               - NVIDIA OpenGL development files
u   libgl1-nvidia-glx               - NVIDIA binary OpenGL libraries
i   libglx-nvidia-alternatives      - simplifies replacing Xorg module libglx.so
i   nvidia-kernel-common            - NVIDIA binary kernel module support files
i   nvidia-kernel-dkms              - NVIDIA binary kernel module DKMS source
i   nvidia-kernel-source            - NVIDIA binary kernel module source
i   nvidia-libvdpau-dev             - NVIDIA vdpau development files (transition
i   nvidia-libvdpau1                - NVIDIA vdpau libraries (transitional packa
i   nvidia-settings                 - Tool for configuring the NVIDIA graphics d
i A nvidia-vdpau-driver             - NVIDIA vdpau driver
i   nvidia-xconfig                  - X configuration tool for non-free NVIDIA d
kerem
 
Posts: 192
Joined: 2010-06-16 16:29

Re: Aptitude Nvidia alternatives problem

Postby bugsbunny » 2010-09-29 10:35

OK - you said you have the drivers installede via the nvidia script, however you also have the nvidia stuff installed from the repository. That doesn't work and will cause all sorts of problems. It's one or the other, not both - and before you install one you have to make sure the other is removed.

What I recommend
1) remove the nvidia script version. I think that the command is:
Code: Select all
# nvidia-installer --uninstall
, however it's been a while since I ran drivers via the nvidia script, so may remember incorrectly.

2) Remove all the Debian stuff
Code: Select all
# aptitude purge ~i~nnvidia


Reninstall using whichever method you prefer. If you install using the nvidia script you can always check the current install status to see if it needs to be re-installed:
Code: Select all
# nvidia-installer --sanity
User avatar
bugsbunny
 
Posts: 5355
Joined: 2008-07-06 17:04

Re: Aptitude Nvidia alternatives problem

Postby kerem » 2010-09-30 00:40

Hi

I did what you said

and here is the log after sudo aptitude install -f. I ran this after the 2 steps you have recommended that will remove both Nvidia drivers from Nvidia and from Debian Repo.

Not sure if this is good or bad.

Code: Select all
The following packages will be REMOVED: 
  diffstat{u} libgl1-nvidia-alternatives{a} quilt{u}
0 packages upgraded, 0 newly installed, 3 to remove and 66 not upgraded.
Need to get 0B of archives. After unpacking 1,126kB will be freed.
Do you want to continue? [Y/n/?] y
(Reading database ... 289313 files and directories currently installed.)
Removing libgl1-nvidia-alternatives ...
No diversion 'diversion of /usr/lib/libGL.so.1.2 to /usr/lib/nvidia/diversions/libGL.so.1.2 by libgl1-nvidia-alternatives', none removed.
Removing 'diversion of /usr/lib/libGL.so.1 to /usr/lib/nvidia/diversions/libGL.so.1 by libgl1-nvidia-alternatives'
dpkg-divert: rename involves overwriting `/usr/lib/libGL.so.1' with
  different file `/usr/lib/nvidia/diversions/libGL.so.1', not allowed
dpkg: error processing libgl1-nvidia-alternatives (--remove):
 subprocess installed post-removal script returned error exit status 2
configured to not write apport reports
                                      Removing quilt ...
Removing diffstat ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 removed doc-base file(s)...
Registering documents with scrollkeeper...
Errors were encountered while processing:
 libgl1-nvidia-alternatives
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
kerem
 
Posts: 192
Joined: 2010-06-16 16:29

Re: Aptitude Nvidia alternatives problem

Postby bugsbunny » 2010-09-30 19:33

Try manually moving the file from /usr/lib/nvidia/diversions/libGL.so.1 to /usr/lib/libGL.so.1 and then running it again.

Assuming it's successful I would recommend reinstalling libgl1-mesa-glx afterwards. I'm assuming that that package is currently installed, you should verify that first :)

Code: Select all
# aptitude reinstall libgl1-mesa-glx


After that's done you can get back to reinstalling the nvidia drivers.

If the manual move doesn't solve the issue then edit /var/lib/dpkg/info/libgl1-nvidia-alternatives.postrm
add the following after the "set -e" line towards the top:
Code: Select all
set -x

Rerun the forced removal and post the results.
User avatar
bugsbunny
 
Posts: 5355
Joined: 2008-07-06 17:04


Return to General Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable