linux 6.8启动vnc失败,centos vnc启动失败解决方法

2023-05-16

想在vps安装下vncserver,通过yum安装之后,发现启动会失败,报错内容如下: root@CentOS62 ~# service vncserver start正在启动 VNC 服务器:1:rootWARNING: The first attempt to start Xvnc failed, possibly because the fontcatalog is not properly co

想在vps安装下vncserver,通过yum安装之后,发现启动会失败,报错内容如下:

[root@CentOS62 ~]# service vncserver start

正在启动 VNC 服务器:1:root

WARNING: The first attempt to start Xvnc failed, possibly because the font

catalog is not properly configured. Attempting to determine an appropriate

font path for this system and restart Xvnc using that font path ...

Could not start Xvnc.

/usr/bin/Xvnc: symbol lookup error: /usr/bin/Xvnc: undefined symbol: pixman_composite_trapezoids

/usr/bin/Xvnc: symbol lookup error: /usr/bin/Xvnc: undefined symbol: pixman_composite_trapezoids

[失败]

百度之后,发现是版本和字体之间的问题:

[root@CentOS62 ~]# yum install pixman pixman-devel libXfont -y

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

* base: mirrors.163.com

* extras: mirrors.163.com

* updates: mirrors.163.com

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package libXfont.i686 0:1.4.1-2.el6_1 will be updated

---> Package libXfont.i686 0:1.4.5-3.el6_5 will be an update

---> Package pixman.i686 0:0.18.4-1.el6_0.1 will be updated

---> Package pixman.i686 0:0.26.2-5.1.el6_5 will be an update

---> Package pixman-devel.i686 0:0.26.2-5.1.el6_5 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

================================================================================

Package Arch Version Repository Size

================================================================================

Installing:

pixman-devel i686 0.26.2-5.1.el6_5 updates 18 k

Updating:

libXfont i686 1.4.5-3.el6_5 updates 144 k

pixman i686 0.26.2-5.1.el6_5 updates 206 k

Transaction Summary

================================================================================

Install 1 Package(s)

Upgrade 2 Package(s)

Total download size: 368 k

Downloading Packages:

(1/3): libXfont-1.4.5-3.el6_5.i686.rpm | 144 kB 00:00

(2/3): pixman-0.26.2-5.1.el6_5.i686.rpm | 206 kB 00:00

(3/3): pixman-devel-0.26.2-5.1.el6_5.i686.rpm | 18 kB 00:00

--------------------------------------------------------------------------------

Total 595 kB/s | 368 kB 00:00

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Updating : pixman-0.26.2-5.1.el6_5.i686 1/5

Installing : pixman-devel-0.26.2-5.1.el6_5.i686 2/5

Updating : libXfont-1.4.5-3.el6_5.i686 3/5

Cleanup : libXfont-1.4.1-2.el6_1.i686 4/5

Cleanup : pixman-0.18.4-1.el6_0.1.i686 5/5

Installed:

pixman-devel.i686 0:0.26.2-5.1.el6_5

Updated:

libXfont.i686 0:1.4.5-3.el6_5 pixman.i686 0:0.26.2-5.1.el6_5

Complete!

[root@CentOS62 ~]# /etc/init.d/vncserver start

正在启动 VNC 服务器:1:root

New 'CentOS62:1 (root)' desktop is CentOS62:1

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/CentOS62:1.log

[确定]

[root@CentOS62 ~]#

问题搞定

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

linux 6.8启动vnc失败,centos vnc启动失败解决方法 的相关文章

随机推荐