我搜索并安装了很多图标集,但过了一段时间,我惊讶地发现这些软件包有多大,于是决定返回基本集“Lubuntu Box”。但我尝试从usr/share/icons
和中删除所有我认为没用的大型软件包~/.icons
。结果出了问题:现在很多应用程序都没有图标,比如网络托盘图标、DeaDBeef 和许多其他应用程序
我重新安装了 lubuntu-artwork-12-10,但没有任何效果。出于某种原因,“malys-uniblu”图标集仍然覆盖了许多其他图标集没有覆盖的应用程序。
我现在已经安装的一些图标:
尝试重新安装 elementary 和 gnome,出现错误
错误报告的更多详细信息:
(Reading database ... 347458 files and directories currently installed.)
Preparing to replace elementary-icon-theme 2.7.1-0ubuntu6 (using .../elementary-icon-theme_2.7.1-0ubuntu6_all.deb) ...
Unpacking replacement elementary-icon-theme ...
gtk-update-icon-cache-3.0: The generated cache was invalid.
WARNING: icon cache generation failed for /usr/share/icons/elementary
Selecting previously unselected package human-icon-theme.
Unpacking human-icon-theme (from .../human-icon-theme_0.36_all.deb) ...
Selecting previously unselected package breathe-icon-theme.
Unpacking breathe-icon-theme (from .../breathe-icon-theme_0.51.2_all.deb) ...
Selecting previously unselected package gnome-colors-common.
Unpacking gnome-colors-common (from .../gnome-colors-common_5.5.1-1ubuntu1_all.deb) ...
Selecting previously unselected package gnome-brave-icon-theme.
Unpacking gnome-brave-icon-theme (from .../gnome-brave-icon-theme_5.5.1-1ubuntu1_all.deb) ...
Preparing to replace lubuntu-elementary-icon-theme 0.34 (using .../lubuntu-elementary-icon-theme_0.34_all.deb) ...
Unpacking replacement lubuntu-elementary-icon-theme ...
Setting up elementary-icon-theme (2.7.1-0ubuntu6) ...
gtk-update-icon-cache-3.0: The generated cache was invalid.
WARNING: icon cache generation failed for /usr/share/icons/elementary
Setting up human-icon-theme (0.36) ...
Setting up breathe-icon-theme (0.51.2) ...
Setting up gnome-colors-common (5.5.1-1ubuntu1) ...
update-alternatives: warning: alternative /usr/share/icons/gnome/scalable/places/debian-swirl.svg (part of link group start-here.svg) doesn't exist; removing from list of alternatives
update-alternatives: warning: alternative /usr/share/icons/gnome/scalable/places/gnome-foot.svg (part of link group start-here.svg) doesn't exist; removing from list of alternatives
update-alternatives: warning: alternative /usr/share/icons/gnome/scalable/places/ubuntu-logo.svg (part of link group start-here.svg) doesn't exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/start-here.svg is dangling; it will be updated with best choice
update-alternatives: using /usr/share/icons/gnome-colors-common/scalable/places/gnome-colors.svg to provide /usr/share/icons/gnome/scalable/places/start-here.svg (start-here.svg) in auto mode
update-alternatives: error: error creating symbolic link `/usr/share/icons/gnome/scalable/places/start-here.svg.dpkg-tmp': No such file or directory
dpkg: error processing gnome-colors-common (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of gnome-brave-icon-theme:
gnome-brave-icon-theme depends on gnome-colors-common; however:
Package gnome-colors-common is not configured yet.
dpkg: error processing gnome-brave-icon-theme (--configure):
dependency problems - leaving unconfigured
Setting up lubuntu-elementary-icon-theme (0.34) ...
No apport report written because MaxReports is reached already
Errors were encountered while processing:
gnome-colors-common
gnome-brave-icon-theme
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up gnome-colors-common (5.5.1-1ubuntu1) ...
update-alternatives: warning: alternative /usr/share/icons/gnome/scalable/places/debian-swirl.svg (part of link group start-here.svg) doesn't exist; removing from list of alternatives
update-alternatives: warning: alternative /usr/share/icons/gnome/scalable/places/gnome-foot.svg (part of link group start-here.svg) doesn't exist; removing from list of alternatives
update-alternatives: warning: alternative /usr/share/icons/gnome/scalable/places/ubuntu-logo.svg (part of link group start-here.svg) doesn't exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/start-here.svg is dangling; it will be updated with best choice
update-alternatives: using /usr/share/icons/gnome-colors-common/scalable/places/gnome-colors.svg to provide /usr/share/icons/gnome/scalable/places/start-here.svg (start-here.svg) in auto mode
update-alternatives: error: error creating symbolic link `/usr/share/icons/gnome/scalable/places/start-here.svg.dpkg-tmp': No such file or directory
dpkg: error processing gnome-colors-common (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of gnome-brave-icon-theme:
gnome-brave-icon-theme depends on gnome-colors-common; however:
Package gnome-colors-common is not configured yet.
dpkg: error processing gnome-brave-icon-theme (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gnome-colors-common
gnome-brave-icon-theme
修改于回答 建议Clean your cache, then use apt-get install -f and then install Hi Color first
:我不清楚如何清除缓存,但我做了一些在 askubuntu 上找到的东西这里;apt-get install -f
给出了下面发布的很多错误;但特别是:如何安装嗨色?我的意思是它们已经安装好了;首先删除它需要删除大量的应用程序;只需在 synaptic 中重新安装就会出现上面发布的错误。
# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up gnome-colors-common (5.5.1-1ubuntu1) ...
update-alternatives: warning: alternative /usr/share/icons/gnome/scalable/places/debian-swirl.svg (part of link group start-here.svg) doesn't exist; removing from list of alternatives
update-alternatives: warning: alternative /usr/share/icons/gnome/scalable/places/gnome-foot.svg (part of link group start-here.svg) doesn't exist; removing from list of alternatives
update-alternatives: warning: alternative /usr/share/icons/gnome/scalable/places/ubuntu-logo.svg (part of link group start-here.svg) doesn't exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/start-here.svg is dangling; it will be updated with best choice
update-alternatives: using /usr/share/icons/gnome-colors-common/scalable/places/gnome-colors.svg to provide /usr/share/icons/gnome/scalable/places/start-here.svg (start-here.svg) in auto mode
update-alternatives: error: error creating symbolic link `/usr/share/icons/gnome/scalable/places/start-here.svg.dpkg-tmp': No such file or directory
dpkg: error processing gnome-colors-common (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of gnome-brave-icon-theme:
gnome-brave-icon-theme depends on gnome-colors-common; however:
Package gnome-colors-common is not configured yet.
dpkg: error processing gnome-brave-icon-theme (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
Errors were encountered while processing:
gnome-colors-common
gnome-brave-icon-theme
E: Sub-process /usr/bin/dpkg returned an error code (1)
我可以恢复我的图标吗?
答案1
Lubuntu 图标主题并未附带所有曾经制作的图标,它继承了 elementary,继承了 gnome,继承了高彩色图标,以弥补它所没有的图标。
如果您删除了这些文件夹,您将会丢失图标。
例如 HiColor 是一个必须,这是因为它为所有图标提供了一个“基础”,正如您可以从软件包描述中读到的那样 hicolor-icon-theme
。Gnome 图标主题 ( gnome-icon-theme
)依靠在这个包上,大多数 GTK 图标集都从两者继承了图标。
这听起来很疯狂,但不妨删除所有通过 APT 安装或手动安装的图标。清理缓存,然后apt-get install -f
先使用并安装 Hi Color。
编辑测试后:
如果由于编辑问题中提到的错误而导致上述操作不起作用,从 Live CD 或 USB 启动并复制文件夹usr/share/icons
(cd/usb 系统)。将其保存在主硬盘安装的桌面文件夹中。然后正常启动并将文件夹(主安装的文件夹)替换为现在应该在桌面上的usr/share/icons
文件夹。然后,尝试在 Synaptic Manager 中重新安装、和(以及其他似乎与 Lubuntu 中的图标和图片相关的内容,以确保万无一失):icons
hicolor-icon-theme
gnome-icon-theme
elementary-icon-theme
现在应该可以正常工作而不会出现之前的错误。但仍然不会出现缺失的图标,因为它们不适用于 usr/share/applications 中的程序(因此也不适用于菜单)直到这些程序本身被重新安装。
从 deb 重新安装程序似乎就足够了,但这可能取决于程序。在 Synaptic 中,至少对于某些程序,需要完全删除并重新安装。情况可能因情况而异:例如,从 deb 重新安装 DeaDBeef 解决了问题,Brasero 通过完全删除并重新安装解决了问题,VLC 需要完全重新安装,但必须在完全删除并重新安装后才能解决vlc-data
,等等。