Centos 7.4 Error Handling installation GNOME Desktop

When installing KVM, in order to facilitate post-install virtual machine installed directly GNOME Desktop, so you can direct desktop operating management, KVM related controls after the installation, start vncserver error, as follows:

[root@localhost home]# systemctl status -l vncserver@:1.service

● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled)
Active: inactive (dead) since 二 2019-07-30 10:01:37 CST; 7min ago
Main PID: 10855 (code=exited, status=0/SUCCESS)

7月 30 10:01:34 localhost.localdomain systemd[1]: Starting Remote desktop service (VNC)...
7月 30 10:01:37 localhost.localdomain systemd[1]: Started Remote desktop service (VNC).

[root@localhost home]# vncserver

New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log

By looking at the log analysis:
[root @ localhost Home] # More /root/.vnc/localhost.localdomain:1.log

Xvnc TigerVNC 1.8.0 - built Nov 2 2018 19:05:14
Copyright (C) 1999-2017 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12001000, The X.Org Foundation

Tue Jul 30 10:04:03 2019
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5901
vncext: created VNC server for screen 0
The XKEYBOARD keymap compiler (xkbcomp) reports:

Internal error: Could not resolve keysym XF86WWAN
Internal error: Could not resolve keysym XF86RFKill
Errors from xkbcomp are not fatal to the X server
Killing Xvnc process ID 11012

yum groupinstall "GNOME Desktop" "Graphical Administration Tools" -y
总计
1.6 MB/s | 2.4 MB 00:00:01
Running transaction check
Running transaction test

Transaction check error:
file /boot/efi/EFI/centos from install of fwupdate-efi-12-5.el7.centos.x86_64 conflicts with file from package grub2-common-1:2.02-0.64.el7.centos.noarch

Error Summary:
The problem is due to fwupdate-efi assembly grub2-common conflicts lead to installation error, this time by updating grub2-common components to deal with.
as follows:

[root@localhost ~]# yum update grub2-common
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile

  • base: mirrors.aliyun.com
  • warm: mirrors.aliyun.com
  • extras: mirrors.aliyun.com
  • updates: mirrors.aliyun.com
    is addressing dependencies
    -> Checking affairs
    ---> Package grub2-common.noarch.1.2.02-0.64.el7.centos will be upgraded
    -> Processing dependency grub2- common = 1: 2.02-0.64.el7.centos, which is the package 1: grub2-tools-2.02-0.64.el7.centos.x86_64 required
    -> processing dependency grub2-common = 1: 2.02-0.64.el7 .centos, which is the package 1: grub2-tools-minimal- 2.02-0.64.el7.centos.x86_64 required
    -> processing dependency grub2-common = 1: 2.02-0.64.el7.centos, which is a package 1: grub2-pc-2.02-0.64.el7.centos.x86_64 need
    -> processing dependency grub2-common = 1: 2.02-0.64.el7.centos, it is the package 1: grub2-pc-modules- 2.02 -0.64.el7.centos.noarch required
    -> processing dependency grub2-common = 1: 2.02-0.64.el7.centos, which is the package 1: grub2-tools-extra- 2.02-0.64.el7.centos. x86_64 need
    ---> package grub2-common.noarch.1.2.02-0.76.el7.centos.1 will be updated
    -> checking Services
    ---> Package grub2-pc.x86_64.1.2.02-0.64.el7.centos will be upgraded
    -> Processing dependency grub2-pc = 1: 2.02-0.64.el7.centos, it is the package 1 : grub2-2.02-0.64.el7.centos.x86_64 need
    ---> package grub2-pc.x86_64.1.2.02-0.76.el7.centos.1 will be updated
    ---> package grub2-pc-modules .noarch.1.2.02-0.64.el7.centos will be upgraded
    ---> package grub2-pc-modules.noarch.1.2.02-0.76.el7.centos.1 will be updated
    ---> package grub2 -tools.x86_64.1.2.02-0.64.el7.centos will be replaced
    ---> package grub2-tools.x86_64.1.2.02-0.64.el7.centos will be upgraded
    ---> package grub2-tools .x86_64.1.2.02-0.76.el7.centos.1 will be discarded
    ---> package grub2-tools-extra.x86_64.1.2.02-0.64.el7.centos will be upgraded
    ---> package grub2 -tools-extra.x86_64.1.2.02-0.76.el7.centos.1 will be discarded
    ---> package grub2-tools-minimal.x86_64.1.2.02-0.64.el7.centos will be upgraded
    ---> Package grub2-tools-minimal.x86_64.1.2.02-0.76.el7.centos.1 will be discarded
    -> Checking affairs
    ---> packages grub2.x86_64.1.2.02-0.64. el7.centos will be upgraded
    ---> packages grub2.x86_64.1.2.02-0.64.el7.centos will be replaced
    ---> packages will grub2.x86_64.1.2.02-0.76.el7.centos.1 is discarded
    -> complete dependency resolution

