ubuntu 16.04 图形化界面,显示问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
devinhee
帖子: 20
注册时间: 2018-08-14 9:58
系统: ubuntu18.04

ubuntu 16.04 图形化界面,显示问题

#1

帖子 devinhee » 2018-09-11 11:16

ubuntu16.04 服务器,安装图形化界面后,无法进入
安装命令:

代码: 全选

sudo apt-get install ubuntu-desktop
成功安装!
执行进入,图形化界面:

代码: 全选

startx
出现以下问题:

代码: 全选

[code]
devin@ubuntu:~$ startx


X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-128-generic x86_64 Ubuntu
Current Operating System: Linux ubuntu 4.4.0-105-generic #128-Ubuntu SMP Thu Dec 14 12:42:11 UTC 2017 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-105-generic root=UUID=e2048966-750b-4795-a9a2-7b477d6681bf ro net.ifnames=0 console=tty0 console=ttyS0,115200n8 quiet
Build Date: 10 August 2018  09:33:05AM
xorg-server 2:1.18.4-0ubuntu0.8 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.33.6
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/devin/.local/share/xorg/Xorg.1.log", Time: Tue Sep 11 11:12:04 2018
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/home/devin/.local/share/xorg/Xorg.1.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Cannot assign requested address
xinit: server error
Couldn't get a file descriptor referring to the console
[/code]
哪位大神有什么好的办法,求指点!
非常感谢!
头像
astolia
论坛版主
帖子: 6444
注册时间: 2008-09-18 13:11

Re: ubuntu 16.04 图形化界面,显示问题

#2

帖子 astolia » 2018-09-11 11:25

startx并不适合用来启动现在的完整桌面环境
sudo systemctl start lightdm
devinhee
帖子: 20
注册时间: 2018-08-14 9:58
系统: ubuntu18.04

Re: ubuntu 16.04 图形化界面,显示问题

#3

帖子 devinhee » 2018-09-11 13:17

没有报错,但是还是无法进入图形化界面,执行之后什么都没有。
头像
astolia
论坛版主
帖子: 6444
注册时间: 2008-09-18 13:11

Re: ubuntu 16.04 图形化界面,显示问题

#4

帖子 astolia » 2018-09-11 15:47

你的服务器系统,带不带显示器?默认的X环境需要显示器才能运行的。没有的话,需要用xvfb这类无头环境下的Xserver实现。
如果有显示器,用journalctl -u lightdm看出了什么问题
回复