/bootの空き容量不足による apt upgrade の失敗
Ubuntu 16.04LTS
1. apt upgradeの失敗例
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36  | 
						$ sudo apt update Hit:1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease Get:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]                           Get:3 http://jp.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]                         Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease ... update-initramfs: Generating /boot/initrd.img-4.4.0-131-generic W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-4.4.0-131-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 dpkg: error processing package linux-image-extra-4.4.0-131-generic (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of linux-image-generic:  linux-image-generic depends on linux-image-extra-4.4.0-131-generic; however:   Package linux-image-extra-4.4.0-131-generic is not configured yet. dpkg: error processing package linux-image-generic (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic:No apport report written because the error message indicates its a followup error from a previous failure.  linux-generic depends on linux-image-generic (= 4.4.0.131.137); however:   Package linux-image-generic is not configured yet. dpkg: error processing package linux-generic (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.     Errors were encountered while processing:  linux-image-extra-4.4.0-131-generic  linux-image-generic  linux-generic E: Sub-process /usr/bin/dpkg returned an error code (1)  | 
					
2. /bootの空き容量がないときのストレージ使用率
| 
					 1 2 3 4 5 6 7 8 9 10 11  | 
						$ df -h Filesystem                     Size  Used Avail Use% Mounted on udev                           729M     0  729M   0% /dev tmpfs                          150M  2.6M  148M   2% /run /dev/mapper/norikura--vg-root   38G   11G   26G  29% / tmpfs                          749M     0  749M   0% /dev/shm tmpfs                          5.0M     0  5.0M   0% /run/lock tmpfs                          749M     0  749M   0% /sys/fs/cgroup Share                          232G  155G   77G  68% /media/share /dev/sda1                      472M  447M  380K 100% /boot tmpfs                          150M     0  150M   0% /run/user/1000  | 
					
3. apt autoremoveの実行
| 
					 1 2 3 4 5 6  | 
						$ sudo apt autoremove Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED: ...  | 
					
4. autoremove後のストレージ容量
| 
					 1 2 3 4 5 6 7 8 9 10 11  | 
						$ df -h Filesystem                     Size  Used Avail Use% Mounted on udev                           729M     0  729M   0% /dev tmpfs                          150M  4.4M  146M   3% /run /dev/mapper/norikura--vg-root   38G  7.8G   29G  22% / tmpfs                          749M     0  749M   0% /dev/shm tmpfs                          5.0M     0  5.0M   0% /run/lock tmpfs                          749M     0  749M   0% /sys/fs/cgroup Share                          232G  155G   77G  68% /media/share /dev/sda1                      472M  107M  341M  24% /boot tmpfs                          150M     0  150M   0% /run/user/1000  |