{"id":10903,"date":"2018-07-05T08:05:29","date_gmt":"2018-07-05T08:05:29","guid":{"rendered":"https:\/\/www.itwriting.com\/blog\/?p=10903"},"modified":"2018-07-05T08:05:29","modified_gmt":"2018-07-05T08:05:29","slug":"notes-from-the-field-dmesg-error-blocks-mysql-install-on-windows-subsystem-for-linux","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/10903-notes-from-the-field-dmesg-error-blocks-mysql-install-on-windows-subsystem-for-linux.html","title":{"rendered":"Notes from the Field: dmesg error blocks MySQL install on Windows Subsystem for Linux"},"content":{"rendered":"<p>I enjoy Windows Subsystem for Linux (WSL) on Windows 10 and use it constantly. It does not patch itself so from time to time I update it using apt-get. The latest update upgraded MySQL to version 5.7.22 but unfortunately the upgrade failed. The issue is that dpkg cannot configure it. I saw messages like:<\/p>\n<blockquote>\n<p>invoke-rc.d: could not determine current runlevel<\/p>\n<p>2002: Can&#8217;t connect to local MySQL server through socket &#8216;\/var\/run\/mysqld\/mysqld.sock<\/p>\n<\/blockquote>\n<p>After multiple efforts uninstalling and reinstalling I narrowed the problem down to a dmesg error:<\/p>\n<blockquote>\n<p>dmesg: read kernel buffer failed: Function not implemented<\/p>\n<\/blockquote>\n<p>It is true, dmesg does not work on WSL. However there is a workaround <a href=\"https:\/\/github.com\/Microsoft\/WSL\/issues\/1321\" target=\"_blank\">here<\/a> that says if you write something to \/dev\/kmsg then at least calling dmesg does not return an error. So I did:<\/p>\n<blockquote>\n<p>sudo echo foo &gt; \/dev\/kmsg<\/p>\n<\/blockquote>\n<p>Removed and reinstalled MySQL one more time and it worked:<\/p>\n<p><a href=\"https:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2018\/07\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"304\" title=\"image\" style=\"display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2018\/07\/image_thumb-6.png\" border=\"0\"><\/a><\/p>\n<p>Apparently partial dmesg support in WSL is on the way, previewed in <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/wsl\/release-notes\" target=\"_blank\">Build 17655<\/a>.<\/p>\n<p><strong>Note<\/strong>: be cautious about fully uninstalling MySQL if you have data you want to preserve. Export\/backup the databases first.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I enjoy Windows Subsystem for Linux (WSL) on Windows 10 and use it constantly. It does not patch itself so from time to time I update it using apt-get. The latest update upgraded MySQL to version 5.7.22 but unfortunately the upgrade failed. The issue is that dpkg cannot configure it. I saw messages like: invoke-rc.d: &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/10903-notes-from-the-field-dmesg-error-blocks-mysql-install-on-windows-subsystem-for-linux.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Notes from the Field: dmesg error blocks MySQL install on Windows Subsystem for Linux<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60,1519,97],"tags":[545,620,996,1543,1537],"class_list":["post-10903","post","type-post","status-publish","format-standard","hentry","category-notes-from-the-field","category-tech","category-windows","tag-linux","tag-mysql","tag-windows","tag-windows-subsystem-for-linux","tag-wsl"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/10903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=10903"}],"version-history":[{"count":1,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/10903\/revisions"}],"predecessor-version":[{"id":10904,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/10903\/revisions\/10904"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=10903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=10903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=10903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}