Ubuntu Server 17.04 系统设置(unity)中的图标缺失

Ubuntu Server 17.04 系统设置(unity)中的图标缺失

我刚刚安装了 17.04 服务器,然后安装了桌面,但我只有那些图标(这实际上不是我的设置,但它以同样的方式损坏了)

1

我尝试使用这些命令来尝试解决它:

sudo apt-get install ubuntu-desktop
sudo apt-get remove unity-control-center
sudo apt-get install unity-control-center
sudo apt-get install ubuntu-desktop
sudo apt-get install unity-control-center
sudo apt-get install unity-control-center-signon gnome-control-center-unity
sudo apt-get update --fix-missing
sudo apt-get -f install

但我没有成功解决它。你能建议一些方法来解决我的问题吗?

我重新安装了 ubuntu 桌面,没有更改 sudo apt-get install --reinstall ubuntu-desktop 0 升级,0 新安装,1 重新安装,0 删除,0 未升级。

2

我也这样做了

http://askubu ntu.co m/a/621874/694849

但它也只添加了一个图标。在线账户。

他们仍然缺少许多像力量这样的图标。

当我写作时gnome-control -center,它会带来很多图标,但是当我单击例如显示时,控制台会显示:

➜  ~ gnome-control-center

** (gnome-control-center:11997): WARNING **: Ignoring launcher gufw (missing desktop file)

** (gnome-control-center:11997): WARNING **: Ignoring launcher landscape-client-settings (missing desktop file)

** (gnome-control-center:11997): WARNING **: Ignoring launcher ubuntuone-installer (missing desktop file)

(gnome-control-center:11997): display-cc-panel-WARNING **: no sunset data, using 16.00

(gnome-control-center:11997): display-cc-panel-WARNING **: no sunrise data, using 8.00

(gnome-control-center:11997): display-cc-panel-WARNING **: no sunset data, using 16.00

(gnome-control-center:11997): display-cc-panel-WARNING **: no sunrise data, using 8.00

(gnome-control-center:11997): display-cc-panel-WARNING **: no sunset data, using 16.00

(gnome-control-center:11997): display-cc-panel-WARNING **: no sunrise data, using 8.00

(gnome-control-center:11997): display-cc-panel-WARNING **: no sunset data, using 16.00

(gnome-control-center:11997): display-cc-panel-WARNING **: no sunrise data, using 8.00

这什么也没做

sudo apt-get install unity-control-center-signon gnome-control-center-unity
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'unity-control-center' instead of 'gnome-control-center-unity'
unity-control-center is already the newest version (15.04.0+17.04.20170402.6-0ubuntu1).
unity-control-center-signon is already the newest version (0.1.9+16.10.20160825-0ubuntu1).
The following packages were automatically installed and are no longer required:
  linux-headers-4.10.0-22 linux-headers-4.10.0-22-generic
  linux-image-4.10.0-22-generic linux-image-extra-4.10.0-22-generic
  linux-signed-image-4.10.0-22-generic
Use 'sudo apt autoremove' to remove them.

这也没有做任何事情

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity
sudo shutdown -r now

➜  ~ sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity
Hit:1 http://repo.steampowered.com/steam precise InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease        
Hit:3 http://ppa.launchpad.net/embrosyn/cinnamon/ubuntu zesty InRelease
Hit:4 http://repository.spotify.com stable InRelease                
Hit:5 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu zesty InRelease
Hit:6 http://dl.google.com/linux/chrome/deb stable Release          
Hit:7 http://us.archive.ubuntu.com/ubuntu zesty InRelease           
Hit:8 https://deb.nodesource.com/node_6.x yakkety InRelease         
Hit:9 http://ppa.launchpad.net/papirus/papirus/ubuntu zesty InRelease
Hit:10 https://download.docker.com/linux/ubuntu zesty InRelease     
Hit:11 http://ppa.launchpad.net/webupd8team/java/ubuntu zesty InRelease
Hit:12 https://packages.microsoft.com/repos/vscode stable InRelease 
Get:14 http://us.archive.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]
Ign:15 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 InRelease
Hit:16 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release
Get:18 http://us.archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata [5,812 B]
Get:20 http://us.archive.ubuntu.com/ubuntu zesty-security/universe amd64 DEP-11 Metadata [8,904 B]
Get:21 http://us.archive.ubuntu.com/ubuntu zesty-security/universe DEP-11 64x64 Icons [27.0 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu zesty-updates/main amd64 DEP-11 Metadata [41.8 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu zesty-updates/main DEP-11 64x64 Icons [14.0 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe amd64 DEP-11 Metadata [57.5 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe DEP-11 64x64 Icons [58.7 kB]
Fetched 392 kB in 1s (228 kB/s)                                     
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.10.0-22 linux-headers-4.10.0-22-generic
  linux-image-4.10.0-22-generic linux-image-extra-4.10.0-22-generic
  linux-signed-image-4.10.0-22-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/3,612 B of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 356900 files and directories currently installed.)
Preparing to unpack .../ubuntu-desktop_1.379_amd64.deb ...
Unpacking ubuntu-desktop (1.379) over (1.379) ...
Setting up ubuntu-desktop (1.379) ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
unity is already the newest version (7.5.0+17.04.20170407.1-0ubuntu1).
The following packages were automatically installed and are no longer required:
  linux-headers-4.10.0-22 linux-headers-4.10.0-22-generic
  linux-image-4.10.0-22-generic linux-image-extra-4.10.0-22-generic
  linux-signed-image-4.10.0-22-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

我安装了 xubuntu 并登录,设置相同。缺少图标。所以这与 unity 无关?

我有这些环境: 在此处输入图片描述

答案1

好的,我想我有一个解决方案。自从升级到 Ubuntu 17.04 以来,我一直遇到完全相同的问题,并且所有建议的解决方案都不适合我。

通过查看与缺少的图标条目相对应的 .desktop 文件,我发现了以下行:

OnlyShowIn=Unity7;

unity --version返回unity 7.5.0,所以我想也许只是把

OnlyShowIn=Unity;

无需指定版本即可工作,然后图标开始重新出现在系统设置菜单中。

请注意,删除该行也有效。希望这能有所帮助。

答案2

Linux 4.3/4.4 中有一个已知错误,会导致文本损坏或图像偶尔消失。可能值得测试 4.2,间歇性混乱的文本应该可以正常工作。

https://bbs.archlinux.org/viewtopic.php?id=209065

菜单和文件夹名称中缺少字母

相关内容