Ubuntu hardy upgrade problems
I got hardy yesterday, and the upgrade wasn’t without problems. I’m posting my solutions here: hopefully they’ll help someone else.
Nvidia
First, Ubuntu wouldn’t let me upgrade, saying “Couldn’t calculate upgrade”. A peek at the logs (at /var/log/dist_upgrade/) revealed that this was because of nvidia-glx. It needed to be removed (because there is now a nvidia-glx-new), but it was in the removal blacklist. So I thought I’d do this manually. I removed nvidia-glx and installed nvidia-glx-new with apt, and then tried upgrading again.
I consider this a bug in the upgrade system. The installer should at least tell me that this might be the issue, and that I should consider changing my drivers, because if I hadn’t known about the existence of nvidia-glx-new, the log alone would have been of no use.
Ok, having done that I tried dist-upgrade’ing again. This time it looked like it was going to work. But then it threw up errors about nvidia-glx-new, and every single xorg package. I tried reinstalling nvidia-glx-new, but dpkg didn’t let me (I kept getting “subprocess post-removal script returned error exit status 2”). Google led me to this:
sudo dpkg-divert --remove /usr/X11R6/lib/libGL.so.1
sudo dpkg-divert --remove /usr/X11R6/lib/libGL.so.1.2
sudo dpkg-divert --remove /usr/lib/xorg/modules/libGLcore.so
However dpkg-divert gave me “No such file or directory” for each of the libgGL’s. After some headscratching, I realized the reason was that there was no ‘lib’ directory in ‘/usr/X11R6’. So a ‘mkdir /usr/X11R6/lib’ and then dpkg-divert –remove fixed the problem.
I still don’t understand how this happened in the first place – I’m just happy I got it to work.
Terminal Fonts
After hardy was installed I noticed that my Terminal had stopped antialiasing its fonts. Here’s the fix:
cd /etc/fonts/conf.d
sudo rm 10-hinting-medium.conf
sudo rm 10-no-sub-pixel.conf
sudo ln -s ../conf.avail/10-hinting-full.conf
sudo ln -s ../conf.avail/10-sub-pixel-rgb.conf
Firefox
Now my one remaining gripe is with Firefox. ff3b5 is highly unstable for me. I used Beta 4 up until now, and that worked just great. beta 5 has crashed on me 4 times just while writing this blog post! (although that’s an extreme case.. it isn’t that bad normally).
However, I may have found a solution. I’m beginning to think its firebug that’s causing the crashes, but I’m not sure yet. Any other ideas?
Thank you *so* much; I was having the hardest time figuring out why terminal, firefox and thunderbird did not respect the Hinting setting as specified in the Font Rendering Details dialog. Lesson learned: don’t trust the GUI so much, it’s just a cute wrapper on top of the real commands and config files.
Dan42 said this on April 27, 2008 at 8:02 pm |
Thanks! This post is the best I’ve found for fixing my terminal fonts 😉
Gabriel said this on May 18, 2008 at 6:53 pm |
Crepitation says : I absolutely agree with this !
crepitation said this on June 3, 2008 at 9:54 am |
Thanks for this post. I’m having the exact opposite problem: I got Hardy with no trouble, and now I can’t remove nvidia-glx for nvidia-glx-new, does anyone know about this?
ShadowWraith said this on June 20, 2008 at 6:40 am |
what exactly is the problem?? what happens when you try to just remove nvidia-glx and install nvidia-glx-new – also if everything is working why do you want to? I don’t remember if nvidia-glx-new is for all cards. Maybe it doesn’t support yours?
hellfeuer said this on June 20, 2008 at 9:40 am |
I want to because as soon as installed hardy, my opengl stopped working. I’m running a Nvidia GeForce 3 but the system detects Geforce 4 for some reason. So I’m trying to reinstall the drivers, but like I said, nvidia-glx wont remove itself Removing nvidia-glx …
dpkg-divert: error checking `/usr/X11R6/lib/modules/extensions/libglx.a’: No such file or directory
dpkg: error processing nvidia-glx (–remove):
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
nvidia-glx
E: Sub-process /usr/bin/dpkg returned an error code (1)
ShadowWraith said this on June 20, 2008 at 9:59 pm |
Since you’re getting a similar No such file or directory error, did you see if the entire path `/usr/X11R6/lib/modules/extensions’ exists? If not, you could try to create those directories?
Otherwise I really don’t know, ask at http://www.ubuntuforums.org
hellfeuer said this on June 22, 2008 at 1:41 pm |
just want to say thank you. this has been driving me crazy during my upgrade from 8.04 to 8.10
dave said this on October 26, 2008 at 10:59 pm |
I also ran into this problem today upgrading from 8.04 to 8.10 (i.e. couldn’t remove nvidia-glx). After manually adding the missing directories (/usr/X11R6/lib/modules/extensions), then the update completed successfully. Thanks!
David Resseguie said this on March 12, 2009 at 11:24 pm |
Attractive section of content. I just stumbled upon your
site and in accession capital to assert that I get in fact enjoyed
account your blog posts. Any way I’ll be subscribing to your feeds and even I achievement you access consistently quickly.
doctors excuse said this on June 14, 2013 at 5:23 pm |