About WSL安装Ubuntu桌面环境(包括切换apt源)

* WSL安装Ubuntu桌面环境

1、切换源
root@kylin:~# cp /etc/apt/sources.list /etc/apt/sources.list.bak
root@kylin:~# vim /etc/apt/sources.list

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

更新升级
root@kylin:~# sudo apt update

root@kylin:~# apt list --upgradable
root@kylin:~# sudo apt upgrade

安装ubuntu-desktop、unity、ccsm
root@kylin:~# sudo apt-get install ubuntu-desktop unity compizconfig-settings-manager
root@kylin:~# sudo apt autoremove ubuntu-desktop

你可能感兴趣的:(Linux&Shell)