无法安装 GNOME Shell 主题所需的扩展

无法安装 GNOME Shell 主题所需的扩展

我不断收到这个输出:

 soham@fortress:~$ sudo apt-get install gnome-shell-extensions gnome-tweak-tool    
    Reading package lists... Done
    Building dependency tree      
    Reading state information... Done    
    gnome-tweak-tool is already the newest version.
    The following NEW packages will be installed:
      gnome-shell-extensions
    0 upgraded, 1 newly installed, 0 to remove and 43 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/121 kB of archives.
    After this operation, 849 kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    (Reading database ... 179291 files and directories currently installed.)
    Unpacking gnome-shell-extensions (from .../gnome-shell-extensions_3.4.1~git20120508.dfd7191a-0ubuntu1~12.04~ricotz0_all.deb) ...
    dpkg: error processing /var/cache/apt/archives/gnome-shell-extensions_3.4.1~git20120508.dfd7191a-0ubuntu1~12.04~ricotz0_all.deb (--unpack):
     trying to overwrite '/usr/share/locale/lv/LC_MESSAGES/gnome-shell-extensions.mo', which is also in package gnome-shell-extensions-common 3.2.0-0ubuntu1~oneiric1
    No apport report written because MaxReports is reached already                                                                  
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Errors were encountered while processing:
     /var/cache/apt/archives/gnome-shell-extensions_3.4.1~git20120508.dfd7191a-0ubuntu1~12.04~ricotz0_all.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

更新:已修复。现在 GNOME Tweak Tool 在扩展启用按钮旁边显示一个感叹号,表示“扩展不支持 shell 版本”。我的 GNOME shell 已经是最新版本了。救命!

答案1

运行以下命令:

sudo apt-get -f install

强制安装由于错误而未安装的软件包。然后再次运行安装命令。

然后,apt-get -f install来回反复。很有可能你会成功。

答案2

使用来自的 gnome-shell-extensions 包 gnome 的启动板

答案3

如果您使用的是 GNOME 3.6,则收到以下信息属于正常现象:

Extension doesn't support shell version

由于 GNOME 3.6 太新,所以开发人员需要重写它以使其支持新版本。

相关内容