{"id":31,"date":"2013-08-23T07:32:00","date_gmt":"2013-08-22T21:32:00","guid":{"rendered":"https:\/\/www.serenux.com\/?p=31"},"modified":"2021-01-14T07:34:03","modified_gmt":"2021-01-13T21:34:03","slug":"howto-fix-apt-get-failing-with-a-method-did-not-start-correctly-error","status":"publish","type":"post","link":"https:\/\/www.serenux.com\/index.php\/2013\/08\/23\/howto-fix-apt-get-failing-with-a-method-did-not-start-correctly-error\/","title":{"rendered":"HowTo: Fix Apt-Get failing with a \u201cMethod did not start correctly\u201d error"},"content":{"rendered":"\n<p>So, you decide to install a new package on your system, or perhaps update your system with some outstanding updates. You either use the Software Centre or the Apt-Get command from a terminal to do this and you are suddenly greeted with the following error:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Failed to exec method \/usr\/lib\/apt\/methods\/\nE: Method&nbsp; has died unexpectedly!\nE: Sub-process&nbsp; returned an error code (100)\nE: Method \/usr\/lib\/apt\/methods\/ did not start correctly<\/pre>\n\n\n\n<p>And everything stops. Repeating the command produces the same error over and over.<\/p>\n\n\n\n<p>What just happened and how do you fix this?<\/p>\n\n\n\n<p>What has happened is that one or more of your cached sources lists has corrupted itself and no amount of re-running apt-get update is going to fix this. We need to delete the cache of lists and get apt-get update to re-download them in their entirety \u2013 nice and fresh.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>In a terminal, type in:<br><br><code>$ sudo rm -rf \/var\/lib\/apt\/lists\/*\u2026and hit Enter.<\/code><br><\/li><li>Now type in:<br><br><code>$ sudo apt-get update<\/code><br><br>\u2026and hit Enter. You will notice that this takes a bit longer than usual to complete.<br><\/li><li>Now try your package installation or system update again:<br><br><code>$ sudo apt-get install <em>&lt;name of the package you tried to install before><\/em><\/code><br>OR<br><code>$ sudo apt-get upgrade<\/code><br><br>\u2026and this time you will see Apt behaving itself again.<br><\/li><li>Pat yourself on the back. Crisis resolved.<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>So, you decide to install a new package on your system, or perhaps update your system with some outstanding updates. You either use the Software Centre or the Apt-Get command from a terminal to do this and you are suddenly greeted with the following error: Failed to exec method \/usr\/lib\/apt\/methods\/ E: Method&nbsp; has died unexpectedly! [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":1,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":32,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts\/31\/revisions\/32"}],"wp:attachment":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}