LennyからSqueeze、そしてWheezyへアップグレードする
リブートしたらtelnetでログイン。
初期状態だとユーザー:tmp-kun パスワード:tmp-kunでログイン出来る。さっそく"su"コマンドでrootになり、環境設定を続ける。
rootのパスワードはrootとなっている。
ルート領域をext2からext3に変換する。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#
"/etc/apt/sources.lst"を編集しsqueezeのアップグレードの準備をする。# tune2fs -j /dev/sda3
/etc/apt/sources.lst
修正したらapt-getコマンドを実行しパッケージのリストを更新する。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
GPGエラーが出るので以下のコマンドを実行する。# apt-get update
Squeezeにアップグレードする。# apt-get install debian-keyring # apt-get install debian-archive-keyring
選択肢が何度か出てくるが、デフォルトでだいたい問題ない。多分。
終了したら一応再起動する。# apt-get update # apt-get dist-upgrade
無事起動出来たら次は"/etc/apt/sources.list"の"squeeze"を"wheezy"に書き換え、同じ手順でアップグレードを行う。# shutdown -r now
起動したら日本語環境の設定するなりして自由にいじくり回す。
"ja_JP.EUC-JP EUC-JP"と"ja_JP.UTF-8 UTF-8"を追加し、"ja_JP.UTF-8 UTF-8"をデフォルトロケールに設定して完了。# aptitude install locales manpages-ja # dpkg-reconfigure locales
jessie に上げた 玄箱HG + u-boot がクラッシュし、1から復旧しました。
返信削除このサイトは本当に助かりました。ありがとうございます。
ちなみに squeeze はすでに archive 行きですので、source.lst には
lenny -> squeeze のところは
deb http://archive.debian.org/debian/ squeeze contrib main non-free
としておくと良いと思います。