{"id":2629,"date":"2018-08-11T11:09:13","date_gmt":"2018-08-11T02:09:13","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=2629"},"modified":"2018-08-11T11:09:13","modified_gmt":"2018-08-11T02:09:13","slug":"apt-boot%e9%a0%98%e5%9f%9f%e4%b8%8d%e8%b6%b3%e3%81%ab%e3%82%88%e3%82%8bupgrade%e5%a4%b1%e6%95%97","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/2629","title":{"rendered":"[apt] \/boot\u9818\u57df\u4e0d\u8db3\u306b\u3088\u308bupgrade\u5931\u6557"},"content":{"rendered":"<p>\/boot\u306e\u7a7a\u304d\u5bb9\u91cf\u4e0d\u8db3\u306b\u3088\u308b apt upgrade \u306e\u5931\u6557<br \/>\n<!--more--><\/p>\n<p>Ubuntu 16.04LTS<\/p>\n<h3>1. apt upgrade\u306e\u5931\u6557\u4f8b<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ sudo apt update\r\nHit:1 http:\/\/jp.archive.ubuntu.com\/ubuntu xenial InRelease\r\nGet:2 http:\/\/jp.archive.ubuntu.com\/ubuntu xenial-updates InRelease [109 kB]                          \r\nGet:3 http:\/\/jp.archive.ubuntu.com\/ubuntu xenial-backports InRelease [107 kB]                        \r\nHit:4 http:\/\/security.ubuntu.com\/ubuntu xenial-security InRelease\r\n\r\n...\r\n\r\nupdate-initramfs: Generating \/boot\/initrd.img-4.4.0-131-generic\r\nW: mdadm: \/etc\/mdadm\/mdadm.conf defines no arrays.\r\n\r\ngzip: stdout: No space left on device\r\nE: mkinitramfs failure cpio 141 gzip 1\r\nupdate-initramfs: failed for \/boot\/initrd.img-4.4.0-131-generic with 1.\r\nrun-parts: \/etc\/kernel\/postinst.d\/initramfs-tools exited with return code 1\r\ndpkg: error processing package linux-image-extra-4.4.0-131-generic (--configure):\r\n subprocess installed post-installation script returned error exit status 1\r\ndpkg: dependency problems prevent configuration of linux-image-generic:\r\n linux-image-generic depends on linux-image-extra-4.4.0-131-generic; however:\r\n  Package linux-image-extra-4.4.0-131-generic is not configured yet.\r\n\r\ndpkg: error processing package linux-image-generic (--configure):\r\n dependency problems - leaving unconfigured\r\ndpkg: dependency problems prevent configuration of linux-generic:No apport report written because the error message indicates its a followup error from a previous failure.\r\n\r\n linux-generic depends on linux-image-generic (= 4.4.0.131.137); however:\r\n  Package linux-image-generic is not configured yet.\r\n\r\ndpkg: error processing package linux-generic (--configure):\r\n dependency problems - leaving unconfigured\r\nNo apport report written because the error message indicates its a followup error from a previous failure.\r\n    Errors were encountered while processing:\r\n linux-image-extra-4.4.0-131-generic\r\n linux-image-generic\r\n linux-generic\r\nE: Sub-process \/usr\/bin\/dpkg returned an error code (1)<\/pre>\n<h3>2. \/boot\u306e\u7a7a\u304d\u5bb9\u91cf\u304c\u306a\u3044\u3068\u304d\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u4f7f\u7528\u7387<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ df -h\r\nFilesystem                     Size  Used Avail Use% Mounted on\r\nudev                           729M     0  729M   0% \/dev\r\ntmpfs                          150M  2.6M  148M   2% \/run\r\n\/dev\/mapper\/norikura--vg-root   38G   11G   26G  29% \/\r\ntmpfs                          749M     0  749M   0% \/dev\/shm\r\ntmpfs                          5.0M     0  5.0M   0% \/run\/lock\r\ntmpfs                          749M     0  749M   0% \/sys\/fs\/cgroup\r\nShare                          232G  155G   77G  68% \/media\/share\r\n\/dev\/sda1                      472M  447M  380K 100% \/boot\r\ntmpfs                          150M     0  150M   0% \/run\/user\/1000<\/pre>\n<h3>3. apt autoremove\u306e\u5b9f\u884c<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ sudo apt autoremove\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nThe following packages will be REMOVED:\r\n...<\/pre>\n<h3>4. autoremove\u5f8c\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u5bb9\u91cf<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ df -h\r\nFilesystem                     Size  Used Avail Use% Mounted on\r\nudev                           729M     0  729M   0% \/dev\r\ntmpfs                          150M  4.4M  146M   3% \/run\r\n\/dev\/mapper\/norikura--vg-root   38G  7.8G   29G  22% \/\r\ntmpfs                          749M     0  749M   0% \/dev\/shm\r\ntmpfs                          5.0M     0  5.0M   0% \/run\/lock\r\ntmpfs                          749M     0  749M   0% \/sys\/fs\/cgroup\r\nShare                          232G  155G   77G  68% \/media\/share\r\n\/dev\/sda1                      472M  107M  341M  24% \/boot\r\ntmpfs                          150M     0  150M   0% \/run\/user\/1000<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/boot\u306e\u7a7a\u304d\u5bb9\u91cf\u4e0d\u8db3\u306b\u3088\u308b apt upgrade \u306e\u5931\u6557<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[53],"class_list":["post-2629","post","type-post","status-publish","format-standard","hentry","category-memo","tag-apt"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=2629"}],"version-history":[{"count":7,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2629\/revisions"}],"predecessor-version":[{"id":2636,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2629\/revisions\/2636"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=2629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=2629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=2629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}