kernel-image はアップグレードのための移行用仮想パッケージです。Etch では linux-image という名称に変更されました。

DebianLinux-FAQ/Etch/1 - Linux FAQ for Desktop - Linux kernel のインストール | アップグレードについて

というわけで、明示的に linux-image-2.6-686 をインストールしてみた。


sarge (linux2.4) -> sarge (linux2.6) -> etch (linux2.6) というアップグレード履歴をもつ環境でのログ。


# apt-get upgrade
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
以下のパッケージは保留されます:
  linux-image-2.6-686
以下のパッケージはアップグレードされます:
  kernel-image-2.6-686
アップグレード: 1 個、新規インストール: 0 個、削除: 0 個、保留: 1 個。
2224B のアーカイブを取得する必要があります。
展開後に追加で 0B のディスク容量が消費されます。
続行しますか [Y/n]? y
取得:1 http://security.debian.org etch/updates/main kernel-image-2.6-686 1:2.6.18+6etch2 [2224B]
2224B を 0s で取得しました (4383B/s)
(データベースを読み込んでいます ... 現在 55147 個のファイルとディレクトリがインストールされています。)
kernel-image-2.6-686 1:2.6.18+6etch1 を (.../kernel-image-2.6-686_1%3a2.6.18+6etch2_i386.deb で) 置換するための準備をしています ...
kernel-image-2.6-686 を展開し、置換しています...
kernel-image-2.6-686 (2.6.18+6etch2) を設定しています ...
# apt-get upgrade
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
以下のパッケージは保留されます:
  linux-image-2.6-686
アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 1 個。
#
# uname -a
Linux hoge 2.6.18-4-686 #1 SMP Wed May 9 23:03:12 UTC 2007 i686 GNU/Linux
#
# dpkg -l | grep image
ii  initrd-tools                   0.1.84.2                        tools to create initrd image for prepackaged
ii  kernel-image-2.4-686           101sarge1                       Linux kernel image for version 2.4 on PPro/C
ii  kernel-image-2.4.27-2-386      2.4.27-10sarge1                 Linux kernel image for version 2.4.27 on 386
ii  kernel-image-2.4.27-3-686      2.4.27-10sarge5                 Linux kernel image for version 2.4.27 on PPr
ii  kernel-image-2.6-686           2.6.18+6etch2                   Linux 2.6 image on PPro/Celeron/PII/PIII/P4
ii  kernel-image-2.6.8-4-686       2.6.8-16sarge7                  Linux kernel image for version 2.6.8 on PPro
ii  libmng1                        1.0.9-1                         Multiple-image Network Graphics library
ii  libopenexr2                    1.2.2-2                         runtime files for the OpenEXR image library
ii  linux-image-2.6-686            2.6.18+6                        Linux kernel 2.6 image on PPro/Celeron/PII/P
ii  linux-image-2.6.18-4-686       2.6.18.dfsg.1-12etch2           Linux 2.6.18 image on PPro/Celeron/PII/PIII/
#
# apt-get install linux-image-2.6-686
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
以下の特別パッケージがインストールされます:
  linux-image-2.6.18-5-686
提案パッケージ:
  linux-doc-2.6.18
推奨パッケージ:
  libc6-i686
以下のパッケージが新たにインストールされます:
  linux-image-2.6.18-5-686
以下のパッケージはアップグレードされます:
  linux-image-2.6-686
アップグレード: 1 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。
16.3MB のアーカイブを取得する必要があります。
展開後に追加で 48.0MB のディスク容量が消費されます。
続行しますか [Y/n]? y
取得:1 http://security.debian.org etch/updates/main linux-image-2.6.18-5-686 2.6.18.dfsg.1-13etch1 [16.3MB]
取得:2 http://security.debian.org etch/updates/main linux-image-2.6-686 2.6.18+6etch2 [2256B]
16.3MB を 12s で取得しました (1305kB/s)
パッケージを事前設定しています ...
未選択パッケージ linux-image-2.6.18-5-686 を選択しています。
(データベースを読み込んでいます ... 現在 55147 個のファイルとディレクトリがインストールされています。)
(.../linux-image-2.6.18-5-686_2.6.18.dfsg.1-13etch1_i386.deb から) linux-image-2.6.18-5-686 を展開しています...
Done.
linux-image-2.6-686 2.6.18+6 を (.../linux-image-2.6-686_2.6.18+6etch2_i386.deb で) 置換するための準備をしています ...
linux-image-2.6-686 を展開し、置換しています...
linux-image-2.6.18-5-686 (2.6.18.dfsg.1-13etch1) を設定しています ...
 
 Hmm. The package shipped with a symbolic link /lib/modules/2.6.18-5-686/source
 However, I can not read the target: そのようなファイルやディレクトリはありません
 Therefore, I am deleting /lib/modules/2.6.18-5-686/source
 
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
Running postinst hook script /sbin/update-grub.
Your /etc/kernel-img.conf needs to be updated. Read grub's NEWS.Debian[1]
file and follow its instructions.
 
 1. /usr/share/doc/grub/NEWS.Debian.gz
 
 
You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub instead!
 
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.18-5-686
Found kernel: /boot/vmlinuz-2.6.18-4-686
Found kernel: /boot/vmlinuz-2.6.8-4-686
Found kernel: /boot/vmlinuz-2.4.27-3-686
Found kernel: /boot/vmlinuz-2.4.27-2-386
Updating /boot/grub/menu.lst ... done
 
 
linux-image-2.6-686 (2.6.18+6etch2) を設定しています ...
#
# dpkg -l | grep image
ii  initrd-tools                   0.1.84.2                        tools to create initrd image for prepackaged
ii  kernel-image-2.4-686           101sarge1                       Linux kernel image for version 2.4 on PPro/C
ii  kernel-image-2.4.27-2-386      2.4.27-10sarge1                 Linux kernel image for version 2.4.27 on 386
ii  kernel-image-2.4.27-3-686      2.4.27-10sarge5                 Linux kernel image for version 2.4.27 on PPr
ii  kernel-image-2.6-686           2.6.18+6etch2                   Linux 2.6 image on PPro/Celeron/PII/PIII/P4
ii  kernel-image-2.6.8-4-686       2.6.8-16sarge7                  Linux kernel image for version 2.6.8 on PPro
ii  libmng1                        1.0.9-1                         Multiple-image Network Graphics library
ii  libopenexr2                    1.2.2-2                         runtime files for the OpenEXR image library
ii  linux-image-2.6-686            2.6.18+6etch2                   Linux kernel 2.6 image on PPro/Celeron/PII/P
ii  linux-image-2.6.18-4-686       2.6.18.dfsg.1-12etch2           Linux 2.6.18 image on PPro/Celeron/PII/PIII/
ii  linux-image-2.6.18-5-686       2.6.18.dfsg.1-13etch1           Linux 2.6.18 image on PPro/Celeron/PII/PIII/
#
# shutdown -r now
#
# uname -a
Linux hoge 2.6.18-5-686 #1 SMP Sun Aug 12 21:57:02 UTC 2007 i686 GNU/Linux

tags: zlashdot Linux Debian Linux

Posted by NI-Lab. (@nilab)