(23の回答)
6年前に閉鎖されました。
以下に示すコマンドを実行しようとすると、次のエラーが表示されます。 /bootパーティションのディスク容量が少ないことをどこかで読みました。 / bootパーティションのサイズを大きくして、より多くのソフトウェアをインストールできるようにするにはどうすればよいですか? 500GBのハードディスクを持っているので、遊ぶのに十分なスペースがあります。
sudo apt-get install libdvdread4
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-33-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-33-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-33-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-server:
linux-image-server depends on linux-image-3.2.0-33-generic; however:
Package linux-image-3.2.0-33-generic is not configured yet.
dpkg: error processing linux-image-server (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-server:
linux-server depends on linux-image-server (= 3.2.0.33.36); however:
Package linux-image-server is not configured yet.
dpkg: error processing linux-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
linux-image-3.2.0-33-generic
linux-image-server
linux-server
N: Ignoring file 'michael-gruz-canon-precise.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'michael-gruz-canon-precise.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
以下にリストされているのは、du
の出力です。
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/ubuntu-root 712660664 104095912 572363692 16% /
udev 3964792 4 3964788 1% /dev
tmpfs 1591012 1064 1589948 1% /run
none 5120 0 5120 0% /run/lock
none 3977528 684 3976844 1% /run/shm
/dev/sda1 233191 219821 929 100% /boot
ベストアンサー
/boot
用に別のパーティションがあります サイズは約227MBです。このパーティションはいっぱいです。
Ubuntuが/bootに個別のパーティションを提供した理由は、ドライブの残りの部分でLVMや「フル」ディスク暗号化を使用しているためと思われます。
/boot
ディレクトリにはすべてのカーネルイメージが含まれているため、この問題の原因としては、以前にインストールしたカーネルが多すぎることが考えられます。 Ubuntuは、長期的に安定したバージョンであっても、パッケージ名のバージョン番号をかなり頻繁に上げるカーネルアップデートを発行します。そのため、システムを最新の状態に保つと、/boot
ディレクトリが大きくなります。
インストールされているカーネルを一覧表示できるはずです
aptitude search ~ilinux-image
(これにより、カーネルではないパッケージも返される可能性があることに注意してください)。
通常、3つ以上のカーネルをインストールする必要はありません。1つは現在使用されており、以前の既知の動作中のカーネル(フォールバックとして)です。したがって、次のように、古いものを1つずつ削除し始めることができます。
sudo apt-get autoremove linux-image-3.2.0-23-generic
削除する実際のカーネルバージョンを「3.2.0-23-generic」に置き換えてください。また、linux-image-generic
などのパッケージは削除しないでください 。現在実行中のカーネルを削除しないように細心の注意を払う必要があります。そうしないと、起動できなくなります(Ubuntuは、これを行うことについて警告する場合としない場合があります)。
現在実行中のカーネルは次の場所で見つけることができます:
uname -r
これが、今説明したことを実行するための図解ガイドです。この記事では、わずかに異なるツールを使用していますが、基本的に同じアプローチです。