I tried to install Deepin Desktop Environment on my Ubuntu 14.04.1 LTS because it look so fascinating. But unfortunately I failed. The worse thing is that when I restarted my PC and logged in again, the default desktop Unity failed ! And here is my solution to make it work again
I start with undoing everything that I did when tried to install Deepin.
Use Ctrl + Alt + F1 to enter the tty console, you will find out the system version become Deepin. I will explain it later.
- Remove the deb source of Deepin in source.list
sudo vi /etc/apt/souces.list
deb http://packages.linuxdeepin.com/deepin trusty main non-free universe
deb-src http://packages.linuxdeepin.com/deepin trusty main non-free universe
- Delete GPG key of Deepin
sudo apt-key list | grep 209088E7 #this is the id of the key which was imported when I install Deepin
#make sure the result of grep is not empty
#or you don't have to do the removing
sudo apt-key del 209088E7
- Reinstall Unity
sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity
Reboot. Then the unity is recovered.
But there is another problem, I cannot open my software-center !!
I tried to reinstall it but saw something like this
Traceback (most recent call last):
File "/usr/bin/software-center", line 149, in <module>
from softwarecenter.ui.gtk3.app import SoftwareCenterAppGtk3
File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 49, in <module>
from softwarecenter.db.application import Application
File "/usr/share/software-center/softwarecenter/db/application.py", line 25, in <module>
from softwarecenter.backend.channel import is_channel_available
File "/usr/share/software-center/softwarecenter/backend/channel.py", line 25, in <module>
from softwarecenter.distro import get_distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 165, in <module>
distro_instance=_get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 148, in _get_distro
module = __import__(distro_id, globals(), locals(), [], -1)
ImportError: No module named Deepin
Think about the weird system version I saw on tty terminal. The release version of the System was changed while installing the Deepin
Open lsb-release
sudo vi /etc/lsb-release
I found out that the DISTRIB_ID and other things was become Deepin associative
Change it to the default of Ubuntu 14.04.1 LTS which is listed below
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
Change the /etc/issue to correct the system version prefix on tty ternimal
sudo vi /etc/issue
to
Ubuntu 14.04.1 LTS \n \l
Now reinstall the software-center
sudo apt-get autoremove software-center
sudo apt-get install software-center
And reboot
Now the software-center is recovered.
At last, let’s clean the annoying “System program problem detected” popup window
sudo rm /var/carsh/*
Done !!
BTW, I would appreciate if anyone could tell me how to install the Deepin Desktop on Ubuntu 14.04.