我不小心(鲁莽地)rm -rf我的/usr/share/fonts/truetype目录。我所有的 truetype 字体现在都不见了。:/ 有没有办法让他们回来?我在 Ubuntu 16.04 上。
刚刚与另一个用户对不同的目录进行了此操作。您可以看到哪些包在目录中包含文件。就我而言:
$ dpkg -S /usr/share/fonts/truetype | cut -sd: -f1 | tr -d , | fold -w80
fonts-opensymbol ttf-mscorefonts-installer ttf-ubuntu-font-family fonts-symbola
fonts-liberation fonts-freefont-ttf fonts-droid-fallback fonts-dejavu-core
Run Code Online (Sandbox Code Playgroud)
我们可以将其完善为一个命令,只需重新安装所有这些软件包:
sudo apt install --reinstall $(dpkg -S /usr/share/fonts/truetype | cut -sd: -f1 | tr -d ,)
Run Code Online (Sandbox Code Playgroud)
这样做的好处是你重新安装基于文件的包。
| 归档时间: |
|
| 查看次数: |
2613 次 |
| 最近记录: |