all fonts destroyed for certain Ubuntu GNOME applications
After building pango-1.28.1 and cairo-1.8.10 from source in an unsuccessful attempt to build graveman-0.3.12-5 (due to inability to configure gtk+-2.20.1), various GNOME applications display empty boxes where text should be. I am running Ubuntu 10.04. Three screenshots to illustrate (for Rhythmbox, System->Preferences->Appearance dialogue box, and System->Preferences->Sound dialogue box) are posted at:
http://gmarks.co.cc/Screenshot-0.png http://gmarks.co.cc/Screenshot-1.png http://gmarks.co.cc/Screenshot-2.png Can anyone help suggest how to fix this mess? |
Note: after reboot, problem is much worse--even affects login screen. Updated screenshot (URLs above) to reflect exacerbated problem. Any solution will have to be via command line, since I can only use the affected computer via ssh. Current problem seems similar to that described here:
http://www.linuxquestions.org/questi...e-gone-146824/ (which, disconcertingly, has not been resolved in the last six years). The packages listed there bear some similarities to those I attempted to install. In my case: gtk+-2.20.1 failed to install, pango-1.28.1 installed, atk-1.30.0 installed (in each case from source). |
One thing you certainly can do is test the privileges on your fonts. Open a console window, or via ssh as you mentioned yourself.
Log in as root or sudoer there and run this bash script: as root: Code:
#!/bin/bash Good luck |
Thank you for your suggestions. A quick glance through /usr/share/fonts seems to show that all subdirectories already have 755 permissions, and all subfiles have 644 permissions. I'll give your bash script a try nevertheless. One question: do you really intend the line in the script to read "find $DIRNAME -type f -exec chmod 600 {} \;" instead of "find $DIRNAME -type f -exec chmod 644 {} \;"? These files are owned by root; don't I want them readable by all?
|
I tried running that bash script as root, both as written and with "600" changed to "644"; unfortunately, the problem remains. I also tried:
Code:
sudo apt-get remove --purge gnome-desktop-environment |
Quote:
|
Quote:
Code:
sudo apt-get remove ubuntu-desktop If even that doesn't help you can do something even more extreme: resetting your distro settings and reinstalling packages by entering the next command: Code:
sudo apt-get dist-upgrade Normally the command above is used for doing a real distro upgrade after altering the /etc/apt/sources.list file, but now it will do the same with the existing version. There is one thing: in most cases everything looks like a new install with all extra installed packages on it, but sometimes Ubuntu destroys itself during a dist-upgrade. I strongly recommend if you're considering the last option to do this in a text console only (ok, you got no other options atm, but for later problems it's a good thing to know). |
I'd prefer to be incorrect and have fonts. Sad to say, the files in the bottom-level /usr/share/fonts subdirectories all have 644 permissions now, but still no fonts.
One other interesting tidbit: Firefox and Thunderbird do not seem to start up, though Google Chrome does (but it, like everything else, displays only blank squares for fonts). I'm not sure if this has anything to do with it, but prior to this problem configuring gtk+-2.20.1 failed with this error: Code:
configure:24925: error:*** Can't find cairo-pdf.h. You must build Cairo with the pdf*** backend enabled. Could the problem possibly have been caused by my successful build of cairo-1.8.10? |
Thank you for the additional suggestions. I tried:
Code:
sudo apt-get remove ubuntu-desktop Code:
1$sudo apt-get dist-upgrade |
Quote:
Quote:
I found this info about the cairo package: Quote:
The reason Google Chrome starts up and the others don't is as far as I know that Google Chrome is self-supporting in a lot of ways. |
I installed pixman-0.15.20, libpng-1.2.42, and fontconfig-2.8.0, then ran ./configure, make, make install in cairo-1.8.10 again. I was finally able to build gtk+-2.20.1. (Both pixman-0.15.20 and gtk+-2.20.1 required ./configure and make to be run as root. Very dangerous, in my opinion, but I'm somewhat desperate at this point. I would not recommend that others try to build these packages.) For good measure, I also tried
Code:
sudo apt-get remove ubuntu-desktop Any other ideas? |
Quote:
|
As we all know, there is a last resort. I can reformat the drives and reinstall Ubuntu from the installation disk, copy my data back onto the computer, and then laboriously reinstall all the old software. The last step in particular promises to be onerous, so I am hoping to be able to try something else before resorting to this option.
|
Indeed, to get the system working again the fastest way, that would be a last option. Unfortunatly we won't find out what causes the problem and how to solve it without re-installing. I hope you've got a seperate /home partition to do a fast recovery without having to put back all your personal settings. I have been thinking about the Fontconfig package: maybe you need to run it in a particular way to setup the fonts again?
|
Quote:
|
All times are GMT -5. The time now is 05:07 PM. |