2018年12月4日,更新centos后连接vnc没有画面
然后查看log文件,我的是在~/.vnc/localhost.localdomain\:1.log
发现一行记载着错误:
/usr/libexec/gnome-session-binary: symbol lookup error: /lib64/libpangoft2-1.0.so.0: undefined symbol: FcWeightFromOpenTypeDouble
通过关键字undefined symbol: FcWeightFromOpenTypeDouble
经过一番查找后,一个解决方案是把pango从1.42.4降到1.40.4
连接是:https://forum.antergos.com/topic/9554/major-problems-with-update-to-gnome-3-28
想要用yum降级,首先要关闭centos7 yum自带的yum插件,fastestmirrors。因为不知道为啥,开启了之后,它选用的源找不到旧的版本进行降级。
关闭方法:
选自:https://www.jianshu.com/p/281ee3db7c15
禁用fastestmirror 插件
参考:
http://www.cnblogs.com/starof/p/4773209.html
禁用fastestmirror插件
vi /etc/yum/pluginconf.d/fastestmirror.conf
#修改内容
enabled = 1//由1改为0,禁用该插件
或者禁用所有插件【不推荐】
vi /etc/yum.conf
#修改内容
plugins=1 //改为0,不使用插件
作者:izhangxm
链接:https://www.jianshu.com/p/281ee3db7c15
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
进行降级
关闭后,用了清华的源,能够查找到旧的版本,网易和阿里的不行:
查找方法是
yum search dango --showduplicates
会列出:
[root@localhost yum.repos.d]# yum search pango --showduplicates
Loaded plugins: langpacks
============================================================================================================================= N/S matched: pango ==============================================================================================================================
pango-devel-1.40.4-1.el7.i686 : Development files for pango
pango-devel-1.40.4-1.el7.x86_64 : Development files for pango
pango-devel-1.42.4-1.el7.x86_64 : Development files for pango
pango-tests-1.40.4-1.el7.x86_64 : Tests for the pango package
pangomm-2.40.1-1.el7.i686 : C++ interface for Pango
pangomm-2.40.1-1.el7.x86_64 : C++ interface for Pango
pangomm-2.40.1-1.el7.x86_64 : C++ interface for Pango
pangomm-devel-2.40.1-1.el7.i686 : Headers for developing programs that will use pangomm
pangomm-devel-2.40.1-1.el7.x86_64 : Headers for developing programs that will use pangomm
pangomm-doc-2.40.1-1.el7.noarch : Developer's documentation for the pangomm library
compat-libcogl-pango12-1.14.0-3.el7.i686 : Compat package with cogl 1.14 libraries
compat-libcogl-pango12-1.14.0-3.el7.x86_64 : Compat package with cogl 1.14 libraries
pango-1.40.4-1.el7.i686 : System for layout and rendering of internationalized text
pango-1.40.4-1.el7.x86_64 : System for layout and rendering of internationalized text
pango-1.42.4-1.el7.x86_64 : System for layout and rendering of internationalized text
然后选择1.40.4-1这个版本进行降级:
我的是64位系统,所以使用:
yum downgrade pango-1.40.4-1.el7.x86_64 pango-devel-1.40.4-1.el7.x86_64
要把依赖pango的其它组件同时降级,运行上面语句后,会提示哪些组件需要降级。
降级后,重新运行vncserver,打开viewer后,成功显示画面