初代玄箱の apt-get update、apt-get upgrade
インストール直後の状態から apt-get を動かしたら、以下のようになった。
# apt-get update … Reading Package Lists... Done Building Dependency Tree... Done W: Couldn't stat source package list http://security.debian.org woody/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_woody_updates_main_binary-powerpc_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://security.debian.org woody/updates/contrib Packages (/var/lib/apt/lists/security.debian.org_dists_woody_updates_contrib_binary-powerpc_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list ftp://ftp.dti.ad.jp woody/main Packages (/var/lib/apt/lists/ftp.dti.ad.jp_pub_Linux_debian_dists_woody_main_binary-powerpc_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list ftp://ftp.dti.ad.jp woody/contrib~ Packages (/var/lib/apt/lists/ftp.dti.ad.jp_pub_Linux_debian_dists_woody_contrib%7e_binary-powerpc_Packages) - stat (2 No such file or directory) W: You may want to run apt-get update to correct these problems E: Some index files failed to download, they have been ignored, or old ones used instead.
いろいろ調べてみたら/etc/apt/sources.listが古いそうな。
http://miyanet.ddo.jp/~shotech/Debian/Debian.htm
上記で紹介されているまま修正して実行したら、途中までうまく流れたけどまたNG。
# apt-get update Hit ftp://ftp.dti.ad.jp stable/main Packages Hit ftp://ftp.dti.ad.jp stable/main Release … Hit http://security.debian.org stable/updates/contrib Release Reading Package Lists... Error! E: Dynamic MMap ran out of room E: Error occured while processing python-pyme (NewVersion1) E: Problem with MergeList /var/lib/apt/lists/ftp.dti.ad.jp_pub_Linux_debian_dists_stable_main_binary-powerpc_Packages E: The package lists or status file could not be parsed or opened.
意味が分からんorz
またググり直したら「aptitude update したら "E: Dynamic MMap ran out of room" とエラーが出た」というのがヒットしました。
http://debian.fam.cx/?AptGet
キャッシュが大きすぎるせいだーとのことで、/etc/apt/apt.conf に
APT::Cache-Limit "100000000";
を記述すれば良い様子。
ちなみに /etc/apt/apt.conf はもともと存在しないファイルでしたが、作成して上の内容を記載してみたらapt-get update、upgrade はうまくいきました♪
さて、試しに wget を入れようか。
# apt-get install wget Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: gcc-4.3-base libc6 libgcc1 libssl0.9.8 The following NEW packages will be installed: gcc-4.3-base libgcc1 libssl0.9.8 wget 1 packages upgraded, 4 newly installed, 0 to remove and 76 not upgraded. Need to get 1623kB/6832kB of archives. After unpacking 1720kB will be used. Do you want to continue? [Y/n] Y Get:1 ftp://ftp.dti.ad.jp stable/main libssl0.9.8 0.9.8g-15 [1000kB] Get:2 ftp://ftp.dti.ad.jp stable/main wget 1.11.4-2 [623kB] Fetched 1623kB in 1s (1200kB/s) Preconfiguring packages ... Selecting previously deselected package gcc-4.3-base. (Reading database ... 7271 files and directories currently installed.) Unpacking gcc-4.3-base (from .../gcc-4.3-base_4.3.2-1.1_powerpc.deb) ... Selecting previously deselected package libgcc1. Unpacking libgcc1 (from .../libgcc1_1%3a4.3.2-1.1_powerpc.deb) ... Preparing to replace libc6 2.2.5-11.8 (using .../libc6_2.7-18_powerpc.deb) ... Checking for services that may need to be restarted... Checking init scripts... readlink: invalid option -- e usage: readlink [-n] [-f] symlink readlink: invalid option -- e usage: readlink [-n] [-f] symlink readlink: invalid option -- e usage: readlink [-n] [-f] symlink readlink: invalid option -- e usage: readlink [-n] [-f] symlink readlink: invalid option -- e usage: readlink [-n] [-f] symlink readlink: invalid option -- e usage: readlink [-n] [-f] symlink readlink: invalid option -- e usage: readlink [-n] [-f] symlink readlink: invalid option -- e usage: readlink [-n] [-f] symlink WARNING: POSIX threads library NPTL requires kernel version 2.6.8 or later. If you use a kernel 2.4, please upgrade it before installing glibc. The installation of a 2.6 kernel _could_ ask you to install a new libc first, this is NOT a bug, and should *NOT* be reported. In that case, please add etch sources to your /etc/apt/sources.list and run: apt-get install -t etch linux-image-2.6 Then reboot into this new kernel, and proceed with your upgrade dpkg: error processing /var/cache/apt/archives/libc6_2.7-18_powerpc.deb (--unpack): subprocess pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/libc6_2.7-18_powerpc.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
エラー…