{"id":10607,"date":"2022-08-21T09:50:55","date_gmt":"2022-08-21T01:50:55","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=10607"},"modified":"2022-08-21T13:19:38","modified_gmt":"2022-08-21T05:19:38","slug":"ubuntu-16-04-lts-snap","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ubuntu-16-04-lts-snap.html","title":{"rendered":"Ubuntu 16.04 LTS\u5982\u4f55\u4f7f\u7528Snap\u8f6f\u4ef6\u5305"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nUbuntu 16.04 LTS \u4e3a\u7528\u6237\u5e26\u6765\u4e86\u4f17\u591a\u65b0\u529f\u80fd\u7279\u6027<\/a>\uff0c\u5176\u4e2d\u975e\u5e38\u53d7\u5173\u6ce8\u7684\u5c31\u6709\u5bf9 Snap \u8f6f\u4ef6\u5305\u7684\u652f\u6301\u3002\u636e Canonical \u5b98\u65b9\u6d88\u606f\u79f0\uff0cSnap \u8f6f\u4ef6\u5305\u62e5\u6709\u66f4\u52a0\u7a33\u5b9a\u548c\u5b89\u5168\u7684\u7279\u6027\uff0c\u672c\u6587\u6211\u4eec\u5c31\u4e00\u8d77\u6765\u770b\u770b\u5982\u4f55\u5728 Ubuntu 16.04 \u4e2d\u4f7f\u7528 Snap \u8f6f\u4ef6\u5305\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"ubuntu-16.04-sanp01\"<\/p>\n

\u4ec0\u4e48\u662fSnap\u8f6f\u4ef6\u5305<\/strong><\/div>\n

\u9996\u5148\u8981\u8bf4\u4ec0\u4e48\u662f\u300c\u5305\u300d\uff1fLinux \u4e2d\u5e94\u7528\u7a0b\u5e8f\u7684\u5b89\u88c5\u901a\u5e38\u6709\u4e24\u79cd\u65b9\u5f0f\uff1a<\/p>\n

    \n
  1. \u76f4\u63a5\u901a\u8fc7\u6e90\u4ee3\u7801\u7f16\u8bd1\u5b89\u88c5\uff0c\u9700\u8981\u7528\u6237\u624b\u52a8\u6267\u884c\u811a\u672c\u3001\u5904\u7406\u4f9d\u8d56\u7b49\u4e0d\u592a\u4eba\u6027\u5316\u7684\u64cd\u4f5c\uff1b<\/li>\n
  2. \u7531\u8f6f\u4ef6\u53d1\u884c\u5546\u5c06\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u300c\u8f6f\u4ef6\u5305\u300d\u8fdb\u884c\u4ea4\u4ed8\uff0c\u4f8b\u5982 Ubuntu \u7528\u6237\u76f4\u63a5\u53cc\u51fb .deb\uff08Debian \u8f6f\u4ef6\u5305\uff09 \u6587\u4ef6\u5373\u53ef\u5b89\u88c5\u8f6f\u4ef6\u3002<\/li>\n<\/ol>\n

    \u73b0\u5728 Ubuntu \u641e\u4e00\u4e2a\u65b0\u7684 Snap \u5305\u7ba1\u7406\u7cfb\u7edf\u662f\u56e0\u4e3a\u57fa\u4e8e Debian .deb<\/span> \u6587\u4ef6\u5e76\u88ab\u5927\u91cf\u4f7f\u7528\u7684\u5305\u7ba1\u7406\u65b9\u5f0f\u4e0d\u597d\u5417\uff1f\u5176\u5b9e\u4e0d\u7136\uff0c\u5b83\u53ea\u5bf9\u5305\u7ba1\u7406\u8fdb\u884c\u4e86\u89c4\u8303\u5e76\u66f4\u591a\u4f1a\u5728\u7c7b\u4f3c\u65e0\u4eba\u673a\u9879\u76ee\u7b49\u7269\u8054\u7f51\u9886\u57df\u8fdb\u884c\u4f7f\u7528\u3002<\/p>\n

    Canonical \u5b98\u65b9\u662f\u8fd9\u4e48\u8fdb\u884c\u63cf\u8ff0\u7684\uff1a<\/p>\n

    .snap<\/span> \u5305\u4e2d\u5305\u542b\u4e86 Ubuntu \u6838\u5fc3\u4e2d\u7684\u6240\u6709\u4f9d\u8d56\u5173\u7cfb\uff0c\u8fd9\u6bd4\u4f20\u7edf .deb<\/span> \u6216\u57fa\u4e8e RPM \u7684\u4f9d\u8d56\u5904\u7406\u66f4\u6709\u4f18\u52bf\u3002\u66f4\u91cd\u8981\u7684\u662f\uff0c\u5f00\u53d1\u4eba\u5458\u4e0d\u5fc5\u62c5\u5fc3\u5e94\u7528\u88ab\u5206\u53d1\u5230\u7528\u6237\u7cfb\u7edf\u4e4b\u540e\u5176\u5b83\u65b9\u9762\u89e6\u53d1\u7684\u7cfb\u7edf\u53d8\u66f4\u3002<\/p><\/blockquote>\n

    \u4f7f\u7528Snap\u8f6f\u4ef6\u5305<\/strong><\/div>\n

    \u901a\u5e38\u6211\u4eec\u90fd\u4f7f\u7528 apt-get<\/span> \u6765\u7ba1\u7406 Ubuntu \u4e2d\u7684\u8f6f\u4ef6\u5305\uff0c 16.04 \u53d1\u5e03\u4e4b\u540e\u5efa\u8bae\u5927\u5bb6\u76f4\u63a5\u4f7f\u7528 apt<\/span> \u547d\u4ee4\u3002\u4e0e\u6b64\u7c7b\u4f3c\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528<\/p>\n

    snap find<\/span> \u547d\u4ee4\u6765\u5217\u51fa\u9002\u7528\u4e8e\u5f53\u524d\u7cfb\u7edf\u7684 Snap \u8f6f\u4ef6\u5305\u3002<\/p>\n

    \"ubuntu-16.04-sanp02\"<\/p>\n

    \u5b89\u88c5 Snap \u5305\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a<\/strong><\/span><\/div>\n
    sudo snap install <\/span><\u5305\u540d><\/span><\/pre>\n

    \"ubuntu-16.04-sanp03\"<\/p>\n

    \u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u4e2d\u5df2\u5b89\u88c5\u7684 Snap \u8f6f\u4ef6\u5305\uff1a<\/strong><\/span><\/div>\n
    snap list<\/span><\/pre>\n

    \"ubuntu-16.04-sanp04\"<\/p>\n

    \u5927\u5bb6\u770b\u5230\u4e86\u5427\uff0cUbuntu 16.04 \u7684 Ubuntu \u6838\u5fc3\u5df2\u7ecf\u4f7f\u7528 Snap\u3002<\/p>\n

    Snap \u8fd8\u63d0\u4f9b\u4e86\u5176\u5bf9\u7cfb\u7edf\u7684\u66f4\u6539\u5386\u53f2\u8bb0\u5f55\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u67e5\u770b\uff1a<\/strong><\/span><\/div>\n
    snap changes<\/span><\/pre>\n

    \"ubuntu-16.04-sanp05\"<\/p>\n

    \u8981\u5347\u7ea7 Snap \u8f6f\u4ef6\u5305\u7248\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4<\/strong><\/span><\/div>\n
    sudo snap refresh <\/span><\u5305\u540d><\/span><\/pre>\n

    \"ubuntu-16.04-sanp06\"<\/p>\n

    \u79fb\u9664 Snap \u8f6f\u4ef6\u5305\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a<\/strong><\/span><\/div>\n
    sudo snap remove <\/span><\u5305\u540d><\/span><\/pre>\n

    \"ubuntu-16.04-sanp07\"<\/p>\n

    \u76ee\u524d\u6765\u770b\uff0c\u91c7\u7528 Snap \u65b9\u5f0f\u6253\u5305\u7684\u8f6f\u4ef6\u975e\u5e38\u5c11\uff0c\u4e0d\u8fc7\u56fd\u5916\u5df2\u7ecf\u6709\u5927\u7684\u5f00\u6e90\u8f6f\u4ef6\u53d1\u884c\u5546\u5df2\u7ecf\u516c\u5f00\u8868\u6001\u5c06\u9010\u6b65\u5f00\u59cb\u91c7\u7528 Snap \u8f6f\u4ef6\u5305\u53d1\u884c\u8f6f\u4ef6\u3002Canonical \u4e5f\u5df2\u7ecf\u63a8\u51fa\u4e86 Snapcraft \u5de5\u5177\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u6253\u5305 Snap \u5e94\u7528\u3002<\/p>\n

    \n

    \u539f\u6587\u6765\u81ea\uff1ahhttp:\/\/www.sysgeek.cn\/use-snap-packages-ubuntu-16-04\/<\/a><\/p>\n

    \u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/ubuntu-16-04-lts-snap.html<\/a>\u7f16\u8f91\uff1a\u674e\u5e05\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

    \u5bfc\u8bfb Ubuntu 16.04 LTS \u4e3a\u7528\u6237\u5e26\u6765\u4e86\u4f17\u591a\u65b0\u529f\u80fd\u7279\u6027\uff0c\u5176\u4e2d\u975e\u5e38\u53d7\u5173\u6ce8\u7684\u5c31\u6709\u5bf9 Snap \u8f6f\u4ef6\u5305\u7684 […]<\/p>\n","protected":false},"author":63,"featured_media":10617,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-10607","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/10607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=10607"}],"version-history":[{"count":6,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/10607\/revisions"}],"predecessor-version":[{"id":250627,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/10607\/revisions\/250627"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/10617"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=10607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=10607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=10607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}