我知道,您可以使用snap info刷新应用程序的确切通道,查找“跟踪”部分,如下所示:
$ snap info snap-store
name: snap-store
summary: Snap Store is a graphical desktop application for discovering, installing and managing
snaps on Linux.
publisher: Canonical✓
store-url: https://snapcraft.io/snap-store
contact: https://bugs.launchpad.net/snap-store/
license: unset
description: |
Snap Store showcases featured and popular applications with useful descriptions, ratings, reviews
and screenshots.
Applications can be found either through browsing categories
or by searching.
Snap Store can also be used to switch channels, view and alter snap permissions and view and
submit reviews and ratings.
Snap Store is based on GNOME Software, optimized for the Snap experience.
commands:
- snap-store
- snap-store.ubuntu-software
- snap-store.ubuntu-software-local-file
snap-id: gjf3IPXoRiipCu9K0kVu52f0H56fIksg
tracking: latest/stable/ubuntu-20.04
refresh-date: today at 19:05 CEST
channels:
latest/stable: 3.31.1+git187.84b64e0b 2020-04-22 (415) 45MB -
latest/candidate: 3.31.1+git189.991d1d1d 2020-08-09 (472) 45MB -
latest/beta: 3.36.0-82-g80486d0 2020-09-11 (481) 53MB -
latest/edge: 20200414.ac9047f 2020-04-14 (375) 50MB -
installed: 3.36.0-82-g80486d0 (481) 53MB -
[1]+ Done snap-store但是,同一命令输出的通道列表并不包含所有实际的通道:在上面的示例中,“更新/稳定/ubuntu-20.04”不在列表中。
如何获得与快照相关的完整通道列表?
谢谢。
发布于 2020-10-17 18:28:46
在https://snapcraft.io/docs/channels上解释了实际的术语和用途。
所以在你的例子中:tracking: latest/stable/ubuntu-20.04
以下是文档对分支主题的说明
分支是发布的快照通道的一个可选的更精细的细分,它允许创建一个短暂的快照序列,这些快照可以根据需要由snap开发人员按需推送,以帮助修复或临时试验。分支名称传达了它们的目的,比如修复程序but 123,但是名称并没有以正常的方式公开,比如使用snap信息。相反,任何人只要知道他们的名字就可以跟踪他们。
所以用户没有列出分支的方法,对不起。相反,分支机构的意图恰恰相反--限制对某些测试人员或设备的软件推送。在您的例子中,运行20.04而不是16.04的人拥有不同的Gnome堆栈和完全不同的包数据。
让我们来测试一下我们是否真的能触摸到一个分支。让我们尝试一个具有已知分支名的snap refresh (成功)和一个假分支名(没有这样的分支错误):
$ sudo snap refresh --channel=stable/ubuntu-20.04 snap-store
snap "snap-store" has no updates available
$ sudo snap refresh --channel=stable/ubuntu-blah snap-store
error: requested a non-existing branch on latest/stable for snap "snap-store": ubuntu-blahhttps://askubuntu.com/questions/1284618
复制相似问题