当我从终端打开 Kate 时,我收到多条消息,那么我该如何摆脱这些消息呢?

当我从终端打开 Kate 时,我收到多条消息,那么我该如何摆脱这些消息呢?
$ kate
Icon theme "gnome" not found.
Icon theme "ubuntu-mono-dark" not found.
Icon theme "Mint-X" not found.
Icon theme "elementary" not found.
Icon theme "gnome" not found.
Icon theme "gnome" not found.
Icon theme "ubuntu-mono-dark" not found.
Icon theme "Mint-X" not found.
Icon theme "elementary" not found.
Icon theme "gnome" not found.
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed
inotify_add_watch(/var/lib/samba/usershares) failed: (Permission denied)
Qt: Session management error: networkIdsList argument is NULL
Icon theme "gnome" not found.
Icon theme "ubuntu-mono-dark" not found.
Icon theme "Mint-X" not found.
Icon theme "elementary" not found.
Icon theme "gnome" not found.
Icon theme "gnome" not found.
Icon theme "ubuntu-mono-dark" not found.
Icon theme "Mint-X" not found.
Icon theme "elementary" not found.
Icon theme "gnome" not found.

答案1

当您通过键入 启动它时,这些消息是否出现在终端窗口中kate?如果是,如果编辑器正常工作,您可以忽略它们。实际上,从终端启动的每个程序都会吐出某种无害的消息。

如果没有问题,请忽略这些消息。如果程序正常运行,它们就无害。只有当您遇到问题时,它们才重要。尝试从终端启动其他程序。

总会有一些消息:缺少某项、无法找到、某个文件中没有条目或其他更神秘的消息。试图让它们消失就像试图让自己停止做梦一样!

答案2

这些错误消息表明未找到一个或多个图标主题包。

我在启动 Lubuntu 20.04 副本时看到了与您的非常相似的错误,nvim-qt我通过安装丢失的软件包解决了该问题。

user@host:~$ nvim-qt
user@host:~$ Icon theme "elementary" not found.

user@host:~$ sudo su -
root@host:~# apt search elementary-icon-theme
Sorting... Done
Full Text Search... Done
elementary-icon-theme/focal,focal 2.7.1-0ubuntu7 all
  simple and appealing Tango-styled icon theme

root@host:~# apt install elementary-icon-theme
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  elementary-icon-theme
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,984 kB of archives.
After this operation, 32.5 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 elementary-icon-theme all 2.7.1-0ubuntu7 [1,984 kB]
Fetched 1,984 kB in 2s (1,134 kB/s)              
Selecting previously unselected package elementary-icon-theme.
(Reading database ... 278482 files and directories currently installed.)
Preparing to unpack .../elementary-icon-theme_2.7.1-0ubuntu7_all.deb ...
Unpacking elementary-icon-theme (2.7.1-0ubuntu7) ...
Setting up elementary-icon-theme (2.7.1-0ubuntu7) ...
gtk-update-icon-cache: The generated cache was invalid.
WARNING: icon cache generation failed for /usr/share/icons/elementary
root@host:~# exit
logout
user@host:~$ ls -al /usr/share/icons/elementary
total 276
drwxr-xr-x 16 root root   4096 Jan 23 21:41 .
drwxr-xr-x 22 root root   4096 Jan 23 21:41 ..
drwxr-xr-x  9 root root   4096 Jan 23 21:41 actions
drwxr-xr-x  9 root root   4096 Jan 23 21:41 animations
drwxr-xr-x  9 root root   4096 Jan 23 21:41 apps
-rw-r--r--  1 root root    878 Dec  5  2010 AUTHORS
drwxr-xr-x  9 root root   4096 Jan 23 21:41 categories
-rw-r--r--  1 root root    142 Feb 21  2011 CONTRIBUTORS
drwxr-xr-x  9 root root   4096 Jan 23 21:41 devices
drwxr-xr-x  9 root root   4096 Jan 23 21:41 emblems
-rw-r--r--  1 root root 197800 Jan 23 21:41 .icon-theme.cache
-rw-r--r--  1 root root   4932 Mar 24  2011 index.theme
drwxr-xr-x  9 root root   4096 Jan 23 21:41 mimes
drwxr-xr-x  6 root root   4096 Jan 23 21:41 notifications
drwxr-xr-x  6 root root   4096 Jan 23 21:41 panel
drwxr-xr-x  9 root root   4096 Jan 23 21:41 places
drwxr-xr-x  4 root root   4096 Jan 23 21:41 social
drwxr-xr-x 10 root root   4096 Jan 23 21:41 status
drwxr-xr-x  7 root root   4096 Jan 23 21:41 stock
drwxr-xr-x  3 root root   4096 Jan 23 21:41 tools
user@host:~$ nvim-qt
user@host:~$ 

我不确定为什么安装会抛出这个问题WARNING: icon cache generation failed for /usr/share/icons/elementary,但当我随后运行时nvim-qt,那个最初的错误不再出现。

相关内容