{"id":3950,"date":"2016-08-31T19:29:41","date_gmt":"2016-08-31T13:59:41","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=3950"},"modified":"2019-05-12T02:53:51","modified_gmt":"2019-05-12T02:53:51","slug":"bash-error-unable-resolve-host-bash-ubuntu-windows","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/bash-error-unable-resolve-host-bash-ubuntu-windows\/","title":{"rendered":"Bash Error &#8220;Unable to resolve host&#8221; (Bash on Ubuntu on Windows)"},"content":{"rendered":"<p>When you run the Sudo command the Bash console (Bash on Ubuntu on Windows), the following error may occur.<!--more-->\n<\/p>\n<div class=\"err\">sudo: unable to resolve host <hostname><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/bash-resolve-host-1.png\" alt=\"bash host name not resolved\" width=\"600\" height=\"189\" class=\"alignnone size-full wp-image-3951\" \/><\/p>\n<p>To resolve the problem, run these commands in the Bash console<\/p>\n<pre>sudo su<br>echo 127.0.0.1 computer_name >> \/etc\/hosts<\/pre>\n<p>That should fix the host name resolution!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you run the Sudo command the Bash console (Bash on Ubuntu on Windows), the following error may occur.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8],"tags":[64],"class_list":["post-3950","post","type-post","status-publish","format-standard","hentry","category-windows-10","tag-bash"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3781,"url":"https:\/\/www.winhelponline.com\/blog\/bash-does-not-start-unsupported-console-settings-windows-10\/","url_meta":{"origin":3950,"position":0},"title":"Bash does not start &#8211; Error &#8220;Unsupported console settings&#8221; in Windows 10","author":"Ramesh","date":"August 31, 2016","format":false,"excerpt":"When you try to launch Bash.exe (Bash on Ubuntu on Windows) in Windows 10, the console window may open and close immediately. This happens if legacy mode is turned on for Command Prompt.Also, if you open a Command Prompt window and type bash.exe, the following error would show up:Unsupported console\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"bash command prompt legacy mode error","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/cmd-prompt-legacy-mode.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3751,"url":"https:\/\/www.winhelponline.com\/blog\/sh-files-associate-with-bash-windows-10\/","url_meta":{"origin":3950,"position":1},"title":"Associate .SH Shell Scripts with Bash in Windows 10","author":"Ramesh","date":"August 9, 2016","format":false,"excerpt":"If you've installed Bash on Ubuntu on Windows in Windows 10 version 1607 and higher, and want to associate .SH shell scripts with Bash, here is a quick script solution.To access Windows file system path in Bash, you use the following syntax or semantics:\/mnt\/c\/Windows\/MyTasks.shI wrote a small Vbscript that converts\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3721,"url":"https:\/\/www.winhelponline.com\/blog\/add-bash-right-click-menu-folders-windows-10\/","url_meta":{"origin":3950,"position":2},"title":"Add Bash to the Right-Click Menu for Folders in Windows 10","author":"Ramesh","date":"August 13, 2016","format":false,"excerpt":"So you installed Bash in Windows 10 (Anniversary Update v1607) and wondering how to add it to the right-click menu for folders, like the built-in \"Open Command window here\" option? Here is a registry edit to add \"Bash here\" to the context menu for folders and desktop.Download bash_here.zip and run\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"add bash right-click menu","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/bash-here-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/bash-here-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/bash-here-2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":8349,"url":"https:\/\/www.winhelponline.com\/blog\/error-1083-executable-service-configured-not-implement-service\/","url_meta":{"origin":3950,"position":3},"title":"Error 1083 &#8220;The executable program that this service is configured to run in does not implement the service&#8221;","author":"Ramesh","date":"March 29, 2019","format":false,"excerpt":"When you attempt to start some Windows services using the Services MMC or command-line, error 1083 or 1053 is shown, and the service fails to start. Here is the error message verbatim: Windows could not start the [service name] service on Local Computer.Error 1083: The executable program that this service\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"fix for services error 1083 and 1053","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/03\/service-error-1083-fix-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":52476,"url":"https:\/\/www.winhelponline.com\/blog\/ubuntu-wsl-utiltranslatepathlist-failed-translate\/","url_meta":{"origin":3950,"position":4},"title":"Ubuntu on WSL ERROR: UtilTranslatePathList:2671: Failed to translate","author":"Ramesh","date":"June 9, 2023","format":false,"excerpt":"Whenever I launch Ubuntu on WSL, you may get the \"UtilTranslatePathList:2671: Failed to translate\" error. Here's a sample error message: <3>WSL (515) ERROR: UtilTranslatePathList:2671: Failed to translate D:\\xpdf-tools-win-4.04\\bin64 Despite this error, WSL may work fine. But the above error always appears when you start Ubuntu on WSL. Cause One or\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"wsl invalid path ubuntu UtilTranslatePathList","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/wsl-invalid-path-error-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/wsl-invalid-path-error-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/wsl-invalid-path-error-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/wsl-invalid-path-error-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":31060,"url":"https:\/\/www.winhelponline.com\/blog\/wsl-error-0x80070426-service-not-started\/","url_meta":{"origin":3950,"position":5},"title":"WSL Error 0x80070426 &#8211; The service has not been started","author":"Ramesh","date":"December 20, 2022","format":false,"excerpt":"When you start wsl.exe, the error 0x80070426 may occur. The following is the error message verbatim: The service has not been started. Error code: Wsl\/Service\/CreateInstance\/CreateVm\/ConfigureNetworking\/0x80070426 However, the list of distros is correctly displayed when you run the wsl -l -v command. NAME STATE VERSION * Ubuntu Stopped 2 When you\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"wsl error 0x80070426 dns client service not started","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/wsl-0x80070426-dns.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/wsl-0x80070426-dns.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/wsl-0x80070426-dns.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/3950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=3950"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/3950\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=3950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=3950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=3950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}