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 / 问题 / 1008731
Accepted
stackinator
stackinator
Asked: 2018-02-23 06:28:01 +0800 CST2018-02-23 06:28:01 +0800 CST 2018-02-23 06:28:01 +0800 CST

如何同时安装多个 Snap?

  • 772

如何同时安装三个 Snap 应用程序?让我们选择这三个

  • 笔记
  • 喊
  • 挂断

也许

sudo snap install notes && sudo snap install shout && sudo snap install hangups

或者

sudo snap install notes shout hangups

?

snap
  • 3 3 个回答
  • 4140 Views

3 个回答

  • Voted
  1. Best Answer
    popey
    2018-02-23T06:33:58+08:002018-02-23T06:33:58+08:00

    您给出的第二个示例有效,条件是所有三个都使用相同的限制模型。如果其中一个需要--classic限制模型,则需要单独的安装步骤。

    很简单:-

    snap install notes shout hangups
    

    将工作。正如你在这里看到的: -

    alan@hal:~$ snap install notes shout hangups
    shout 0.53.0 from 'snapcrafters' installed
    hangups 0.4.4 from 'tomdryer' installed
    notes 0.9.0~gitb6e3b34 from 'notes-developers' installed
    
    • 10
  2. Ciro Santilli OurBigBook.com
    2021-06-08T03:08:51+08:002021-06-08T03:08:51+08:00

    并行安装

    snap 现在还有一个实验性的并行安装功能,记录在:https ://snapcraft.io/docs/parallel-installs

    从 snap 2.50.1 Ubuntu 21.04 开始,如果您这样做:

    sudo snap install hello-world hello-world_foo
    

    它失败了:

    error: cannot install "hello-world", "hello-world_foo": experimental feature disabled - test it by
           setting 'experimental.parallel-instances' to true
    

    之后:

    sudo snap set system experimental.parallel-instances=true
    

    安装工作。

    但是,如果您再次运行:

    sudo snap install hello-world hello-world_foo
    

    它现在失败了:

    error: cannot install "hello-world", "hello-world_foo": no install/refresh information results from
           the store
    

    并以状态 1 退出,这很烦人,因为在开发和重新运行我的设置脚本时,默认情况下我使用它是幂等的。已在以下位置提出此问题:尝试使用 snap 安装多个应用程序时出现问题

    • 1
  3. ambigus9
    2020-05-04T09:15:06+08:002020-05-04T09:15:06+08:00

    可以只指定需要的地方

    sudo snap install slack --classic && sudo snap install skype --classic && sudo snap install spotify htop
    

    希望有所帮助!:)

    • 0

相关问题

  • 如何运行 snapcraft 网络聊天示例?

  • Ubuntu可以在哪里快照写入数据?

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