玄箱 Debian を Sarge へアップグレード

メモ:  Category:kuro_box

debian_2005_04_09_dist は、コードネーム woody と呼ばれる Debian3.0です。 woodyの後継である Sarge (Debian3.1)が安定版(Stable)としてリリースされているので 玄箱 を Sarge へアップグレードしたいと思います。

2006/08/12:追加
2006_06_10版では、source.listの指定がwoodyになっていたためアップグレードが無視されました。 そこで、source.listのwoodyをstableに変更し、Sargeへアップグレードします。

Sarge へアップグレード

いろいろ調べて回ったのですが、安定版になっているので sources.list 等の変更は必要なく 単純にapt-getでアップグレードできます。 それでは、玄箱 にログインしアップグレードを開始します。

$ su
Password:(rootのパスワードを入力)
# apt-get update
# apt-get dist-upgrade

Configuring Debconf と表示されますのでEnterを押します。

[Configuring Debconf] **See only questions that are of what priority and higher?**と聞かれるので Enterを押します。

Configuring Console-data と表示されますのでEnterを押します。

[Configuring Console-data] **What policy do you want to apply regarding keymaps?**と聞かれるので Enterを押します。

Adduser と表示されますのでEnterを押します。

ProFTPd configuration と表示されますのでEnterを押します。

**Run proftpd from inetd or standalone?**と聞かれるので Enterを押します。

Configuring Setserial と表示されますのでEnterを押します。

**Type of automatic serial port configuration to use?**と聞かれるので Enterを押します。

**Do you want to upgrade glibc now? [Y/n]**と聞かれるので Enterを押します。

**Do you wish to restart services? [Y/n]**と聞かれるので Enterを押します。

Configuration file `/etc/init.d/halt'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** halt (Y/I/N/O/D/Z) [default=N] ?

Zを押しバックアップを作成します。

# cp -p /etc/init.d/halt /etc/init.d/halt.org
# exit
Configuration file `/etc/init.d/halt'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** halt (Y/I/N/O/D/Z) [default=N] ?

Yを押しインストールします。

Configuration file `/etc/securetty'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** securetty (Y/I/N/O/D/Z) [default=N] ?

Zを押しバックアップを作成します。

# cp -p /etc/securetty /etc/securetty.org
# exit
Configuration file `/etc/securetty'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** securetty (Y/I/N/O/D/Z) [default=N] ?

Yを押しインストールします。

May I update your system? [Y/n]と聞かれるので Enterを押します。

Configuration file `/etc/modutils/aliases'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** aliases (Y/I/N/O/D/Z) [default=N] ?

Zを押しバックアップを作成します。

# cp -p /etc/modutils/aliases /etc/modutils/aliases.org
# exit
Configuration file `/etc/modutils/aliases'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** aliases (Y/I/N/O/D/Z) [default=N] ?

Yを押しインストールします。

ProFTPd configurationと表示されるのでinstall the package maintainer’s versionを 選択してEnterを押します。

haltの設定を修正します。

# cd /etc/init.d
# vi halt

PATHの設定の次に以下の行を追加します。

echo -n "EEEE" > /dev/AVR00
sleep 3

新しいターミナルから玄箱に接続 Debian GNU/Linux 3.1 と表示されればSargeへアップグレード完了です。 再起動します。

ProFTPDでエラー

ProFTPDが unable to determine IP address… とエラー表示されました。

そこで調べてみると名前解決の問題のようです。

hostsを次のように修正するか、proftpd.confを修正すると解決します。

127.0.0.1 ホストネーム localhost localhost.localdomain

又は、/etc/proftpd.confを修正

UseReverseDNS off

bluenote by BBB