20

I upgraded from 12.04 to 12.10 with no problem. I am trying to edit the grub file, but in the console I get the following message:

Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", 
 line 9: reading configurations from ~/.fonts.conf is deprecated

As a result, I see nothing when the editor opens. Is there a fix for this? I can't find much information on Google.

5
  • 1
    The message you're getting is just a warning. It is just saying that you no longer need a ~/.fonts.conf file. That shouldn't be causing the problem. I think we need more information, such as the actual command you're typing into the terminal.
    – rft183
    Commented Oct 25, 2012 at 15:35
  • 1
    Personally, I use nano at the command line, so I would do sudo nano /etc/default/grub
    – rft183
    Commented Oct 25, 2012 at 15:39
  • "Use nano" is not a valid answer.
    – Chuck R
    Commented Nov 16, 2012 at 6:50
  • Scroll down the page a bit... it's been there since after I posted the comment.
    – Chuck R
    Commented Dec 30, 2012 at 4:40
  • 1
    Re-reading the original question, I think both answers from @Githlar and myself are a bit off-topic anyway. Both our responses fix the warning, but the OP still cannot edit the file. We probably need more information, such as specifically how you are trying to edit the file. What's the command you are using?
    – Sparhawk
    Commented Dec 30, 2012 at 4:56

2 Answers 2

41

Githlar's answer removes the warning, without responding to what the warning is telling you. It's actually saying that loading from ~/.fonts.conf will be removed in the future. Hence, Githlar's solution will ignore what will break in the future. The correct thing to do is to move ~/.fonts.conf to ~/.config/fontconfig/fonts.conf . The easiest way to move this (hidden) file is using the terminal and doing

mkdir -p ~/.config/fontconfig/
mv -i ~/.fonts.conf ~/.config/fontconfig/fonts.conf

There is actually a bug report filed against the vagueness of this warning.

3
  • 3
    You're right. Going purely off the error message, it is not clear where it expects to read the new configuration from. I guess I assumed wrong that the upgrade process would have done this for you. I was guessing that the referred to files were residual. Thanks for the tip, +1.
    – Chuck R
    Commented Dec 30, 2012 at 4:45
  • 1
    @Githlar I suppose the devs didn't want to move your files themselves, but I agree it's a horribly vague error message. And it's probably not the best way to depreciate something. Cheers.
    – Sparhawk
    Commented Dec 30, 2012 at 4:53
  • When doing this, I found that both files were present. I solved it by keeping the bigger file, on the assumption it contains more relevant configuration information (after taking a look). Commented Jun 18, 2014 at 18:30
3

To get rid of this message, edit the /etc/fonts/conf.d/50-user.conf file as root:

sudo nano /etc/fonts/conf.d/50-user.conf

or

sudo gedit /etc/fonts/conf.d/50-user.conf

Look for the line that says

<include ignore_missing="yes" deprecated="yes">~/.fonts.conf</include>

and change it to

<!-- <include ignore_missing="yes" deprecated="yes">~/.fonts.conf</include> -->

Doing so comments out the line. Notice that's its under a comment that says "The following elements will be removed in the future." Therefore, commenting out this line should not hurt anything.

2
  • 1
    Doing so comments out the line. Notice that's its under a comment that says "The following elements will be removed in the future." Therefore, commenting out this line should not hurt anything. ... bit of possible misrepresentation there; are you sure that the removal of the line is to reinstate the config reading from home dir or is it that the functionality will be removed so that the config is not needed anymore?!
    – CodeMedic
    Commented Mar 14, 2013 at 23:28
  • 1
    I downvoted this answer since it doesn't seem to be the "right" thing to do. Upvoted askubuntu.com/a/231274/48282. Commented May 2, 2014 at 10:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .