Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Aptitude Nvidia alternatives problem

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
kerem
Posts: 192
Joined: 2010-06-16 16:29

Aptitude Nvidia alternatives problem

#1 Post by kerem »

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

schmidtbag
Posts: 249
Joined: 2010-04-14 20:51
Location: MA
Has thanked: 1 time
Contact:

Re: Aptitude Nvidia alternatives problem

#2 Post by schmidtbag »

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.

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

Re: Aptitude Nvidia alternatives problem

#3 Post by kerem »

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

User avatar
MeanDean
Posts: 3866
Joined: 2007-09-01 01:14

Re: Aptitude Nvidia alternatives problem

#4 Post by MeanDean »

yea....you broke the package management system

start by trying apt-get -f install

schmidtbag
Posts: 249
Joined: 2010-04-14 20:51
Location: MA
Has thanked: 1 time
Contact:

Re: Aptitude Nvidia alternatives problem

#5 Post by schmidtbag »

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

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

Re: Aptitude Nvidia alternatives problem

#6 Post by kerem »

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)

User avatar
Jimmy Johnson
Posts: 38
Joined: 2006-12-11 16:37
Location: Bakersfield, Calif.

Re: Aptitude Nvidia alternatives problem

#7 Post by Jimmy Johnson »

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
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: Aptitude Nvidia alternatives problem

#8 Post by bugsbunny »

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.

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

Re: Aptitude Nvidia alternatives problem

#9 Post by kerem »

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

User avatar
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: Aptitude Nvidia alternatives problem

#10 Post by bugsbunny »

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

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

Re: Aptitude Nvidia alternatives problem

#11 Post by kerem »

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:

User avatar
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: Aptitude Nvidia alternatives problem

#12 Post by bugsbunny »

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.

Post Reply