我使用错误的命令意外删除了目录中的所有文件/usr/share/icons
。您知道如何恢复这些文件吗?
答案1
该命令dpkg -S /usr/share/icons/
应该会显示您需要重新安装哪个包才能恢复图标:
➜ ~ dpkg -S /usr/share/icons/
gnome-icon-theme-extras, gimp-data, gnome-colors-common, gnome-brave-icon-theme, alacarte, gnome-online-accounts, smplayer, eog, libreoffice-common, gcr, baobab, gnome-system-log, evince-common, emacs24-common, hicolor-icon-theme, libpeas-common, byobu, desktop-base, icedtea-netx-common, gnome-icon-theme, empathy-common, gnome-session-common, gnome-control-center-data, gnome-settings-daemon, gnome-power-manager, gnome-media, shotwell-common, cabextract, gnome-panel-data, libgweather-common, gnome-disk-utility, imagemagick, gdm3, openjdk-7-jre:i386, gnome-themes-standard-data, gnome-user-share, gparted, rygel, vinagre, cheese-common, gnome-bluetooth, iceweasel, file-roller, xchat, rhythmbox-data, seahorse, deluge-gtk, gnome-packagekit-data, gnome-icon-theme-symbolic, brasero-common, gnome-tweak-tool, aisleriot, gnome-accessibility-themes, ettercap-graphical, pidgin-data, zim, chromium, gconf-editor, dconf-editor, ibus, steam, gbrainy, network-manager-gnome, flashplugin-nonfree, synaptic, geary, tracker-gui, xterm, freeciv-data, gnome-applets-data, gsmartcontrol, wireshark-common, wireshark, upnp-router-control, ppstream, ibus-anthy: /usr/share/icons
这不是一件容易的事,但它应该让你走上正轨。你可以使用以下命令重新安装:
sudo apt-get install --reinstall package