删除 /usr/share/icons 文件夹,现在图标丢失

删除 /usr/share/icons 文件夹,现在图标丢失

所以我意外删除了 /usr/share/icons 文件夹,现在某些图标丢失了,还有 GNOME3 DE 上的 SHOW APPLICATIONS 图标和右上角的图标也丢失了。

我该怎么办?

在此处输入图片描述

答案1

您可以/usr/share/icons通过运行以下命令检查哪些包中包含文件:

$ dpkg -S /usr/share/icons
fontforge-common, gnome-sudoku, gnome-software-common, drumkv1-common, cheese-common, libkf5purpose-bin:amd64, libpeas-common, usb-creator-gtk, qemu-system-data, libgeocode-glib0:amd64, orca, modemmanager, rosegarden, gcr, aptdaemon-data, aisleriot, kipi-plugins-common, digikam-data, indicator-applet, imagemagick-6.q16, hugin-data, rygel, xjadeo, ubuntu-artwork, compton, transmission-common, thunderbird, gnome-power-manager, gnome-mahjongg, yelp, gnome-font-viewer, gnome-control-center-data, gnome-characters, cabextract, gnome-screenshot, gnome-mines, audacity-data, apport, software-properties-gtk, vlc-data, calf-plugins, indicator-printers, gnome-bluetooth, gnome-disk-utility, gnome-shell-common, eog, indicator-messages, xcursor-themes, ubuntu-web-launchers, gnome-todo-common, inkscape, ario-common, gnome-calculator, vim-common, indicator-session, unity-settings-daemon, poedit, gnome-online-accounts, rhythmbox-data, hicolor-icon-theme, blender-data, obs-studio, feh, gnome-calendar, totem-common, firefox, qdigidoc-tera, deja-dup, synaptic, update-notifier, nautilus-data, qsynth, qjackctl, vmpk, network-manager-gnome, file-roller, openshot-qt, yaru-theme-icon, oxygen-icon-theme, skypeforlinux, amsynth, dgedit, kdenlive-data, kdeconnect, gnome-system-monitor, gnome-logs, gmrun, xmonad, pianobooster, dmz-cursor-theme, minuet-data, baobab, wireshark-common, compizconfig-settings-manager, simple-scan, shotwell-common, seahorse, gnome-accessibility-themes, breeze-icon-theme, ibus-data, humanity-icon-theme, remmina-common, gedit-common, winetricks, virt-viewer, virt-manager, samplv1-common, fwupd, evince, flowblade, marble-qt-data, ubuntu-mono, adwaita-icon-theme, gnome-terminal, lmms-common, libreoffice-common, qdigidoc4, evolution-common, gimp-data, hydrogen-data, libkf5sane-data: /usr/share/icons

如果您想要恢复某个软件包的图标,您可以重新安装它。这将恢复所有丢失的文件:

apt reinstall gimp-data

我能想到的唯一副作用是这些包将被标记为手动安装,并且apt autoremove如果您删除了导致它们首先被安装的包,它们稍后将不会被删除。但我无法立即看到禁用该功能的选项 :(

如果您想重新安装所有软件包(这很有意义),您可以使用它sed来删除dpkg -S输出中的逗号,以便更容易地复制粘贴到sudo apt reinstall命令行上:

$ dpkg -S /usr/share/icons | sed -e 's#,##g'

相关内容