Ubuntu 18.04 中没有 Dock

Ubuntu 18.04 中没有 Dock

当我单击“活动”时,仅能看到默认的 GNOME Dock:

在此处输入图片描述 在此处输入图片描述

我正在尝试做的事情:

  1. 我尝试删除 GNOME 文件,例如.gnome .gnome2 .gconf .gconfd .metacity
  2. 我禁用所有已安装的 Gnome 扩展Gnome 调整图形用户界面。
  3. 我全部“重置为默认值”Gnome 调整
  4. 我使用以下命令重置了 gnome 中的所有更改dconf reset -f /org/gnome/
  5. 我尝试安装sudo apt install gnome-shell-extension-ubuntu-dock但收到已安装的消息:gnome-shell-extension-ubuntu-dock is already the newest version (0.9.1ubuntu18.04.3).
  6. 数千次重启和注销......

答案1

我个人已经经历过很多次了,因为我在很多全新安装的 Ubuntu 18.04 中做的第一件事就是运行,sudo rm -rf /usr/share/gnome-shell/extenisons/*这将删除预先启用的扩展,但 apt 仍然认为这并没有从系统中删除,这就是为什么它说gnome-shell-extension-ubuntu-dock is already the newest version (0.9.1ubuntu18.04.3).

例子:

pratap@i7-4770U:~$ ls /usr/share/gnome-shell/extensions/
[email protected]  [email protected]
pratap@i7-4770U:~$ sudo rm -rf /usr/share/gnome-shell/extensions/*
[sudo] password for pratap: 
pratap@i7-4770U:~$ ls /usr/share/gnome-shell/extensions/
pratap@i7-4770U:~$ sudo apt install gnome-shell-extension-ubuntu-dock
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gnome-shell-extension-ubuntu-dock is already the newest version (0.9.1ubuntu18.04.3).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
pratap@i7-4770U:~$ sudo apt purge gnome-shell-extension-ubuntu-dock
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  gnome-shell-extension-ubuntu-dock* ubuntu-desktop*
0 upgraded, 0 newly installed, 2 to remove and 8 not upgraded.
After this operation, 687 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 233472 files and directories currently installed.)
Removing ubuntu-desktop (1.417.1) ...
Removing gnome-shell-extension-ubuntu-dock (0.9.1ubuntu18.04.3) ...
Processing triggers for libglib2.0-0:amd64 (2.56.4-0ubuntu0.18.04.2) ...
pratap@i7-4770U:~$ 

因此,解决方法是使用以下命令清除扩展

sudo apt purge gnome-shell-extension-ubuntu-dock

然后重新安装

sudo apt install gnome-shell-extension-ubuntu-dock

在这两个命令之间,我不确定..这些命令是否是必需的。

sudo apt autoremove && sudo apt autoclean
gnome-session-logout

然后从任何 tty 安装它,当我遇到这种情况时我不记得了。但猜测该sudo apt purge gnome-shell-extension-ubuntu-dock命令也会ubuntu-desktop删除

相关内容