ubuntu server 18.04 上安装 GNOME gnome-core 图形桌面

#/bin/bash
# ubuntu 其他版本软件仓库: https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.3e221b11Lyoail
# ubuntu18 阿里云仓库源 配置案例:
echo "
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
" >>  /etc/apt/sources.list
# 写入软件仓库配置文件
sudo rm /var/lib/dpkg/updates/*
sudo apt-get update                       
# 更新软件仓库,否则无法安装出现问题:
# E: dpkg uas interrupted, you nus tn an ually run 'dpkg --com figure-a' to correct the proble n. -+a:7k-11m7uAo..L.o..f..7.~m m一 -11 
# E: dpkg 被中断,您必须手工运行 sudo dpkg –configure -a 解决此问题。

apt-get install x-window-system-core
apt-get install gnome-core
# 安装GNOME桌面环境。

startx
# 执行以下命令,启动图形化桌面。
上一篇:世界人工智能大会AI同传成标配,表现日渐成熟


下一篇:进退两难,丰田触“电”