Sarge -> etch upgrade
ずっと apt-get -f install で直らなかった問題が直ったので挑戦してみました。
dpkg --force-overwrite -i /var/cache/apt/archives/libc6_2.3.2.ds1-22sarge6_i386.deb
http://www.linuxquestions.org/questions/showthread.php?t=565495
ハード基本情報 CPU
# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 8 model name : Pentium III (Coppermine) stepping : 6 cpu MHz : 868.645 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse up bogomips : 1738.64
ハード基本情報 メモリ
# cat /proc/meminfo MemTotal: 320776 kB MemFree: 118260 kB Buffers: 6980 kB Cached: 79492 kB SwapCached: 4 kB Active: 116312 kB Inactive: 41160 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 320776 kB LowFree: 118260 kB SwapTotal: 979956 kB SwapFree: 979792 kB Dirty: 80 kB Writeback: 0 kB AnonPages: 71020 kB Mapped: 29376 kB Slab: 40928 kB PageTables: 1000 kB NFS_Unstable: 0 kB Bounce: 0 kB CommitLimit: 1140344 kB Committed_AS: 238120 kB VmallocTotal: 704504 kB VmallocUsed: 3140 kB VmallocChunk: 701012 kB
ドキュメントどおりに作業を進める。
4.2.3 パッケージの状態をチェックする # dpkg --get-selections "*" > ~/curr-pkgs.txt 4.3 パッケージのマークを手作業で外す # aptitude unmarkauto vim 4.4.1 APT のインターネットソースの追加 # vi /etc/apt/sources.list deb http://www.ring.gr.jp/archives/linux/debian/debian etch main contrib 追加 4.5.1 セッションの記録 # script -t 2>~/upgrade-etch.time -a ~/upgrade-etch.script 4.5.2 パッケージリストの更新 # aptitude update Reading Package Lists... Done Building Dependency Tree Reading extended state information Initializing package states... Done Reading task descriptions... Done Writing extended state information... Done Get:1 http://www.ring.gr.jp etch/main Packages [5638kB] Get:2 http://www.ring.gr.jp etch/main Release [95B] Get:3 http://www.ring.gr.jp etch/contrib Packages [72.6kB] Get:4 http://www.ring.gr.jp etch/contrib Release [98B] Fetched 5711kB in 17s (331kB/s) Reading Package Lists... Done Building Dependency Tree Reading extended state information Initializing package states... Done Reading task descriptions... Done W: Couldn't stat source package list http://www.ring.gr.jp etch/main Packages (/var/lib/apt/lists/www.ring.gr.jp_archives_linux_debian_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://www.ring.gr.jp etch/contrib Packages (/var/lib/apt/lists/www.ring.gr.jp_archives_linux_debian_debian_dists_etch_contrib_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://www.ring.gr.jp etch/main Packages (/var/lib/apt/lists/www.ring.gr.jp_archives_linux_debian_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://www.ring.gr.jp etch/contrib Packages (/var/lib/apt/lists/www.ring.gr.jp_archives_linux_debian_debian_dists_etch_contrib_binary-i386_Packages) - stat (2 No such file or directory) W: You may want to update the package lists to correct these missing files W: You may want to update the package lists to correct these missing files いろいろmirrorを変えて # aptitude updateしてみたが 結局ftpならエラーでなかったので下記のように # vi /etc/apt/sources.list deb ftp://ftp.jp.debian.org/debian etch main contrib 4.5.3 アップグレードするのに十分な領域があることを確認する # aptitude -y -s -f --with-recommends dist-upgrade Reading Package Lists... Done Building Dependency Tree Reading extended state information Initializing package states... Done Reading task descriptions... Done 〜省略〜 298 packages upgraded, 103 newly installed, 19 to remove and 45 not upgraded. Need to get 181MB/181MB of archives. After unpacking 109MB will be used. Would download/install/remove packages. 4.5.4 システムの最小アップグレード # aptitude upgrade # aptitude install initrd-tools 4.5.4.1 デスクトップシステムのアップグレード 入ってなかった 4.5.4.2 X のパッケージがいくつかインストールされているシステムのアップグレード # dpkg -l xfree86-common | grep ^ii # aptitude install x11-common 4.5.5 カーネルのアップグレード # aptitude install linux-image-2.6-686 # uname -r 2.6.8-1-386 # apt-cache search linux-image-2.6- | grep -v transition linux-image-2.6-486 - Linux kernel 2.6 image on x86 linux-image-2.6-686 - Linux kernel 2.6 image on PPro/Celeron/PII/PIII/P4 linux-image-2.6-686-bigmem - Linux kernel 2.6 image on PPro/Celeron/PII/PIII/P4 linux-image-2.6-amd64 - Linux kernel 2.6 image on AMD64 linux-image-2.6-k7 - Linux kernel 2.6 image on AMD K7 linux-image-2.6-vserver-686 - Linux kernel 2.6 image on PPro/Celeron/PII/PIII/P4 linux-image-2.6-vserver-k7 - Linux kernel 2.6 image on AMD K7 linux-image-2.6-xen-686 - Linux kernel 2.6 image on i686 linux-image-2.6-xen-vserver-686 - Linux kernel 2.6 image on i686 *CPUはPentiumIIIなので686を選択 4.5.6 残りのシステムのアップグレード # aptitude dist-upgrade 4.5.7 パッケージの署名の取得 # aptitude update # aptitude upgrade 4.6.4 デバイスの整列順序の変更 よくわからなかったので放置 4.6.5 起動タイミングの問題 よくわからなかったので放置 4.7.1 devfs からのコンバート grep devfs /proc/mouts してなかった。放置 4.7.2 lilo の再実行 /sbin/lilo がなかった。(grubだった) 4.8 次期リリースへの準備 /etc/kernel-img.confの変更 /sbin/update-grub => /usr/sbin/update-grub すべてできたっぽいのでとりあえずreboot # reboot
reboot後
ログインして # ps auxww いろいろ動いてない。とりあえずいろいろやってみる # uname -r 2.6.18-4-686 気づいた点 ・srcでコンパイルしていた apache postgresが起動していない。 ・postfixはrcされexim4がii # /etc/init.d/apache start Syntax error on line 237 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: libgd.so.1: cannot open shared object file: No such file or directory /etc/init.d/apache start: httpd could not be started # locate liggd.so.1 # libgs.so.1はなくなったと… # vi /usr/local/apache/conf/httpd.conf libphp mod_phpをコメントアウト # /etc/init.d/apache start /etc/init.d/apache start: httpd started 起動した。とりあえず問題なし。PHPもう使ってないし # /etc/init.d/postgres start Starting PostgreSQL: /usr/local/pgsql/bin/pg_ctl: line 336: /usr/local/pgsql/data/serverlog: Permission denied ok # ll /usr/local/pgsql/data/ total 27012 -rw------- 1 88 88 4 Dec 25 2004 PG_VERSION drwx------ 17 88 88 4096 Jul 5 2006 base drwx------ 2 88 88 4096 Jul 17 16:29 global drwx------ 2 88 88 4096 May 1 2006 pg_clog -rw------- 1 88 88 2413 Jul 22 2005 pg_hba.conf -rw------- 1 88 88 1441 Dec 25 2004 pg_ident.conf drwx------ 2 88 88 4096 Nov 8 2006 pg_xlog -rw------- 1 88 88 5280 Jul 22 2005 postgresql.conf -rw------- 1 88 88 32 Aug 7 2006 postmaster.opts -rw------- 1 88 88 27585294 Jul 17 16:29 serverlog # grep 88 /etc/passwd # grep 88 /etc/group # grep postgres /etc/passwd postgres:x:107:108:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash # chown -R postgres:postgres /usr/local/pgsql # /etc/init.d/postgres start Starting PostgreSQL: ok たぶんaptでpostgresのdevを入れた影響か?本体も全て入っている # dpkg -l | grep postgres ii libiplike-pgsql 1.2.9-1sarge postgresql stored procedure used for searchi ii postgresql 7.5.22 object-relational SQL database management sy ii postgresql-7.4 7.4.16-1 object-relational SQL database, version 7.4 ii postgresql-client 7.5.22 front-end programs for PostgreSQL (transitio ii postgresql-client-7.4 7.4.16-1 front-end programs for PostgreSQL 7.4 ii postgresql-client-common 71 manager for multiple PostgreSQL client versi ii postgresql-common 71 manager for PostgreSQL database clusters ii postgresql-dev 7.4.7-6sarge5 development files for libpq (PostgreSQL libr # dpkg -l postfix 消えていたので(exim4が自動で入るからか) # aptitude install postfix
これで大体もとと同じ感じ。
テストサーバーだった上に、sarge => etch やってみたかったのでちょうどよかった。