2014年11月8日土曜日

玄箱HGにDebian(Wheezy)を導入する(4)

LennyからSqueeze、そしてWheezyへアップグレードする

リブートしたらtelnetでログイン。
初期状態だとユーザー:tmp-kun パスワード:tmp-kunでログイン出来る。
さっそく"su"コマンドでrootになり、環境設定を続ける。
rootのパスワードはrootとなっている。
Debian GNU/Linux 5.0
KURO-BOX login: tmp-kun
Password:
Linux KURO-BOX 3.16.7-kurobox #3 Thu Nov 6 14:13:33 JST 2014 ppc
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
tmp-kun@KURO-BOX:~$ su
Password:
KURO-BOX:/home/tmp-kun#
ルート領域をext2からext3に変換する。
# tune2fs -j /dev/sda3
"/etc/apt/sources.lst"を編集しsqueezeのアップグレードの準備をする。
/etc/apt/sources.lst
deb http://ftp.jp.debian.org/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main

#deb http://ftp.jp.debian.org/debian/ lenny main contrib non-free
#deb-src http://ftp.jp.debian.org/debian/ lenny main contrib non-free

#deb http://security.debian.org/ lenny/updates main contrib non-free
#deb-src http://security.debian.org/ lenny/updates main contrib non-free

#deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
#deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
修正したらapt-getコマンドを実行しパッケージのリストを更新する。
# apt-get update
GPGエラーが出るので以下のコマンドを実行する。
# apt-get install debian-keyring
# apt-get install debian-archive-keyring
Squeezeにアップグレードする。
選択肢が何度か出てくるが、デフォルトでだいたい問題ない。多分。
# apt-get update
# apt-get dist-upgrade
終了したら一応再起動する。
# shutdown -r now
無事起動出来たら次は"/etc/apt/sources.list"の"squeeze"を"wheezy"に書き換え、同じ手順でアップグレードを行う。
起動したら日本語環境の設定するなりして自由にいじくり回す。
# aptitude install locales manpages-ja
# dpkg-reconfigure locales
"ja_JP.EUC-JP EUC-JP"と"ja_JP.UTF-8 UTF-8"を追加し、"ja_JP.UTF-8 UTF-8"をデフォルトロケールに設定して完了。

1 件のコメント:

  1. jessie に上げた 玄箱HG + u-boot がクラッシュし、1から復旧しました。
    このサイトは本当に助かりました。ありがとうございます。
    ちなみに squeeze はすでに archive 行きですので、source.lst には
    lenny -> squeeze のところは

    deb http://archive.debian.org/debian/ squeeze contrib main non-free

    としておくと良いと思います。

    返信削除