如何避免包含 snap 包的 apt 搜索结果?

如何避免包含 snap 包的 apt 搜索结果?

读了一点之后,我删除了 snapd 和朋友这里这里这里

不过,当我使用 ie thunderbird 运行 apt search 时,它会返回与 snapd 相关的结果:

$: apt search thunderbird
Sorting... Done
Full Text Search... Done

thunderbird/noble 2:1snap1-0ubuntu3 amd64
  Transitional package - thunderbird -> thunderbird snap

当我安装它时,它会通知我该软件需要 snapd:

$: apt install thunderbird
apt install thunderbird
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 thunderbird : PreDepends: snapd but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


我确实应该看到以下内容:

$: apt install thunderbird
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package thunderbird

是否可以配置 apt 使其停止在存储库中查找 snap 包?就目前情况而言,我感到困惑和恼火,因为 snap 结果使我的搜索变得混乱,我不确定包是否可用。我显然不想看到只有 snap 的包,因为我不想使用 snap。

我目前使用的是 Ubuntu 24.04 LTS。

相关内容