玄箱HGメモ/Debian/etch化
緑文字が入力コマンド。
Debianをsargeからetchにアップグレードします。
管理者権限(管理者アカウント参照)で作業する必要があります。
etch化の前にディストリビューションバージョンを確認しておきましょう。
KAGUYA:~# cat /etc/debian_version[ENTER]
ディストリビューションバージョン確認(例)
3.1
apt-get/aptitudeの更新先サイトとバージョンのコードネームをetchに変更します。
source.list更新画面(例1)
deb http://security.debian.org/ etch/updates main contrib non-free deb http://http1.debian.or.jp/debian/ etch main contrib non-free deb http://http1.debian.or.jp/debian-non-US/ etch/non-US main contrib non-free deb-src http://http1.debian.or.jp/debian/ etch main contrib non-free deb-src http://http1.debian.or.jp/debian-non-US/ etch/non-US main contrib non-free
source.list更新画面(例2)
deb http://security.debian.org/ etch/updates main contrib non-free deb ftp://ftp.jp.debian.org/debian etch main contrib non-free deb ftp://ftp.jp.debian.org/debian-jp etch-jp main contrib non-free deb-src ftp://ftp.jp.debian.org/debian etch main contrib non-free deb-src ftp://ftp.jp.debian.org/debian-jp etch-jp main contrib non-free
sargeをstableにすると最新版が対象となります。
2009/02/15以降、stableの対象がsarge、etchを超えてlennyになりました。
カーネルがu-Image対応でないと立ち上がらなくなるようなので、とりあえずstableは止めておきます。
まずはaptitudeでupdateします。
KAGUYA:~# aptitude update[ENTER]
aptitude update画面(例)
Reading Package Lists... Done Building Dependency Tree Reading extended state information Initializing package states... Done Reading task descriptions... Done Hit ftp://ftp.dti.ad.jp stable/main Packages Hit ftp://ftp.dti.ad.jp stable/main Release Get:1 http://security.debian.org stable/updates/main Packages [373kB] Hit ftp://ftp.dti.ad.jp stable/contrib Packages Hit ftp://ftp.dti.ad.jp stable/contrib Release Hit ftp://ftp.dti.ad.jp stable/non-US/main Packages Hit ftp://ftp.dti.ad.jp stable/non-US/main Release Hit ftp://ftp.dti.ad.jp stable/non-US/contrib Packages Hit ftp://ftp.dti.ad.jp stable/non-US/contrib Release Hit ftp://ftp.dti.ad.jp stable/main Sources Hit ftp://ftp.dti.ad.jp stable/main Release Hit ftp://ftp.dti.ad.jp stable/contrib Sources Hit ftp://ftp.dti.ad.jp stable/contrib Release Hit ftp://ftp.dti.ad.jp stable/non-US/main Sources Hit ftp://ftp.dti.ad.jp stable/non-US/main Release Hit ftp://ftp.dti.ad.jp stable/non-US/contrib Sources Hit ftp://ftp.dti.ad.jp stable/non-US/contrib Release Get:2 http://security.debian.org stable/updates/main Release [113B] Hit http://security.debian.org stable/updates/contrib Packages Get:3 http://security.debian.org stable/updates/contrib Release [116B] Fetched 373kB in 3s (105kB/s) Reading Package Lists... Done Building Dependency Tree Reading extended state information Initializing package states... Done Reading task descriptions... Done KAGUYA:~#
次にaptitudeでupgradeします。
KAGUYA:~# aptitude dist-upgrade[ENTER]
aptitude upgrade画面(例/抜粋)
Reading Package Lists... Done Building Dependency Tree Reading extended state information Initializing package states... Done
: (省略)
101 packages upgraded, 26 newly installed, 2 to remove and 0 not upgraded. Need to get 992kB/37.9MB of archives. After unpacking 30.1MB will be used. Do you want to continue? [Y/n/?]
Y[ENTER]
Writing extended state information... Done Get:1 ftp://ftp.dti.ad.jp stable/main netbase 4.29 [36.6kB] Get:2 ftp://ftp.dti.ad.jp stable/main passwd 1:4.0.18.1-7 [856kB]
: (省略)
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] ?
N[ENTER]
Installing new version of config file /etc/init.d/hostname.sh ... Installing new version of config file /etc/init.d/mountall.sh ... Installing new version of config file /etc/init.d/mountnfs.sh ... Configuration file `/etc/init.d/reboot' ==> 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. *** reboot (Y/I/N/O/D/Z) [default=N] ?
N[ENTER]
Installing new version of config file /etc/init.d/rmnologin ... Installing new version of config file /etc/init.d/sendsigs ... Installing new version of config file /etc/init.d/single ...
: (省略)
Building Dependency Tree Reading extended state information Initializing package states... Done Reading task descriptions... Done KAGUYA:~#
aptitude upgrade画面(例)の全画面
aptitude upgrade中に現バージョンを残したファイルの内容
玄箱/HGをリブートします。
管理者権限(管理者アカウント参照)で作業する必要があります。
etch化が終わったらディストリビューションバージョンが4.0に上がっていることを確認しておきましょう。
KAGUYA:~# cat /etc/debian_version[ENTER]
ディストリビューションバージョン確認(例)
4.0
もう一度updateして更新がないことを確認します。
KAGUYA:~# aptitude update[ENTER]
aptitude 再update画面(例)
Get:1 http://security.debian.org stable/updates Release.gpg [189B] Get:2 http://security.debian.org stable/updates Release [37.6kB] Get:3 ftp://ftp.dti.ad.jp stable Release.gpg [386B] Get:4 ftp://ftp.dti.ad.jp stable/non-US Release.gpg [197B] Ign http://security.debian.org stable/updates/main Packages/DiffIndex Get:5 ftp://ftp.dti.ad.jp stable Release [58.2kB] Ign http://security.debian.org stable/updates/contrib Packages/DiffIndex Hit http://security.debian.org stable/updates/main Packages Hit http://security.debian.org stable/updates/contrib Packages Get:6 ftp://ftp.dti.ad.jp stable/non-US Release [18.5kB] Ign ftp://ftp.dti.ad.jp stable/non-US Release Get:7 ftp://ftp.dti.ad.jp stable/main Packages/DiffIndex Ign ftp://ftp.dti.ad.jp stable/main Packages/DiffIndex Get:8 ftp://ftp.dti.ad.jp stable/contrib Packages/DiffIndex Ign ftp://ftp.dti.ad.jp stable/contrib Packages/DiffIndex Get:9 ftp://ftp.dti.ad.jp stable/main Sources/DiffIndex Ign ftp://ftp.dti.ad.jp stable/main Sources/DiffIndex Get:10 ftp://ftp.dti.ad.jp stable/contrib Sources/DiffIndex Ign ftp://ftp.dti.ad.jp stable/contrib Sources/DiffIndex Get:11 ftp://ftp.dti.ad.jp stable/non-US/main Packages/DiffIndex Ign ftp://ftp.dti.ad.jp stable/non-US/main Packages/DiffIndex Get:12 ftp://ftp.dti.ad.jp stable/non-US/contrib Packages/DiffIndex Ign ftp://ftp.dti.ad.jp stable/non-US/contrib Packages/DiffIndex Get:13 ftp://ftp.dti.ad.jp stable/non-US/main Sources/DiffIndex Ign ftp://ftp.dti.ad.jp stable/non-US/main Sources/DiffIndex Get:14 ftp://ftp.dti.ad.jp stable/non-US/contrib Sources/DiffIndex Ign ftp://ftp.dti.ad.jp stable/non-US/contrib Sources/DiffIndex Hit ftp://ftp.dti.ad.jp stable/main Packages Hit ftp://ftp.dti.ad.jp stable/contrib Packages Hit ftp://ftp.dti.ad.jp stable/main Sources Hit ftp://ftp.dti.ad.jp stable/contrib Sources Hit ftp://ftp.dti.ad.jp stable/non-US/main Packages Hit ftp://ftp.dti.ad.jp stable/non-US/contrib Packages Hit ftp://ftp.dti.ad.jp stable/non-US/main Sources Hit ftp://ftp.dti.ad.jp stable/non-US/contrib Sources Fetched 115kB in 6s (17.1kB/s) Reading package lists... Done W: GPG error: ftp://ftp.dti.ad.jp stable/non-US Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F1D53D8C4F368D5D W: You may want to run apt-get update to correct these problems KAGUYA:~#
もう一度upgradeして更新がないことを確認します。
KAGUYA:~# aptitude dist-upgrade[ENTER]
aptitude 再dist-upgrade画面(例)
Reading package lists... Done Building dependency tree... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done Building tag database... Done No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0B of archives. After unpacking 0B will be used. KAGUYA:~#
作業終了です。
以降の作業を行わない場合は管理者アカウント終了してtelnet切断します。
コメントはありません。 コメント/玄箱HGメモ/Debian/etch化?
Online: 1