{"id":1582,"date":"2024-01-03T14:59:48","date_gmt":"2024-01-03T06:59:48","guid":{"rendered":"https:\/\/www.mustenaka.cn\/?p=1582"},"modified":"2024-01-03T15:23:02","modified_gmt":"2024-01-03T07:23:02","slug":"linuxubuntu_install_unity_and_trap","status":"publish","type":"post","link":"https:\/\/www.mustenaka.cn\/index.php\/2024\/01\/03\/linuxubuntu_install_unity_and_trap\/","title":{"rendered":"Linux(Ubuntu)\u5b89\u88c5Unity\u4ee5\u53ca\u8e29\u5230\u7684\u5751"},"content":{"rendered":"<h1>Linux\uff08Ubuntu\uff09\u5b89\u88c5Unity<\/h1>\n<p>Unity\u5b98\u65b9\u63d0\u4f9b\u4e86\u5b89\u88c5\u7684\u6559\u7a0b\uff0c\u53ef\u4ee5\u53c2\u8003\u8fd9\u4e00\u7bc7\u6587\u7ae0\uff1a<a href=\"https:\/\/docs.unity3d.com\/hub\/manual\/InstallHub.html#install-hub-linux\">https:\/\/docs.unity3d.com\/hub\/manual\/InstallHub.html#install-hub-linux<\/a><\/p>\n<p>\u6ce8\u610f\uff0c\u53ea\u8981\u662f\u5b98\u65b9\u63d0\u4f9b\u7684\u5b89\u88c5\u6d41\u7a0b\uff0cUnity\u4e5f\u90fd\u662f\u9700\u8981\u9996\u5148\u5b89\u88c5UnityHub\u518d\u5b89\u88c5UnityEditor\u7684\uff0c\u800c\u4e14Linux\u7248\u672c\u76f8\u5bf9Bug\u6bd4\u8f83\u591a\uff0c\u8fd8\u8981\u9762\u5bf9\u4f17\u591a\u7684\u53d1\u884c\u7248\u672c\uff0c\u56e0\u6b64\u6559\u7a0b\u7684\u5177\u4f53\u6b65\u9aa4\u53ef\u80fd\u4f1a\u7565\u6709\u4e0d\u540c\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\uff1a\u9700\u8981\u751f\u6210\u516c\u7528\u7684\u6ce8\u518ckey<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\" bash=\"\">wget -qO - https:\/\/hub.unity3d.com\/linux\/keys\/public | gpg --dearmor | sudo tee \/usr\/share\/keyrings\/Unity_Technologies_ApS.gpg &gt; \/dev\/null<\/code><\/pre>\n<p>\u7b2c\u4e8c\u6b65\uff1a\u5c06\u8fd9\u4e2akey\u6dfb\u52a0\u5230Unityhub\u4e2d<\/p>\n<pre><code class=\"lang-shell\">sudo sh -c 'echo \"deb [signed-by=\/usr\/share\/keyrings\/Unity_Technologies_ApS.gpg] https:\/\/hub.unity3d.com\/linux\/repos\/deb stable main\" &gt; \/etc\/apt\/sources.list.d\/unityhub.list'<\/code><\/pre>\n<p>\u7b2c\u4e09\u6b65\uff1a\u4f7f\u7528apt\u547d\u4ee4\u5b89\u88c5UnityHub<\/p>\n<pre><code class=\"lang-shell\">sudo apt update\r\n<\/code><code class=\"lang-shell\">sudo apt-get install unityhub<\/code><\/pre>\n<p>\u7b2c\u56db\u90e8\uff1a\u901a\u8fc7Unity\u5b89\u88c5UnityEditor<\/p>\n<p>\u6253\u5f00\u7ec8\u7aefterminal\uff0c\u8f93\u5165\u547d\u4ee4unityhub\uff0c\u7b49\u5f85Unityhub\u52a0\u8f7d\u542f\u52a8\u3002\u6b64\u65f6\u767b\u9646\u81ea\u5df1\u7684Unity\u8d26\u6237\u5bc6\u7801\uff0c\u5c31\u53ef\u4ee5\u5f53\u4f5c\u6b63\u5e38\u7684UnityHub\u6765\u4f7f\u7528\uff0c\u5e76\u4e14\u4e0b\u8f7d\u5b89\u88c5UnityEditor\u5e76\u8fd0\u884c\u3002<\/p>\n<h1>\u8bc1\u4e66\u95ee\u9898\u5bfc\u81f4\u65e0\u6cd5update<\/h1>\n<p>\u5728\u6267\u884c\u4e0a\u8ff0\u6b65\u9aa4\u7684\u7b2c\u4e09\u6b65\uff0c\u5728\u6267\u884capt update\u65f6\uff0c\u5f88\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e2agpg\u7684\u8bc1\u4e66\u95ee\u9898\uff0c\u5bfc\u81f4update\u65e0\u6cd5\u8fdb\u884c\uff0c\u66f4\u522b\u8bf4\u540e\u9762\u7684\u6dfb\u52a0Unityhub\u4e86\uff0c\u8be6\u7ec6\u7684\u62a5\u9519\u7c7b\u4f3c\u4e8e\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\" bash=\"\">Err:6 https:\/\/hub-dist.unity3d.com\/artifactory\/hub-debian-prod-local stable InRelease\r\n  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BE3E6EA534E8243F\r\nFetched 2,739 B in 3s (1,079 B\/s)\r\nReading package lists... Done\r\nW: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https:\/\/hub-dist.unity3d.com\/artifactory\/hub-debian-prod-local stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BE3E6EA534E8243F\r\nW: Failed to fetch https:\/\/hub.unity3d.com\/linux\/repos\/deb\/dists\/stable\/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BE3E6EA534E8243F\r\nW: Some index files failed to download. They have been ignored, or old ones used instead.<\/code><\/pre>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a\u6709\u9057\u4f20Public Key\u7684\u4ee3\u7801\uff1a<code class=\"\" bash=\"\">BE3E6EA534E8243F<\/code>\uff0c\u8fd9\u4e2apublic key\u5c31\u662fUnity\u5b98\u65b9\u53d1\u5e03\u5728apt\u91cc\u9762\u7684key\uff0c\u6211\u4eec\u4e3b\u52a8\u53bb\u641c\u7d22\uff0c\u4f46\u662f\u65e0\u6cd5\u8fdb\u884c\u9a8c\u8bc1\u3002<\/p>\n<p>\u6b64\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u6539\u6210\u4f7f\u7528\u624b\u52a8\u4e0b\u8f7d\u5e76\u4e14\u590d\u5236\u914d\u7f6e\u7684\u65b9\u6cd5\u5904\u7406\u8fd9\u4e2apublic key\uff0c\u9996\u5148\u5148\u4ece\u5b98\u65b9\u7684linux key\u4e2d\u4e0b\u8f7dpublic key\u8bc1\u4e66\u6587\u4ef6\u3002<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\" bash=\"\">wget -o- https:\/\/hub.unity3d.com\/linux\/keys\/public<\/code><\/pre>\n<p>\u518d\u4f7f\u7528gpg\u547d\u4ee4\u5c06\u5176\u548cunity keyring\u8fdb\u884c\u5012\u5165\u6ce8\u518c<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\" bash=\"\">gpg --no-default-keyring --keyring .\/unity_keyring.gpg --import public\r\ngpg --no-default-keyring --keyring .\/unity_keyring.gpg --export &gt; .\/unity-archive-keyring.gpg\r\nsudo mv .\/unity-archive-keyring.gpg \/etc\/apt\/trusted.gpg.d\/\r\n<\/code><\/pre>\n<p>\u6700\u540e\u9a8c\u8bc1\u5b89\u88c5\uff0c\u91cd\u590d\u4f7f\u7528apt\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\" bash=\"\">sudo apt update\r\nsudo apt-get install unityhub<\/code><\/pre>\n<h3>\u53c2\u8003\u6587\u732e<\/h3>\n<p>https:\/\/stackoverflow.com\/questions\/68992799\/warning-apt-key-is-deprecated-manage-keyring-files-in-trusted-gpg-d-instead\/71384057#71384057<\/p>\n<p>https:\/\/askubuntu.com\/questions\/1395684\/unity3d-installation-issues-gpg-error-repository-not-signed<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\uff08Ubuntu\uff09\u5b89\u88c5Unity Unity\u5b98\u65b9\u63d0\u4f9b\u4e86\u5b89\u88c5\u7684\u6559\u7a0b\uff0c\u53ef\u4ee5\u53c2\u8003\u8fd9\u4e00\u7bc7\u6587\u7ae0\uff1ahtt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,118],"tags":[7,116],"class_list":["post-1582","post","type-post","status-publish","format-standard","hentry","category-linux","category-unity3d","tag-linux","tag-unity3d"],"views":5149,"_links":{"self":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/1582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1582"}],"version-history":[{"count":3,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/1582\/revisions"}],"predecessor-version":[{"id":1585,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/1582\/revisions\/1585"}],"wp:attachment":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}