Resolve dependencies

================================================== ================================================== ====================
Package Penalty for architecture version of the source size

Installing:
grub2 the x86_64. 1: Updates 2.02-0.76.el7.centos.1 K 31 is
replaced. 1 grub2.x86_64: 2.02-0.64.el7.centos
grub2 the x86_64-Tools. 1: 1.8 M 2.02-0.76.el7.centos.1 Updates
Alternatively grub2-tools.x86_64 1: 2.02-0.64.el7.centos
grub2-Tools-Extra the x86_64. 1: 995 K 2.02-0.76.el7.centos.1 Updates
Alternatively grub2-tools.x86_64 1: 2.02-0.64.el7.centos
grub2-tools-minimal x86_64 1: 2.02-0.76.el7.centos.1 updates 172 k
Alternatively grub2-tools.x86_64 1: 2.02-0.64.el7.centos
updating:
grub2-Common noarch. 1: 2.02-0.76.el7. centos.1 updates 728 k
in dependence updated:
grub2 the x86_64-PC. 1: 2.02-0.76.el7.centos.1 updates 31 is K
grub2-PC-noarch modules. 1: 846 K 2.02-0.76.el7.centos.1 updates

Transaction Summary

4 installation package
upgrade a package (package dependent +2)

总下载量:4.5 M
Is this ok [y/d/N]: y
Downloading packages:
(1/7): grub2-2.02-0.76.el7.centos.1.x86_64.rpm | 31 kB 00:00:00
(2/7): grub2-pc-2.02-0.76.el7.centos.1.x86_64.rpm | 31 kB 00:00:00
(3/7): grub2-common-2.02-0.76.el7.centos.1.noarch.rpm | 728 kB 00:00:00
(4/7): grub2-pc-modules-2.02-0.76.el7.centos.1.noarch.rpm | 846 kB 00:00:00
(5/7): grub2-tools-2.02-0.76.el7.centos.1.x86_64.rpm | 1.8 MB 00:00:00
(6/7): grub2-tools-extra-2.02-0.76.el7.centos.1.x86_64.rpm | 995 kB 00:00:00
(7/7): grub2-tools-minimal-2.02-0.76.el7.centos.1.x86_64.rpm | 172 kB 00:00:00

