{"id":44119,"date":"2023-02-25T07:06:14","date_gmt":"2022-07-04T03:02:56","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/"},"modified":"2024-01-15T11:54:35","modified_gmt":"2024-01-15T03:54:35","slug":"%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/","title":{"rendered":"\u5728Ubuntu\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Go\u8bed\u8a00"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u5728Ubuntu\u4e0a\u4f7f\u7528apt\u5b89\u88c5Go\u8bed\u8a00\u65f6\uff0c\u53ef\u80fd\u4f1a\u5b89\u88c5\u4e00\u4e2a\u7565\u65e7\u7684\u7248\u672c\uff0c\u4e3a\u4e86\u5b89\u88c5\u6700\u65b0\u7684\u7248\u672c\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u8c03\u6574\u3002<\/p>\n<h1>\u73af\u5883<\/h1>\n<p>Ubuntu 20.04.3 \u957f\u671f\u652f\u6301\u7248<\/p>\n<h1>\u5b89\u88c5Go\u8bed\u8a00<\/h1>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0cGo\u7684\u7248\u672c\u4e3a1.13\uff0cAPT\u7684\u6e90\u6307\u5411Ubuntu\u7684\u7f51\u7ad9\u3002<\/p>\n<pre class=\"post-pre\"><code>$ apt info golang\r\nPackage: golang\r\nVersion: 2:1.13~1ubuntu2\r\nPriority: optional\r\nSection: devel\r\nSource: golang-defaults\r\nOrigin: Ubuntu\r\nMaintainer: Ubuntu Developers &lt;ubuntu-devel-discuss@lists.ubuntu.com&gt;\r\nOriginal-Maintainer: Go Compiler Team &lt;team+go-compiler@tracker.debian.org&gt;\r\nBugs: https:\/\/bugs.launchpad.net\/ubuntu\/+filebug\r\nInstalled-Size: 12.3 kB\r\nDepends: golang-1.13, golang-doc (&gt;= 2:1.13~1ubuntu2), golang-go (&gt;= 2:1.13~1ubuntu2), golang-src (&gt;= 2:1.13~1ubuntu2)\r\nHomepage: https:\/\/golang.org\r\nDownload-Size: 2,900 B\r\nAPT-Sources: http:\/\/jp.archive.ubuntu.com\/ubuntu focal\/main amd64 Packages\r\nDescription: Go programming language compiler - metapackage\r\n The Go programming language is an open source project to make\r\n programmers more productive. Go is expressive, concise, clean, and\r\n efficient. Its concurrency mechanisms make it easy to write programs\r\n that get the most out of multicore and networked machines, while its\r\n novel type system enables flexible and modular program construction.\r\n Go compiles quickly to machine code yet has the convenience of\r\n garbage collection and the power of run-time reflection. It's a\r\n fast, statically typed, compiled language that feels like a\r\n dynamically typed, interpreted language.\r\n .\r\n This package is a metapackage that, when installed, guarantees\r\n that (most of) a full Go development environment is installed.\r\n<\/code><\/pre>\n<p>\u5728APT\u6e90\u4e2d\u6dfb\u52a0PPA\u3002<\/p>\n<pre class=\"post-pre\"><code>$ sudo add-apt-repository ppa:longsleep\/golang-backports\r\n$ sudo apt update\r\n<\/code><\/pre>\n<p>\u5f53\u518d\u6b21\u68c0\u67e5\u8f6f\u4ef6\u5305\u65f6\uff0c\u6211\u4eec\u53d1\u73b0APT\u6e90\u548c\u8bed\u8a00\u7248\u672c\u5df2\u7ecf\u66f4\u65b0\u3002<\/p>\n<pre class=\"post-pre\"><code>$ apt info golang\r\nPackage: golang\r\nVersion: 2:1.17~1longsleep1\r\nPriority: optional\r\nSection: devel\r\nSource: golang-defaults\r\nMaintainer: Ubuntu Developers &lt;ubuntu-devel-discuss@lists.ubuntu.com&gt;\r\nOriginal-Maintainer: Go Compiler Team &lt;team+go-compiler@tracker.debian.org&gt;\r\nInstalled-Size: 12.3 kB\r\nDepends: golang-1.17, golang-doc (&gt;= 2:1.17~1longsleep1), golang-go (&gt;= 2:1.17~1longsleep1), golang-src (&gt;= 2:1.17~1longsleep1)\r\nDownload-Size: 5,008 B\r\nAPT-Sources: http:\/\/ppa.launchpad.net\/longsleep\/golang-backports\/ubuntu focal\/main amd64 Packages\r\nDescription: Go programming language compiler - metapackage\r\n The Go programming language is an open source project to make\r\n programmers more productive. Go is expressive, concise, clean, and\r\n efficient. Its concurrency mechanisms make it easy to write programs\r\n that get the most out of multicore and networked machines, while its\r\n novel type system enables flexible and modular program construction.\r\n Go compiles quickly to machine code yet has the convenience of\r\n garbage collection and the power of run-time reflection. It's a\r\n fast, statically typed, compiled language that feels like a\r\n dynamically typed, interpreted language.\r\n .\r\n This package is a metapackage that, when installed, guarantees\r\n that (most of) a full Go development environment is installed.\r\n<\/code><\/pre>\n<p>\u5b89\u88c5Go\u3002<\/p>\n<pre class=\"post-pre\"><code>$ sudo apt install golang\r\n<\/code><\/pre>\n<p>\u5df2\u5b89\u88c5\u7248\u672c\u4e3a1.17\u3002<\/p>\n<pre class=\"post-pre\"><code>$ go version\r\ngo version go1.17.5 linux\/amd64\r\n<\/code><\/pre>\n<h1>\u8bf7\u53c2\u9605<\/h1>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u5728Ubuntu\u4e0a\u4f7f\u7528apt\u5b89\u88c5Go\u8bed\u8a00\u65f6\uff0c\u53ef\u80fd\u4f1a\u5b89\u88c5\u4e00\u4e2a\u7565\u65e7\u7684\u7248\u672c\uff0c\u4e3a\u4e86\u5b89\u88c5\u6700\u65b0\u7684\u7248\u672c\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u4e00\u4e9b [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-44119","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728Ubuntu\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Go\u8bed\u8a00 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728ubuntu\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684go\u8bed\u8a00\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728Ubuntu\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Go\u8bed\u8a00\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u5728Ubuntu\u4e0a\u4f7f\u7528apt\u5b89\u88c5Go\u8bed\u8a00\u65f6\uff0c\u53ef\u80fd\u4f1a\u5b89\u88c5\u4e00\u4e2a\u7565\u65e7\u7684\u7248\u672c\uff0c\u4e3a\u4e86\u5b89\u88c5\u6700\u65b0\u7684\u7248\u672c\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u4e00\u4e9b [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728ubuntu\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684go\u8bed\u8a00\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-04T03:02:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-15T03:54:35+00:00\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/\",\"name\":\"\u5728Ubuntu\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Go\u8bed\u8a00 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-07-04T03:02:56+00:00\",\"dateModified\":\"2024-01-15T03:54:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728Ubuntu\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Go\u8bed\u8a00\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728Ubuntu\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Go\u8bed\u8a00 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728ubuntu\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684go\u8bed\u8a00\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Ubuntu\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Go\u8bed\u8a00","og_description":"\u9996\u5148 \u5728Ubuntu\u4e0a\u4f7f\u7528apt\u5b89\u88c5Go\u8bed\u8a00\u65f6\uff0c\u53ef\u80fd\u4f1a\u5b89\u88c5\u4e00\u4e2a\u7565\u65e7\u7684\u7248\u672c\uff0c\u4e3a\u4e86\u5b89\u88c5\u6700\u65b0\u7684\u7248\u672c\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u4e00\u4e9b [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728ubuntu\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684go\u8bed\u8a00\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-07-04T03:02:56+00:00","article_modified_time":"2024-01-15T03:54:35+00:00","author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/","name":"\u5728Ubuntu\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Go\u8bed\u8a00 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-07-04T03:02:56+00:00","dateModified":"2024-01-15T03:54:35+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728Ubuntu\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Go\u8bed\u8a00"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8ubuntu%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e7%9a%84go%e8%af%ad%e8%a8%80%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=44119"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44119\/revisions"}],"predecessor-version":[{"id":59236,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44119\/revisions\/59236"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=44119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=44119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=44119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}