当前位置: 首页 > 新闻动态 > 技术教程

centos7无法安装图形界面

作者:王林 浏览: 发布日期:2020-04-02
[导读]:centos7无法安装图形界面的解决方法是:1、执行【yum -y update】命令升级内核版本;2、执行命令【wget http://mirrors.aliyun.com/repo/Centos-7.repo】安装yum源。

问题:

centos7安装图形界面提示错误:connection X Server lost

原因:缺少一些启动项。

解决方案:

yum updata

附:

安装方法:

yum -y update  
yum -y groupinstall "X Window System"
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target  #设置图形界面为默认启动界面

错误二:There are no enabled repos.

原因:是没有指定yum的repos源文件

解决方案:

1、安装阿里源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

2、安装网易源 

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo

相关教程推荐:centos教程

免责声明:转载请注明出处:http://www.sczxchw.cn/news/214732.html

扫一扫高效沟通

多一份参考总有益处

免费领取网站策划SEO优化策划方案

请填写下方表单,我们会尽快与您联系
感谢您的咨询,我们会尽快给您回复!