# apt-get install linux-image-2.6.18-4-amd64 Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: linux-image-2.6.18-4-amd64 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 16.8MB of archives. After unpacking 65.3MB of additional disk space will be used. Get:1 http://security.debian.org etch/updates/main linux-image-2.6.18-4-amd64 2.6.18.dfsg.1-12etch1 [16.8MB] Fetched 16.8MB in 27s (614kB/s) Preconfiguring packages ... Selecting previously deselected package linux-image-2.6.18-4-amd64. (Reading database ... 159029 files and directories currently installed.) Unpacking linux-image-2.6.18-4-amd64 (from .../linux-image-2.6.18-4-amd64_2.6.18.dfsg.1-12etch1_i386.deb) ... Done. Setting up linux-image-2.6.18-4-amd64 (2.6.18.dfsg.1-12etch1) ... Hmm. The package shipped with a symbolic link /lib/modules/2.6.18-4-amd64/source However, I can not read the target: No such file or directory Therefore, I am deleting /lib/modules/2.6.18-4-amd64/source Running depmod. Finding valid ramdisk creators. Using mkinitrd.yaird to build the ramdisk. Running postinst hook script /usr/sbin/update-grub. Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default 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-4-amd64 Found kernel: /boot/vmlinuz-2.6.18-4-k7 Found kernel: /boot/vmlinuz-2.6.18-3-k7 Updating /boot/grub/menu.lst ... done # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda1 270969 268661 0 100% / tmpfs 517936 0 517936 0% /lib/init/rw udev 10240 92 10148 1% /dev tmpfs 517936 0 517936 0% /dev/shm /dev/hda5 14421344 5813276 7875508 43% /home /dev/hda6 4807056 2934696 1628176 65% /usr /dev/hda7 918322 498744 370582 58% /var /dev/hda8 918322 16487 852839 2% /tmp /dev/hda9 4807056 200528 4362344 5% /usr/local /dev/hda11 47383396 2431172 42545288 6% /extra /dev/hda12 918322 16452 852874 2% /others /dev/hdb1 861728 16416 801540 3% /stuff /dev/hdb5 5336664 1113552 3952020 22% /storage # apt-get clean # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda1 270969 268661 0 100% / tmpfs 517936 0 517936 0% /lib/init/rw udev 10240 92 10148 1% /dev tmpfs 517936 0 517936 0% /dev/shm /dev/hda5 14421344 5813284 7875500 43% /home /dev/hda6 4807056 2934696 1628176 65% /usr /dev/hda7 918322 482255 387071 56% /var /dev/hda8 918322 16487 852839 2% /tmp /dev/hda9 4807056 200528 4362344 5% /usr/local /dev/hda11 47383396 2431172 42545288 6% /extra /dev/hda12 918322 16452 852874 2% /others /dev/hdb1 861728 16416 801540 3% /stuff /dev/hdb5 5336664 1113552 3952020 22% /storage # apt-get remove linux-image-2.6.18-4-amd64 Reading package lists... Done Building dependency tree... Done The following packages will be REMOVED: linux-image-2.6.18-4-amd64 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. Need to get 0B of archives. After unpacking 65.3MB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 160927 files and directories currently installed.) Removing linux-image-2.6.18-4-amd64 ... Running postrm hook script /usr/sbin/update-grub. Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default 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-4-k7 Found kernel: /boot/vmlinuz-2.6.18-3-k7 Updating /boot/grub/menu.lst ... done The link /vmlinuz is a damaged link Removing symbolic link vmlinuz Unless you used the optional flag in lilo, you may need to re-run your boot loader[lilo] The link /initrd.img is a damaged link Removing symbolic link initrd.img Unless you used the optional flag in lilo, you may need to re-run your boot loader[lilo] # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda1 270969 204863 51650 80% / tmpfs 517936 0 517936 0% /lib/init/rw udev 10240 92 10148 1% /dev tmpfs 517936 0 517936 0% /dev/shm /dev/hda5 14421344 5813292 7875492 43% /home /dev/hda6 4807056 2934604 1628268 65% /usr /dev/hda7 918322 481879 387447 56% /var /dev/hda8 918322 16487 852839 2% /tmp /dev/hda9 4807056 200528 4362344 5% /usr/local /dev/hda11 47383396 2431172 42545288 6% /extra /dev/hda12 918322 16452 852874 2% /others /dev/hdb1 861728 16416 801540 3% /stuff /dev/hdb5 5336664 1113552 3952020 22% /storage # cd /boot ANTian:/boot# ls System.map-2.6.18-3-k7 config-2.6.18-4-k7 initrd.img-2.6.18-4-k7 System.map-2.6.18-4-k7 grub vmlinuz-2.6.18-3-k7 config-2.6.18-3-k7 initrd.img-2.6.18-3-k7 vmlinuz-2.6.18-4-k7 # ls -all total 6334 drwxr-xr-x 3 root root 1024 May 3 11:52 . drwxr-xr-x 26 root root 1024 May 3 11:52 .. -rw-r--r-- 1 root root 720490 Dec 10 17:36 System.map-2.6.18-3-k7 -rw-r--r-- 1 root root 722453 Apr 18 08:38 System.map-2.6.18-4-k7 -rw-r--r-- 1 root root 71347 Dec 10 10:50 config-2.6.18-3-k7 -rw-r--r-- 1 root root 70797 Apr 18 02:04 config-2.6.18-4-k7 drwxr-xr-x 2 root root 1024 May 3 11:52 grub -rw------- 1 root root 1137172 Dec 21 13:22 initrd.img-2.6.18-3-k7 -rw------- 1 root root 1186592 May 2 15:35 initrd.img-2.6.18-4-k7 -rw-r--r-- 1 root root 1267064 Dec 10 17:36 vmlinuz-2.6.18-3-k7 -rw-r--r-- 1 root root 1268572 Apr 18 08:38 vmlinuz-2.6.18-4-k7 # ls -all /initrd.img ls: /initrd.img: No such file or directory