{"id":1902,"date":"2022-12-02T22:20:37","date_gmt":"2022-12-02T21:20:37","guid":{"rendered":"https:\/\/theroamingworkshop.cloud\/b\/?p=1902"},"modified":"2023-11-19T15:29:57","modified_gmt":"2023-11-19T14:29:57","slug":"installing-unityhub-in-ubuntu-22","status":"publish","type":"post","link":"https:\/\/theroamingworkshop.cloud\/b\/en\/1902\/installing-unityhub-in-ubuntu-22\/","title":{"rendered":"Installing UnityHub in Ubuntu 22"},"content":{"rendered":"\n<p>If you recently updated to Ubuntu 22 and tried to install UnityHub following the steps in their website:<\/p>\n\n\n\n<p><a href=\"https:\/\/docs.unity3d.com\/hub\/manual\/InstallHub.html#install-hub-linux\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.unity3d.com\/hub\/manual\/InstallHub.html#install-hub-linux<\/a><\/p>\n\n\n\n<p>Everything looks fine until you run the program and this happens:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;&gt; unityhub\nThis error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:\nConnectionLost: Timeout! Cannot connect to Licensing Client within 60000ms\n    at Function.fromType (\/opt\/unityhub\/resources\/app.asar\/node_modules\/@licensing\/licensing-sdk\/lib\/core\/ipc\/licensingIpc.js:51:16)\n    ...<\/code><\/pre>\n\n\n\n<p>Luckily, surfing the web you usually find the solution, and this one was in the same Unity forum:<\/p>\n\n\n\n<p><a href=\"https:\/\/forum.unity.com\/threads\/installing-unity-hub-on-ubuntu-22-04.1271816\/#post-8136473\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/forum.unity.com\/threads\/installing-unity-hub-on-ubuntu-22-04.1271816\/#post-8136473<\/a><\/p>\n\n\n\n<p>Let&#8217;s check the installation step by step:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-unityhub-on-linux\">Installing UnityHub on Linux<\/h2>\n\n\n\n<p>Following the official steps from their site (first link in the post):<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Add the Unity repository to your sources list:<br><code>sudo sh -c 'echo \"deb https:\/\/hub.unity3d.com\/linux\/repos\/deb stable main\" > \/etc\/apt\/sources.list.d\/unityhub.list'<\/code><\/li>\n\n\n\n<li>Add the public key to make it trustful:<br><code>wget -qO - https:\/\/hub.unity3d.com\/linux\/keys\/public | sudo apt-key add -<\/code><\/li>\n\n\n\n<li>Update your repositories:<br><code>sudo apt update<\/code><\/li>\n\n\n\n<li>Install UnityHub:<br><code>sudo apt-get install unityhub<\/code><\/li>\n<\/ol>\n\n\n\n<p>It should all go fine, despite an error with some \u00abchrome-sandbox\u00bb folder. But that&#8217;s not the error. Running <code>unityhub<\/code> from the terminal we have the above error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-libssl\">Installing libssl1.1<\/h2>\n\n\n\n<p>The problem is that <strong>Ubuntu 22<\/strong> uses a more recent version of <strong>libssl<\/strong> package, but we can still download the version used by Ubuntu 20.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Access Ubuntu 20 packages site, where you find libssl1.1<br><a rel=\"noreferrer noopener\" href=\"https:\/\/packages.ubuntu.com\/focal\/amd64\/libssl1.1\/download\" target=\"_blank\">https:\/\/packages.ubuntu.com\/focal\/amd64\/libssl1.1\/download<\/a><\/li>\n\n\n\n<li>Right-click -> save as&#8230; over the link to the file starting with <strong>security.ubuntu.com\/ubuntu&#8230;<\/strong> (or just click the link below; you&#8217;ll download a .deb instaler file)<br><a rel=\"noreferrer noopener\" href=\"http:\/\/security.ubuntu.com\/ubuntu\/pool\/main\/o\/openssl\/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb\" target=\"_blank\">http:\/\/security.ubuntu.com\/ubuntu\/pool\/main\/o\/openssl\/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb<\/a><\/li>\n\n\n\n<li>Double-click the downloaded file and install the package.<\/li>\n\n\n\n<li>Now run <code>unityhub<\/code> in the terminal and done!<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"632\" src=\"https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2022\/12\/hub-1024x632.png\" alt=\"\" class=\"wp-image-1897\" srcset=\"https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2022\/12\/hub-1024x632.png 1024w, https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2022\/12\/hub-300x185.png 300w, https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2022\/12\/hub-768x474.png 768w, https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2022\/12\/hub-676x417.png 676w, https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2022\/12\/hub.png 1079w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>\ud83d\udc26 <code><a rel=\"noreferrer noopener\" href=\"https:\/\/twitter.com\/roamingworkshop\" target=\"_blank\">@RoamingWorkshop<\/a><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you recently updated to Ubuntu 22 and tried to install UnityHub following the steps in their website: https:\/\/docs.unity3d.com\/hub\/manual\/InstallHub.html#install-hub-linux Everything looks fine until you run the program and this happens: Luckily, surfing the web you usually find the solution, and this one was in the same Unity forum: https:\/\/forum.unity.com\/threads\/installing-unity-hub-on-ubuntu-22-04.1271816\/#post-8136473 Let&#8217;s check the installation step by [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1899,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74,61,605,44],"tags":[463,465,455,457,459,461],"class_list":["post-1902","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3den","category-game-dev","category-linux-en","category-software","tag-ubuntu","tag-ubuntu-22","tag-unity","tag-unity-3d","tag-unity-hub","tag-unityhub","post-preview"],"_links":{"self":[{"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/posts\/1902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/comments?post=1902"}],"version-history":[{"count":1,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/posts\/1902\/revisions"}],"predecessor-version":[{"id":1903,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/posts\/1902\/revisions\/1903"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/media\/1899"}],"wp:attachment":[{"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/media?parent=1902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/categories?post=1902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/tags?post=1902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}