作業ログ:パッケージのアップグレードや、よく使うパッケージのインストール

lv1$ sudo aptitude upgrade
W: The "upgrade" command is deprecated; use "safe-upgrade" instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
Resolving dependencies...
Resolving dependencies...
The following NEW packages will be installed:
  linux-image-2.6.25-2-486{a}
The following packages will be upgraded:
  acpi-support-base acpid busybox console-common console-data eject
  initramfs-tools klibc-utils libklibc libldap-2.4-2 linux-image-2.6-486
  lvm2
12 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

aptitude を使う場合、upgrade ではなく safe-upgrade を使うんだね。

lv1$ sudo 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.25-2-486
Found kernel: /boot/vmlinuz-2.6.24-1-486
Updating /boot/grub/menu.lst ... done

Linux カーネルが更新されたので、再起動できることを確認しました。

lv と vim をインストールします。

lv1$ sudo aptitude install lv vim
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initializing package states... Done
Reading task descriptions... Done  
The following NEW packages will be installed:
  bzip2{a} lv vim vim-runtime{a} 
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 6856kB of archives. After unpacking 25.7MB will be used.

vimを通常使用するエディタに設定します。

lv1$ sudo update-alternatives --config editor

There are 4 alternatives which provide `editor'.

  Selection    Alternative
-----------------------------------------------
          1    /bin/ed
*+        2    /bin/nano
          3    /usr/bin/vim.tiny
          4    /usr/bin/vim.basic

Press enter to keep the default[*], or type selection number: 4
Using '/usr/bin/vim.basic' to provide 'editor'.