MB Total 4.5 / S | 4.5 MB 00:00:00
Running Transaction the Check
Running the Test Transaction
Transaction the Test succeeded.
Running Transaction
is being updated: 1: grub2 common-2.02-0.76.el7.centos.1.noarch- 1/14
is being installed: 1: grub2-tools-minimal- 2.02-0.76.el7.centos.1.x86_64 2/14
Installing: 1: grub2-tools-2.02-0.76.el7.centos.1.x86_64 3/14
Installing: 1: grub2-tools-extra-2.02-0.76.el7.centos.1.x86_64 4/14
updating: 1: grub2-pc-modules -2.02-0.76.el7.centos.1.noarch 5/14
updating: 1: grub2-pc-2.02-0.76.el7.centos.1.x86_64 6/14
is being installed: 1: grub2-2.02-0.76.el7.centos.1.x86_64 7/14
cleanup: 1: grub2-2.02-0.64.el7 .centos.x86_64 8/14
clean-up: 1: grub2-pc-2.02-0.64.el7.centos.x86_64 9/14
Cleanup: 1: grub2-tools-extra -2.02-0.64.el7.centos.x86_64 10/14
Cleanup: 1: grub2-pc-modules -2.02-0.64.el7.centos.noarch 11/14
Cleanup: 1: grub2- tools-minimal-2.02-0.64.el7.centos.x86_64 12/14
cleanup: 1: grub2-tools-2.02-0.64.el7.centos.x86_64 13/14
cleanup: 1: grub2-common-2.02-0.64.el7 . centos.noarch 14/14
verification: 1: grub2-pc-2.02-0.76.el7.centos.1.x86_64 1/14
verification: 1: grub2-common-2.02-0.76.el7.centos.1.noarch 2 / 14
verification: 1: grub2-tools-2.02-0.76.el7.centos.1.x86_64 3/14
verification: 1: grub2-2.02-0.76.el7.centos.1.x86_64 4/14
verification: 1 : grub2-pc-modules-2.02-0.76.el7.centos.1.noarch 5/14
verification: 1: grub2-tools-minimal -2.02-0.76.el7.centos.1.x86_64 6/14
verification: 1 : grub2-tools-extra-2.02-0.76.el7.centos.1.x86_64 7/14
Verification: 1: grub2-tools-minimal -2.02-0.64.el7.centos.x86_64 8/14
verification: 1: grub2-tools-extra -2.02-0.64.el7.centos.x86_64 9/14
verification: 1 : grub2-pc-2.02-0.64.el7.centos.x86_64 10/14
verification: 1: grub2-common-2.02-0.64.el7.centos.noarch 11/14
verification: 1: grub2-tools-2.02-0.64 .el7.centos.x86_64 12/14
verification: 1: grub2-tools-2.02-0.64.el7.centos.x86_64 13/14
verification: 1: grub2-2.02-0.64.el7.centos.x86_64 14/14
authentication in: 1: grub2-2.02-0.64.el7.centos.x86_64 15/14
verification: 1: grub2-pc-modules -2.02-0.64.el7.centos.noarch 16/14

Installed:
grub2.x86_64. 1: 2.02-0.76.el7.centos.1 grub2-tools.x86_64. 1: 2.02-0.76.el7.centos.1
grub2-Tools-extra.x86_64. 1: 2.02-0.76.el7.centos. 1 grub2-tools-minimal.x86_64 1: 2.02-0.76.el7.centos.1

Updated:
grub2-common.noarch 1: 2.02-0.76.el7.centos.1

Be upgraded as dependencies:
grub2-pc.x86_64. 1: 2.02-0.76.el7.centos.1 grub2-PC-modules.noarch. 1: 2.02-0.76.el7.centos.1

Alternatively:
grub2.x86_64. 1: 2.02-0.64.el7.centos grub2-tools.x86_64. 1: 2.02-0.64.el7.centos

Finished!
[root @ localhost ~] #

Then reinstall
yum groupinstall "GNOME Desktop" "Graphical Administration Tools" -y

[root@localhost ~]# systemctl status -l vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled)
Active: active (running) since 二 2019-07-30 11:09:26 CST; 12s ago
Main PID: 45172 (Xvnc)
CGroup: /system.slice/system-vncserver.slice/vncserver@:1.service
? 45172 /usr/bin/Xvnc :1 -auth /root/.Xauthority -desktop localhost.localdomain:1 (root) -fp catalogue:/etc/X11/fontpath.d -geometry 1024x768 -pn -rfbauth /root/.vnc/passwd -rfbport 5901 -rfbwait 30000

7 Yue 30 11:09:23 localhost.localdomain systemd [1]: Starting Remote desktop service (VNC) ...
7 Yue 30 11:09:26 localhost.localdomain systemd [1]: Started Remote desktop service (VNC).
then you can start vncser.

Guess you like

Origin blog.51cto.com/372550/2426479