經查證是unity誤卸載了,我使用了命令:
sudo apt-get remove --purge ibus
解決方法是:
使用以下命令:重置compiz:
dconf reset -f /org/compiz/
重置compiz后,使用以下命令重啟Unity:
setsid unity
此外,如果你想將Unity圖標也進行重置,試試以下的命令吧:
unity --reset-icons
如果直接是使用上述方法不可以,可能原因是我在之前做了一下操作(我覺得這些不是必要的,但不確定):
sudo apt-get install ibus
sudo apt-get install linux-generic sudo apt-get install ubuntu-desktop
注:本文參考了 Ubuntu16.04任務欄與啟動器消失 ,感謝。