{"id":4167,"date":"2017-07-28T11:08:52","date_gmt":"2017-07-28T09:08:52","guid":{"rendered":"https:\/\/florianbrinkmann.com\/en\/?p=4167"},"modified":"2020-02-09T10:59:47","modified_gmt":"2020-02-09T09:59:47","slug":"reinstall-bash-on-ubuntu-on-windows","status":"publish","type":"post","link":"https:\/\/florianbrinkmann.com\/en\/reinstall-bash-on-ubuntu-on-windows-4167\/","title":{"rendered":"Reinstall \u00bbBash on Ubuntu on Windows\u00ab"},"content":{"rendered":"\n<p>If you want to reinstall <em>Bash on Ubuntu on Windows<\/em>, you can follow these steps. In the command prompt, run the following command to uninstall the currently installed version:<\/p>\n\n\n<pre class=\"wp-block-code lang-bash\"><span><code class=\"hljs\">lxrun \/uninstall \/full<\/code><\/span><\/pre>\n\n\n<p><code class=\"lang-bash\">\/full<\/code> also removes the home folder. After that, you should be able to run a reinstall with the following command (theoretically):<\/p>\n\n\n<pre class=\"wp-block-code lang-bash\"><span><code class=\"hljs\">lxrun \/install \/y<\/code><\/span><\/pre>\n\n\n<p>This does not work for me\u2026 I always get an error (I think it was this one: <code class=\"lang-bash\">Error: 0x80070091<\/code>). Luckily, I am not the first one with that problem \u2013 the reason for that is the not-deleted <code class=\"lang-bash\">lxss<\/code> folder in the local AppData directory. Before running the installation command, use the following one for removing the folder (<a href=\"https:\/\/github.com\/Microsoft\/BashOnWindows\/issues\/4#issuecomment-206680188\">I got the solution from a GitHub issue<\/a>):<\/p>\n\n\n<pre class=\"wp-block-code lang-bash\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">rmdir \/S <span class=\"hljs-string\">\"\\\\?\\C:\\Users\\Username\\AppData\\Local\\lxss\"<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Of course, you need to replace <code class=\"lang-bash\">Username<\/code> with your user name. Afterward, you can run <code class=\"lang-bash\">lxrun \/install \/y<\/code> to start the installation (hopefully) without any errors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to reinstall Bash on Ubuntu on Windows, you can follow these steps. In the command prompt, run the following command to uninstall the currently installed version: \/full also removes the home folder. After that, you should be able to run a reinstall with the following command (theoretically): This does not work for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wpf_show_in_dewp_planet_feed":false,"flobn_post_versions":"","webmentions_disabled_pings":false,"webmentions_disabled":false,"lazy_load_responsive_images_disabled":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-4167","post","type-post","status-publish","format-standard","hentry","category-tips"],"wp-worthy-pixel":{"ignored":false,"public":null,"server":null,"url":null},"wp-worthy-type":"normal","_links":{"self":[{"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/posts\/4167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/comments?post=4167"}],"version-history":[{"count":2,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/posts\/4167\/revisions"}],"predecessor-version":[{"id":5866,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/posts\/4167\/revisions\/5866"}],"wp:attachment":[{"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/media?parent=4167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/categories?post=4167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/tags?post=4167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}