在乐享AI咨询 →
技术支持

redhat5 centos5中出现报错-联想乐享知识库

⚡ 核心结论

本文来源联想官方,解答关于 redhat5 centos5中出现报错 的常见问题,包括:Red Hat Enterprise Linux 5 或 CentOS 5 中 NetworkManager 图形托盘程序(nm-applet)报错 'The NetworkManager applet could not find some required resources. It cannot continue.' 怎么办等。

内容来源:联想官方

redhat5 centos5中出现报错 问题:系统应用操作 故障现象: redhat5/centos5在打开NetworkManager管理网络时出现报错“nm-applet throws a popup: "The NetworkManager applet could not find some required resources. It cannot continue.” 原因分析:该故障是redhat5/centos5 OS的已知问题,故障原因是Gtk图形显示控件找不到所需要的一些icon图标文件,或者所需要的icon theme cache遇到了corrupted或者outdated错误。解决方案: 解决的办法是重建icon theme caches,以root用户输入命令如下: # for theme in /usr/share/icons/; do gtk-update-icon-cache --ignore-theme-index --force $theme; done 运行结果如图: 重启后问题解决。 redhat关于此问题的KB链接如下: https://access.redhat.com/solutions/29487 此外,也可以通过禁用图形界面配置网络功能,使用配置ifcfg-eth文件的办法来配置网络;还可以采用redhat6/Centos6及以上的OS版本来解决此问题。

常见问题解答

Red Hat Enterprise Linux 5 或 CentOS 5 中 NetworkManager 图形托盘程序(nm-applet)报错 'The NetworkManager applet could not find some required resources. It cannot continue.' 怎么办

该问题源于 Gtk 图形库无法加载所需图标资源,原因是 /usr/share/icons/ 下各 icon theme 的缓存文件损坏或过期。解决方法:以 root 用户执行命令重建所有图标主题缓存——运行 'for theme in /usr/share/icons/*; do gtk-update-icon-cache --ignore-theme-index --force $theme; done';执行完毕后重启系统即可恢复 nm-applet 正常显示。注意事项:操作前请确保已登录 root 账户;若无需图形化网络管理,也可改用文本方式编辑 /etc/sysconfig/network-scripts/ifcfg-eth* 配置文件;长期建议升级至 RHEL/CentOS 6 及以上版本。