2013年5月9日木曜日

KURO-BOX/T4をSqueezeからWheezyに更新してみる

先日Debianの新しいバージョンWheezyが出たらしいので、KURO-BOX/T4もSqueezeからWheezyにあげてみます。
KURO-BOX/T4環境はセットアップ後のLennyからSqueezeに上げてあるだけのものです。
細かい動作検証等はせず起動させてるだけなのでどこか不具合があるかもです...

1. apt設定ファイルの編集
/etc/apt/sources.list を編集してWheezy用のファイルを取ってくるようにします。
KURO-NAS-T4:~# vi /etc/apt/sources.list
deb http://ftp.debian.org/debian/ squeeze main
deb-src http://ftp.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

#deb http://volatile.debian.org/debian-volatile lenny/volatile main
#deb-src http://volatile.debian.org/debian-volatile lenny/volatile main

 ↓以下に変更

deb http://ftp.jp.debian.org/debian/ wheezy main
deb-src http://ftp.jp.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

#deb http://volatile.debian.org/debian-volatile lenny/volatile main
#deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
# wheezy-updates, previously known as 'volatile'
deb http://ftp.jp.debian.org/debian/ wheezy-updates main
deb-src http://ftp.jp.debian.org/debian/ wheezy-updates main
2. パッケージの更新
編集が終わったらパッケージを更新します。
KURO-NAS-T4:~# apt-get update
KURO-NAS-T4:~# apt-get upgrade
3. カーネルの更新
あらかじめ作っておいたカーネル(3.2.41)も落として入れておきます。
KURO-NAS-T4:~# cd /boot
KURO-NAS-T4:~# wget --no-check-certificate https://sites.google.com/site/iroirofiles/uImage-3.2.41-wheezy-2 -O uImage-3.2.41-wheezy-2
KURO-NAS-T4:~# rm uImage.buffalo
KURO-NAS-T4:~# ln -s uImage-3.2.41-wheezy-2 uImage.buffalo
KURO-NAS-T4:~# cd /
KURO-NAS-T4:~# wget --no-check-certificate https://sites.google.com/site/iroirofiles/modules-3.2.41.tgz -O modules-3.2.41.tgz
KURO-NAS-T4:~# tar zxvf modules-3.2.41.tgz
ここで一度再起動します。
4. システムのアップグレード
再起動が問題なく終わったらシステムのアップグレードをします。
KURO-NAS-T4:~# apt-get dist-upgrade
KURO-NAS-T4:~# apt-get --purge autoremove

参考:第4章 Debian 6.0 (squeeze) からのアップグレード

0 件のコメント:

コメントを投稿