为什么 apt 包 Chromium-browser 安装 snap 包?

ked*_*dad 17 package-management apt snap

当我做

apt-get install chromium-browser
Run Code Online (Sandbox Code Playgroud)

它下载一些 .deb 文件,然后安装一个 snap 包:

Selecting previously unselected package chromium-browser.
(Reading database ... 227048 files and directories currently installed.)
Preparing to unpack .../chromium-browser_77.0.3865.120-0ubuntu1~snap1_amd64.deb
...
=> Installing the chromium snap
==> Checking connectivity with the snap store
==> Installing the chromium snap
Warning: /snap/bin was not found in your $PATH. If you've not restarted your
         session since you installed snapd, try doing that. Please see
         https://forum.snapcraft.io/t/9469 for more details.

chromium 78.0.3904.70 from Canonical? installed
=> Snap installation complete
Unpacking chromium-browser (77.0.3865.120-0ubuntu1~snap1) ...
Setting up chromium-browser (77.0.3865.120-0ubuntu1~snap1) ...
Processing triggers for mime-support (3.63ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu1) ...
(base) keddad@keddad:~$
Run Code Online (Sandbox Code Playgroud)

但我没有要求它通过 snap 获取我的铬,我想得到一个普通的 .deb 包。毕竟它有效,但只是感觉不对。如果我想获得快照,我使用snap,而不是apt。为什么这种行为被认为是正常的?

N0r*_*ert 10

对于 Ubuntu 19.10,这是开发人员的决定。请参阅发行说明中的引用:

Ubuntu 19.10 新功能

Chromium 浏览器仅在 19.10 中作为 snap 提供。这篇博文有更多细节。

这是正常和预期的。

  • 相关的,因为 chromium snap 版本有一个 xdg-open-URL 的硬编码白名单,破坏了除了“http”、“https”、“mailto”、“snap”、“help”、“apt”、“zoommtg”之外的几乎所有内容。如果您尝试打开 slack/notListed url,它会默默失败...请参阅:https://bugs.launchpad.net/snapd/+bug/1776873 (4认同)
  • Linux 代表着自由。让我们选择吧,为什么要向我们脸上扔啪啪声呢? (3认同)
  • 有没有办法解决这个问题?我尝试添加铬 PPA,但它仍然要我安装 snapd。 (2认同)
  • 基于 snap 的 Chromium 的新增和改进功能之一是,它无法访问我在 Ubuntu 20.04 系统上创建的单独安装的 `/opt` 分区上的任何内容。直到并且除非基于 snap 的 Chromium 允许访问它正在运行的分区以外的分区,否则我将坚持使用非基于 snap 的版本。 (2认同)

小智 8

我有同样的问题。由于 Chromium,我从我的 Ubuntu 中禁用/删除了snap/snapd并且不想再次安装它。由于 Ubuntu 和 Debian 通常兼容,我从 Debian 存储库安装了 Chromium:https : //askubuntu.com/a/1206153/1038363

  • 这可能是这里最好的解决方案,因为 Canonical 在最初声明它永远不会取代 apt 之后试图强制使用 snapd。 (4认同)

小智 6

我遇到了同样的问题。想要 Chromium,但没有通过 Snap。发现 Chromium Dev PPA,目前工作稳定:https : //launchpad.net/~saiarcot895/+archive/ubuntu/chromium-dev