{"id":1059,"date":"2013-02-19T17:38:36","date_gmt":"2013-02-19T22:38:36","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=1059"},"modified":"2013-02-19T17:38:36","modified_gmt":"2013-02-19T22:38:36","slug":"apt-get-woes","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2013\/02\/apt-get-woes\/","title":{"rendered":"Apt-get Woes"},"content":{"rendered":"<p>I had just done <code>apt-get update && apt-get dist-upgrade<\/code> when I saw something that made me cringe:<\/p>\n<blockquote><p>No apport report written because MaxReports is reached already<br \/>\n                                                              Errors were encountered while processing:<br \/>\n initramfs-tools<br \/>\n plymouth<br \/>\n linux-image-3.2.0-38-generic-pae<br \/>\n ubuntu-minimal<br \/>\n plymouth-theme-ubuntu-text<br \/>\n linux-image-generic-pae<br \/>\n linux-generic-pae<br \/>\n mountall<br \/>\n upstart<br \/>\nE: Sub-process \/usr\/bin\/dpkg returned an error code (1)\n<\/p><\/blockquote>\n<p>Well that&#8217;s not the exact error &#8211; I ended up seeing &#8220;disk out of space&#8221; among other issues.  Basically the \/root filled up and it broke my apt-get upgrade right in the middle of updates.  No good.<br \/>\nSo I go to \/boot and clean up the older kernel files &#8211; just make sure you delete the &#8220;abi&#8221;, the &#8220;config&#8221;, the &#8220;initrd&#8221;, the &#8220;System.map&#8221;, the &#8220;vmcoreinfo&#8221;, the &#8220;vmlinuz&#8221; etc all with the same version number.<\/p>\n<p>Then I went about reinstalling the packages.  Unfortunately since some of the packages were already installed prior to running out of space, the dependencies were a little off.<\/p>\n<p><code>apt-get install -f<\/code> was no help:<\/p>\n<blockquote><p>You might want to run &#8216;apt-get -f install&#8217; to correct these.<br \/>\nThe following packages have unmet dependencies:<br \/>\n initramfs-tools : Depends: initramfs-tools-bin (< 0.99ubuntu13.1~) but 0.99ubuntu13.1 is installed\nE: Unmet dependencies. Try using -f.<\/p><\/blockquote>\n<p>And I didn&#8217;t want to have to restore this beast since the last full backup was over 2 months ago.  So I had to carry on.<\/p>\n<p>First I noticed that initramfs-tools needed the bin installed, but the bin was too new for initramfs-tools to utilize and therefore could not update even via &#8211;configure.  Chicken and egg?<\/p>\n<p>So then I looked up what versions were available so that I could downgrade:<br \/>\n<code>apt-cache showpkg initramfs-tools-bin<\/code><\/p>\n<blockquote><p>Versions:<br \/>\n0.99ubuntu13.1 (\/var\/lib\/apt\/lists\/us.archive.ubuntu.com_ubuntu_dists_precise-updates_main_binary-i386_Packages) (\/var\/lib\/dpkg\/status)<br \/>\n Description Language:<br \/>\n                 File: \/var\/lib\/apt\/lists\/us.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages<br \/>\n                  MD5: 14e601bd8c0a0905d238d89be3036fa8<br \/>\n Description Language: en<br \/>\n                 File: \/var\/lib\/apt\/lists\/us.archive.ubuntu.com_ubuntu_dists_precise_main_i18n_Translation-en<br \/>\n                  MD5: 14e601bd8c0a0905d238d89be3036fa8<\/p>\n<p>0.99ubuntu13 (\/var\/lib\/apt\/lists\/us.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages)<br \/>\n Description Language:<br \/>\n                 File: \/var\/lib\/apt\/lists\/us.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages<br \/>\n                  MD5: 14e601bd8c0a0905d238d89be3036fa8<br \/>\n Description Language: en<br \/>\n                 File: \/var\/lib\/apt\/lists\/us.archive.ubuntu.com_ubuntu_dists_precise_main_i18n_Translation-en<br \/>\n                  MD5: 14e601bd8c0a0905d238d89be3036fa8\n<\/p><\/blockquote>\n<p>Ok, so this was getting easier.  All I have to do is install the older version.  I had to look it up since it generally doesn&#8217;t happen too often:<br \/>\napt-get install initramfs-tools-bin=0.99ubuntu13<\/p>\n<blockquote><p>The following packages will be DOWNGRADED:<br \/>\n  initramfs-tools-bin<br \/>\n0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 1 not upgraded.\n<\/p><\/blockquote>\n<p>From there I run the following:<br \/>\n<code>apt-get dist-upgrade<\/code><br \/>\n<code>apt-get autoremove<\/code><br \/>\n<code>apt-get autoclean<\/code><br \/>\n<code>reboot<\/code><\/p>\n<p>Profit.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had just done apt-get update &#038;&#038; apt-get dist-upgrade when I saw something that made me cringe: No apport report written because MaxReports is reached already Errors were encountered while processing: initramfs-tools plymouth linux-image-3.2.0-38-generic-pae ubuntu-minimal plymouth-theme-ubuntu-text linux-image-generic-pae linux-generic-pae mountall upstart E: Sub-process \/usr\/bin\/dpkg returned an error code (1) Well that&#8217;s not the exact error &#8211; &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2013\/02\/apt-get-woes\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Apt-get Woes<\/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":[7],"tags":[],"class_list":["post-1059","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1059"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1059\/revisions"}],"predecessor-version":[{"id":1060,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1059\/revisions\/1060"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}