AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1280798
Accepted
Paddy Landau
Paddy Landau
Asked: 2020-10-08 03:31:20 +0800 CST2020-10-08 03:31:20 +0800 CST 2020-10-08 03:31:20 +0800 CST

重复错误:无法安装 desktop-icons@csoriano

  • 772

在几周前我全新安装的 Ubuntu 20.04 时,我一直遇到 Ubuntu 的默认 Gnome 扩展Desktop Icons的问题,此外它的功能非常有限。

不幸的是,它无法正常卸载。

因此,我按照说明(如几个地方的建议)将其卸载如下。

sudo rm --recursive /usr/share/gnome-shell/extensions/desktop-icons@csoriano/   # After making a backup

随着它的消失,我能够安装名称奇怪但性能优越得多的桌面图标 NG (DING)(由同一作者编写),它运行良好。

不幸的是,我每天多次收到以下错误通知:

Can't install "desktop-icons@csoriano":
This is an extension enabled by your current mode, you can't install manually any update in that session.

重复错误通知

我不知道如何阻止此错误重演。我尝试了三件事。

  • 卸载 Desktop Icons NG (DING),然后从上面恢复已删除的文件夹。这没有任何区别,而且无论如何它并没有像您想象的那样恢复原始的桌面图标。
  • 尝试手动安装桌面图标,但它拒绝安装,给出同样的错误。
  • Reinstall gnome-shell-extension-desktop-icons,这是最初安装桌面图标的方式。重新启动后,这只会让我回到第 1 格。(我无法卸载gnome-shell-extension-desktop-icons,因为它会删除ubuntu-desktop。)

我不知道还能做什么。

我随后重新安装了 Desktop Icons NG (DING),否则我的桌面上什么都没有,但是这个错误每天都会继续通知我好几次。

这是我的扩展列表。

$ gnome-extensions list
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

我正在使用带有 Gnome 3.36.3 的标准 Ubuntu 20.04

请问如何才能停止这些通知?

gnome desktop-icons
  • 3 3 个回答
  • 3099 Views

3 个回答

  • Voted
  1. Best Answer
    Niklas E.
    2020-10-09T12:40:38+08:002020-10-09T12:40:38+08:00

    我遇到了同样的问题,并通过desktop-icons@csoriano使用他们的 git 存储库手动重建文件夹来修复它。

    显然,您不能真正从系统desktop-icons@csoriano中删除和其他扩展。/usr/share/gnome-shell/extensions/Ubuntu 20.04 预计它们将在全球范围内存在。在我看来,他们的更改只能被其他(全局和本地)扩展主动覆盖。另一种方法是重建一个“修改”版本的扩展,它根本什么都不做。

    /usr/share/gnome-shell/extensions/desktop-icons@csoriano/以下是删除后完全重建原始文件的步骤:

    # Corona-like I stayed at home for this. You can also do this in another location, doesn't matter much for the following steps...
    cd ~
    # Install the building tools used by the makers of desktop-icons@csoriano
    sudo apt update
    sudo apt install meson git
    # Clone their repository to ~/desktop-icons/.
    # MAKE SURE there is no file or directory in home called "desktop-icons"!
    git clone https://gitlab.gnome.org/World/ShellExtensions/desktop-icons
    # Enter the cloned repository.
    cd desktop-icons
    # Prepare building the extension using meson.
    # This will set the location of the build in it's config. So even if /usr/ is a root location, we don't need sudo for now.
    meson --prefix=/usr/ --localedir=share/gnome-shell/extensions/desktop-icons@csoriano/locale .build
    # Build the extension. You can execute this using sudo, otherwise you'll be asked for the root password by ninja.
    ninja -C .build install
    
    # We're technically done. Now let us clean up what we needed for the above.
    # Remove the cloned repository.
    rm -rf ~/desktop-icons/
    # Remove building tools. You can keep these packages if you like, but they aren't needed for the extension anymore.
    sudo apt remove meson git
    sudo apt autoremove
    
    # Apply changes (you might do that after you continued reading this post to the end).
    # Alternatively you can just restart gnome, for that see https://stackoverflow.com/q/46565019/7638119
    sudo reboot
    

    有关更多信息,并且如果您在执行这些步骤时遇到问题,请访问官方存储库以及他们的问题页面。

    以下是修改扩展的步骤,使其不执行任何操作:

    cd /usr/share/gnome-shell/extensions/desktop-icons@csoriano
    # empty its entry script
    sudo mv extension.js extension.js.old
    sudo touch extension.js
    

    (这可能会导致 Ubuntu 20.04 的未来更新出现问题。要撤消此修改,只需运行cd /usr/share/gnome-shell/extensions/desktop-icons@csoriano; sudo mv extension.js.old extension.js。)


    您可能会遇到这种情况,因为您按照官方解决方法通过安装 nemo来修复 Ubuntu 20.04 的桌面图标,就像我一样。我强烈建议您撤消此操作并等待官方补丁。可以在 launchpad.net 上查看补丁更新。在那里也可以看到其他解决方法。

    如果您想卸载nemo并等待问题的官方补丁,请反向执行替代安装:

    # Remove nemo from local autostart.
    rm ~/.config/autostart/nemo-autostart-with-gnome.desktop
    # Remove the nemo package.
    sudo apt remove nemo
    sudo apt autoremove
    
    # Apply changes.
    # Alternatively you can just restart gnome, for that see https://stackoverflow.com/q/46565019/7638119
    sudo reboot
    
    • 3
  2. Rohit Kumar Sharma
    2020-12-19T03:40:37+08:002020-12-19T03:40:37+08:00

    **** 在“软件和更新”中,我启用了 (main)、(Universe)、(restricted) 和 (multiverse)*** 它需要启用 Universe 包,如果不需要,可以在安装后禁用它

    解决方案 1:: 尝试使用命令重新安装

    sudo apt install gnome-shell-extension-desktop-icons
    

    然后重启..

    解决方案 2::如果已安装且无法使用, 请先尝试删除软件包

    sudo apt purge gnome-shell-extension-desktop-icons
                          or
    sudo apt remove gnome-shell-extension-desktop-icons
    

    然后再次使用

    sudo apt install gnome-shell-extension-desktop-icons
    

    然后重新启动.. 希望这有帮助

    但是这个扩展在从桌面拖放时会导致问题,所以如果你需要从桌面拖放,请卸载它并使用扩展 https://extensions.gnome.org/extension/2087/desktop-icons-ng-ding 不要忘记使用删除扩展后重新启动

    sudo apt purge gnome-shell-extension-desktop-icons
                       or 
    sudo apt remove gnome-shell-extension-desktop-icons
    
    • 2
  3. Anonymous
    2022-07-06T01:56:13+08:002022-07-06T01:56:13+08:00

    对我来说,安装gnome-shell-extension-desktop-icons-ng是为我解决的问题。

    • -1

相关问题

  • 如何安装 KDE?

  • 为什么我的时钟、指示器小程序和通知区域有时会在我重新启动时移动?我怎样才能防止这种情况?

  • 停止菜单图标闪烁

  • 是否有适用于 IMAP 邮件帐户的 Gnome 小程序?

  • 如果顶部面板中缺少会话小程序,如何注销?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve