{"id":39,"date":"2020-11-23T14:16:48","date_gmt":"2020-11-23T14:16:48","guid":{"rendered":"https:\/\/tekweis.com\/?p=39"},"modified":"2023-03-10T10:29:24","modified_gmt":"2023-03-10T16:29:24","slug":"command-not-found-has-crashed","status":"publish","type":"post","link":"https:\/\/tekweis.com\/index.php\/2020\/11\/23\/command-not-found-has-crashed\/","title":{"rendered":"Command not found has crashed"},"content":{"rendered":"\n<p>Noticed recently when I am in the bash shell, if i type a command incorrectly I have been getting an error that is not part of the command I was entering, but one that seems to be from the shell not knowing how to respond to an incorrect command.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1052\" height=\"479\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/11\/command-not-found1.png\" alt=\"\" class=\"wp-image-40\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/11\/command-not-found1.png 1052w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/11\/command-not-found1-300x137.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/11\/command-not-found1-1024x466.png 1024w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/11\/command-not-found1-768x350.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/11\/command-not-found1-660x301.png 660w\" sizes=\"auto, (max-width: 1052px) 100vw, 1052px\" \/><figcaption>Entering a bogus command, &#8220;welcome&#8221;, I get an odd response.<\/figcaption><\/figure>\n\n\n\n<p>After doing some searching, I found that this appears to be a permissions issue after upgrading. By entering the following command repaired my issue: <strong>sudo chmod ugo+r \/var\/lib\/command-not-found\/commands.db*<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"669\" height=\"74\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/11\/command-not-found2.png\" alt=\"\" class=\"wp-image-41\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/11\/command-not-found2.png 669w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/11\/command-not-found2-300x33.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/11\/command-not-found2-660x73.png 660w\" sizes=\"auto, (max-width: 669px) 100vw, 669px\" \/><figcaption>After running the chmod command, you can see I then ran my bogus, &#8220;welcome&#8221; command and received the proper response.<\/figcaption><\/figure>\n\n\n\n<p>All good now!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Noticed recently when I am in the bash shell, if i type a command incorrectly I have been getting an error that is not part of the command I was entering, but one that seems to be from the shell not knowing how to respond to an incorrect command. After doing some searching, I found\u2026 <span class=\"read-more\"><a href=\"https:\/\/tekweis.com\/index.php\/2020\/11\/23\/command-not-found-has-crashed\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":1,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":42,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/39\/revisions\/42"}],"wp:attachment":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}