Ubuntu: Restore /etc/fonts/


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


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


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
Next Post »