未使用のカーネルを解放しようとしたときに満たされていない依存関係

未使用のカーネルを解放しようとしたときに満たされていない依存関係

12.04を実行しています。

私はこれを読んだhttps://askubuntu.com/a/90219/18876参考として。

持っているものをすべてチェックしました。

yeukhon@fubini:~$ aptitude search ~ilinux-image
i   linux-image-3.2.0-29-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-31-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-32-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-33-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-34-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-35-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-36-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-37-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-38-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-39-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
BB  linux-image-generic-pae              - Generic Linux kernel image

39 を使用していると思います。

yeukhon@fubini:~$ uname -a
Linux fubini 3.2.0-39-generic-pae #62-Ubuntu SMP Wed Feb 27 22:25:11 UTC 2013 i686 i686 i386 GNU/Linux

そこで、参考資料で提案されているようにパージを始めました。

sudo apt-get purge linux-image-3.2.0-29 linux-image-3.2.0-30 linux-image-3.2.0-31 linux-image-3.2.0-32 linux-image-3.2.0-33 linux-image-3.2.0-34 linux-image-3.2.0-35 linux-image-3.2.0-36 linux-image-3.2.0-37 linux-image-3.2.0-38
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'linux-image-3.2.0-29-generic-pae' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-29-powerpc64-smp' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-29-virtual' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-29-generic' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-29-powerpc-smp' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-29-highbank' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-29-omap' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-30-powerpc64-smp' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-30-highbank' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-30-powerpc-smp' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-30-virtual' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-30-generic' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-30-generic-pae' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-30-omap' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-31-generic' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-31-generic-pae' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-31-highbank' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-31-omap' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-31-powerpc64-smp' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-31-powerpc-smp' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-31-virtual' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-32-powerpc-smp' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-32-highbank' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-32-virtual' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-32-generic-pae' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-32-generic' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-32-powerpc64-smp' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-32-omap' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-33-powerpc64-smp' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-powerpc-smp' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-omap' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-virtual' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-generic-pae' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-lowlatency-pae' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-generic' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-lowlatency' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-highbank' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-34-generic-pae' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-34-powerpc64-smp' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-34-virtual' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-34-generic' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-34-powerpc-smp' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-34-highbank' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-34-omap' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-35-powerpc-smp' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-generic-pae' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-omap' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-virtual' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-powerpc64-smp' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-generic' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-lowlatency-pae' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-lowlatency' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-highbank' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-36-powerpc-smp' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-lowlatency' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-highbank' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-powerpc64-smp' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-generic-pae' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-virtual' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-lowlatency-pae' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-omap' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-generic' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-37-virtual' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-generic' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-lowlatency' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-highbank' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-omap' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-powerpc64-smp' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-powerpc-smp' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-lowlatency-pae' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-generic-pae' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-38-highbank' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-lowlatency' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-generic-pae' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-virtual' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-generic' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-lowlatency-pae' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-omap' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-powerpc64-smp' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-powerpc-smp' for regex 'linux-image-3.2.0-38'
Package linux-image-3.2.0-29-generic is not installed, so not removed
Package linux-image-3.2.0-29-virtual is not installed, so not removed
Package linux-image-3.2.0-30-generic is not installed, so not removed
Package linux-image-3.2.0-30-generic-pae is not installed, so not removed
Package linux-image-3.2.0-30-virtual is not installed, so not removed
Package linux-image-3.2.0-31-generic is not installed, so not removed
Package linux-image-3.2.0-31-virtual is not installed, so not removed
Package linux-image-3.2.0-32-generic is not installed, so not removed
Package linux-image-3.2.0-32-virtual is not installed, so not removed
Package linux-image-3.2.0-33-generic is not installed, so not removed
Package linux-image-3.2.0-33-virtual is not installed, so not removed
Package linux-image-3.2.0-34-generic is not installed, so not removed
Package linux-image-3.2.0-34-virtual is not installed, so not removed
Package linux-image-3.2.0-35-generic is not installed, so not removed
Package linux-image-3.2.0-35-virtual is not installed, so not removed
Package linux-image-3.2.0-36-generic is not installed, so not removed
Package linux-image-3.2.0-36-virtual is not installed, so not removed
Package linux-image-3.2.0-37-generic is not installed, so not removed
Package linux-image-3.2.0-37-virtual is not installed, so not removed
Package linux-image-3.2.0-38-generic is not installed, so not removed
Package linux-image-3.2.0-38-virtual is not installed, so not removed
Package linux-image-3.2.0-33-lowlatency is not installed, so not removed
Package linux-image-3.2.0-33-lowlatency-pae is not installed, so not removed
Package linux-image-3.2.0-35-lowlatency is not installed, so not removed
Package linux-image-3.2.0-35-lowlatency-pae is not installed, so not removed
Package linux-image-3.2.0-36-lowlatency is not installed, so not removed
Package linux-image-3.2.0-36-lowlatency-pae is not installed, so not removed
Package linux-image-3.2.0-37-lowlatency is not installed, so not removed
Package linux-image-3.2.0-37-lowlatency-pae is not installed, so not removed
Package linux-image-3.2.0-38-lowlatency is not installed, so not removed
Package linux-image-3.2.0-38-lowlatency-pae is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-generic-pae : Depends: linux-image-3.2.0-40-generic-pae but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

今、どうしたらいいのかわかりません。特に、コンピューターを壊したくありません。何かアイデアはありますか? よろしくお願いします。


解決

私は見つけた/boot パーティションが 100% に達したため、アップグレードできなくなりました。古いカーネルを削除してスペースを空けることもできません。[removing] old vmlinuz initrd, abi and System.map files individually後で。基本的に、十分な空き容量が得られるまで彼のアドバイスに従いました。削除する必要があるのは最初の 2 つだけです。

そしてsudo apt-get install -f最後に、@Salem の小さな bash スクリプトを使用して、古いカーネルのほとんどを削除します。最後の 2 つは提案どおりに保持しました。最後に再起動すると、uname -a新しいカーネルがインストールされたことが確認できます (私の場合は 40 です)。

答え1

問題は、apt が をインストール/削除しようとしていることだと思います。linux-image-generic-paeこれは、利用可能な最新のカーネル ( linux-image-3.2.0-40-generic-pae) を指すはずですが、インストールした最新のカーネルは です*39

したがって、apt が提案するコマンドを実行することをお勧めします--dry-run(これは apt が行うことをシミュレートするだけです)。

sudo apt-get -f install --dry-run

これにより、apt が何をしようとしているのかがわかり、それが適切かどうかを判断できます (最新のカーネルをインストールしようとする場合は問題ありませんが、使用しているカーネルを削除しようとする場合は、別の方法を試したほうがよい場合があります)。

その後は、各カーネルを手動で削除する方がおそらく良いでしょう (apt-get purge出力ではすべてが正しく選択されているようです)。各コマンドを単独で指定することも、次のようにすることもできます。

for version in {29..38}; do
echo "Removing kernel 3.2.0-$version"
sudo apt-get remove linux-image-3.2.0-$version-generic-pae
done

関連情報