Ubuntu 8.04 and 8600M GS

jgigz

Senior member
Jul 14, 2006
413
0
76
I went to turn on the advanced image settings, and synaptic attempted to install my video drivers, but returns the error:

"E: nvidia-glx: subprocess post-removal script returned error exit status 2"

Did a few google searches but couldn't find anything that seemed to help (or at least i thought so, rather new to linux still).


Any help would be appreciated


Edit: I tried to search for nvidia drivers on synaptic manually, but did not find anything that appeared to be the correct drivers.



Thanks.
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
I remember I used to have this problem before. I think Ubuntu stuck some entries in my dpkg diversions file which gave me problems when I was moving from nvidia-glx-new to nvidia-glx and so forth. Maybe that might be the problem.

Run a "sudo gedit /var/lib/dpkg/diversions" and remove any entries relating to nvidia-glx. Then try removing/installing the nvidia-glx package again.
 

jgigz

Senior member
Jul 14, 2006
413
0
76
I don't get that error message anymore, but the driver install doesn't complete and asks for a restart, but when I restart, and try to install it again, the install doesn't complete all the way and it asks for a reboot again.
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
Just try installing through the command line and see what happens. In the command line run "sudo apt-get install nvidia-glx". The gui just displays a visual of running this command and reboots, but if we run this in the command line we can see what kind of error messages we get.
 

jgigz

Senior member
Jul 14, 2006
413
0
76
Reading package lists... Done
Building dependency tree
Reading state information... Done
nvidia-glx is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/7333kB of archives.
After this operation, 0B of additional disk space will be used.
dpkg: conflicting diversions involving `/usr/lib/xorg/modules/libGLcore.so' or `/'
E: Sub-process /usr/bin/dpkg returned an error code (2)


Edit: rand sudo gedit/usr/lib/xorg/modules/libGLcore.so to remove any nvidia lsitings, but the file was empty
 

jgigz

Senior member
Jul 14, 2006
413
0
76
Originally posted by: SleepWalkerX
sudo gedit /var/lib/dpkg/diversions

Edit: I ran gedit/usr/lib/xorg/modules/libGLcore.so after attempting the reinstall after doing sudo gedit /var/lib/dpkg/diversions, but the resulting error said "dpkg: conflicting diversions involving `/usr/lib/xorg/modules/libGLcore.so" so thats why I did that.

I deleted all nvidia entries from /var/lib/dpkg/diversions, but the install still fails.

sudo apt-get install nvidia-glx
Reading package lists... Done
Building dependency tree
Reading state information... Done
nvidia-glx is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0B/7333kB of archives.
After this operation, 0B of additional disk space will be used.
dpkg: unexpected eof reading `/var/lib/dpkg/diversions'
E: Sub-process /usr/bin/dpkg returned an error code (2)
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
Hmm try this instead:

sudo dpkg-divert --list

If you find a mention of libGLcore.so, libGLcore.so.1, nvidia, etc then remove it with:

sudo dpkg-divert --remove </path/to/library>

Then try removing/installing.
 

jgigz

Senior member
Jul 14, 2006
413
0
76
SleepWalkerX - Thanks for the help, I just got the drivers working. Apparently I deleted 1 to many entries from /usr/lib/dpkg/diversions and whenever I tried to run any updates I was getting that "failed eof reading" on the diversions, so since I have a little bit of free time at work I did a fresh re-install of Ubuntu and downloaded the nvidia drivers from there website. I had to download the libc6, libc6-dev and libc-dev kernel headers, then I did a ctrl + alt+ f1, entered my credentials, killed the gdm and successfully installed the nvidia drivers.

Thanks again for the help
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
In Ubuntu you should apt-get install build-essential instead of putting the dev tools together piecemeal style. That will install all the tools you need to build anything you need, except for specific libraries needed by the actual software you are building.
 

jgigz

Senior member
Jul 14, 2006
413
0
76
Originally posted by: Crusty
In Ubuntu you should apt-get install build-essential instead of putting the dev tools together piecemeal style. That will install all the tools you need to build anything you need, except for specific libraries needed by the actual software you are building.

Thanks, I ran that just incase I should need to install anything else.

On a different subject, either sometime after I installed compiz or my video card drivers, my touch pad doesn't function like it used to. IE the bottom and far right don't serve as scroll bars either, and if I double tap to drag a window or scroll bar, it doesn't work either.

Not sure what happened but I liked those features and would like to get them back. I reinstalled the default touchpad driver set that came with ubuntu, but to no avail.

Thanks