Ubuntu: Restore /etc/fonts/



Question:

I accidentally deleted the entire contents of the directory /etc/fonts/. How can I restore it without having to reinstall the OS completely? enter image description here


Solution:1

You can boot a live disk of Ubuntu and copy the contents on the live /etc/fonts to your /etc/fonts


Solution:2

You should be able to use dpkg -S to list any packages on your system that would have placed files there e.g.

dpkg -S /etc/fonts  fonts-droid, language-selector-common, fontconfig-config: /etc/fonts  

and then re-install those packages (note: these are from my system; yours may vary)

sudo apt-get install --reinstall fonts-droid language-selector-common fontconfig-config  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »