玄箱HGメモ/Debian/wget導入
緑文字が入力コマンド。
管理者権限(管理者アカウント参照)で作業する必要があります。
apt-get/aptitudeの更新先サイトとバージョンのコードネームを変更します。
元のファイルはとりあえず残しておきます。
KAGUYA:~# cp -p /etc/apt/source.list /etc/apt/source.list._org[ENTER]
KAGUYA:~# vi /etc/apt/source.list[ENTER]
source.list更新画面(元例)
deb http://security.debian.org stable/updates main contrib deb ftp://ftp.dti.ad.jp/pub/Linux/debian stable main contrib deb ftp://ftp.dti.ad.jp/pub/Linux/debian-non-US stable/non-US main contrib deb-src ftp://ftp.dti.ad.jp/pub/Linux/debian stable main contrib deb-src ftp://ftp.dti.ad.jp/pub/Linux/debian-non-US stable/non-US main contrib
source.list更新画面(例1)
deb http://security.debian.org/ sarge/updates main contrib non-free deb http://http1.debian.or.jp/debian/ sarge main contrib non-free deb http://http1.debian.or.jp/debian-non-US/ sarge/non-US main contrib non-free deb-src http://http1.debian.or.jp/debian/ sarge main contrib non-free deb-src http://http1.debian.or.jp/debian-non-US/ sarge/non-US main contrib non-free
source.list更新画面(例2)
deb http://security.debian.org/ sarge/updates main contrib non-free deb ftp://ftp.jp.debian.org/debian sarge main contrib non-free deb ftp://ftp.jp.debian.org/debian-jp sarge-jp main contrib non-free deb-src ftp://ftp.jp.debian.org/debian sarge main contrib non-free deb-src ftp://ftp.jp.debian.org/debian-jp sarge-jp main contrib non-free
sargeをetchにするとetchが対象となります。
時期によってはsargeではエラーになるかもしれないのでetchにしても問題ないでしょう。
sargeをstableにすると最新版が対象となります。
2009/02/15以降、stableの対象がsarge、etchを超えてlennyになりました。
カーネルがu-Image対応でないと立ち上がらなくなるようなので、とりあえずstableは止めておきます。
KAGUYA:~# apt-get update[ENTER]
apt-get更新画面(例)
Get:1 ftp://ftp.dti.ad.jp stable/main Packages [5545kB] Get:2 http://security.debian.org stable/updates/main Packages [372kB] Get:3 http://security.debian.org stable/updates/main Release [113B] Get:4 http://security.debian.org stable/updates/contrib Packages [2087B] Get:5 http://security.debian.org stable/updates/contrib Release [116B] Get:6 ftp://ftp.dti.ad.jp stable/main Release [98B] Get:7 ftp://ftp.dti.ad.jp stable/contrib Packages [56.3kB] Get:8 ftp://ftp.dti.ad.jp stable/contrib Release [101B] 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 Get:9 ftp://ftp.dti.ad.jp stable/main Sources [1656kB] Get:10 ftp://ftp.dti.ad.jp stable/main Release [97B] Get:11 ftp://ftp.dti.ad.jp stable/contrib Sources [21.0kB] Get:12 ftp://ftp.dti.ad.jp stable/contrib Release [100B] 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 Fetched 7654kB in 17s (426kB/s) Reading Package Lists... Done KAGUYA:~#
KAGUYA:~# aptitude update[ENTER]
aptitude更新画面(例)
Reading Package Lists... Done Building Dependency Tree 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 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 http://security.debian.org stable/updates/main Packages Hit http://security.debian.org stable/updates/main Release Hit http://security.debian.org stable/updates/contrib Packages 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 http://security.debian.org stable/updates/contrib Release 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 Reading Package Lists... Done Building Dependency Tree Initializing package states... Done Reading task descriptions... Done KAGUYA:~#
KAGUYA:~# aptitude install wget[ENTER]
wget導入画面(例)
Reading Package Lists... Done Building Dependency Tree Initializing package states... Done Reading task descriptions... Done The following NEW packages will be automatically installed: libssl0.9.8 tzdata The following packages have been kept back: adduser apt apt-utils aptitude at base-files base-passwd bash bsdmainutils bsdutils console-common console-data console-tools coreutils cpio cron debconf debconf-i18n debianutils dhcp-client dpkg dselect e2fslibs e2fsprogs exim fileutils findutils ftp gcc-3.3-base gettext-base grep groff-base gzip hostname ifupdown info initscripts iptables klogd libacl1 libattr1 libblkid1 libcomerr2 libconsole libdb1-compat libdb3 libdb4.2 libgcc1 libgcrypt11 libgdbm3 libgpg-error0 libldap2 liblocale-gettext-perl liblockfile1 liblzo1 libncurses5 libopencdk8 libpam-modules libpam-runtime libpam0g libpcre3 libpopt0 libsasl2 libss2 libstdc++2.10-glibc2.2 libstdc++5 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libuuid1 libwrap0 login logrotate mailx make makedev man-db manpages modconf module-init-tools modutils mount nano ncurses-base ncurses-bin net-tools netbase netkit-ping nvi passwd pciutils perl perl-base perl-modules powerpc-utils procps psmisc sed shellutils sysklogd sysv-rc sysvinit tar tasksel tcpd telnet telnetd textutils util-linux whiptail yaboot zlib1g The following NEW packages will be installed: libssl0.9.8 tzdata wget The following packages will be upgraded: libc6 1 packages upgraded, 3 newly installed, 0 to remove and 112 not upgraded. Need to get 7256kB of archives. After unpacking 8020kB 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 tzdata 2008e-1etch3 [353kB] Get:2 http://security.debian.org stable/updates/main libssl0.9.8 0.9.8c-4etch3 [895kB] Get:3 ftp://ftp.dti.ad.jp stable/main libc6 2.3.6.ds1-13etch7 [5391kB] Get:4 ftp://ftp.dti.ad.jp stable/main wget 1.10.2-2 [616kB] Fetched 7256kB in 34s (213kB/s) Preconfiguring packages ... Selecting previously deselected package tzdata. (Reading database ... 8800 files and directories currently installed.) Unpacking tzdata (from .../tzdata_2008e-1etch3_all.deb) ... Replacing files in old package libc6 ... Preparing to replace libc6 2.3.2.ds1-22 (using .../libc6_2.3.6.ds1-13etch7_powerpc.deb) ... Name Service Switch update in the C Library: pre-installation question. Running services and programs that are using NSS need to be restarted, otherwise they might not be able to do lookup or authentication any more. The installation process is able to restart some services (such as ssh or telnetd), but other programs cannot be restarted automatically. One such program that needs manual stopping and restart after the glibc upgrade by yourself is xdm - because automatic restart might disconnect your active X11 sessions. Known packages that need to be stopped before the glibc upgrade are: xdm kdm gdm postgresql xscreensaver This script did not detect any installed services which need to be stopped. If you want to interrupt the upgrade now and continue later, please answer No to the question below. Do you want to upgrade glibc now? [Y/n]
Y[ENTER]
Unpacking replacement libc6 ... Setting up tzdata (2008e-1etch3) ... Current default timezone: 'Asia/Tokyo'. Local time is now: Sat Dec 13 00:52:50 JST 2008. Universal Time is now: Fri Dec 12 15:52:50 UTC 2008. Run 'tzconfig' if you wish to change it. Setting up libc6 (2.3.6.ds1-13etch7) ... Checking for services that may need to be restarted...done. Name Service Switch update in the C Library: post-installation question. Running services and programs that are using NSS need to be restarted, otherwise they might not be able to do lookup or authentication any more (for services such as ssh, this can affect your ability to login). Note: restarting sshd/telnetd should not affect any existing connections. The services detected are: atd inetd cron exim If other services have begun to fail mysteriously after this upgrade, it is probably necessary to restart them too. We recommend you to reboot your machine after the upgrade to avoid the NSS related trouble. Do you wish to restart services? [Y/n]
Y[ENTER]
Restarting services possibly affected by the upgrade: atd: stopping...starting...done. inetd: stopping...starting...done. cron: stopping...starting...done. exim: stopping...starting...FAILED! (1) The following services failed to start: exim You will need to start these manually by running `/etc/init.d/<service> start' If the service still fails to start, you may need to file a bug on libc6 or the service involved. Press ENTER to continue:
[ENTER]
Selecting previously deselected package libssl0.9.8. (Reading database ... 8936 files and directories currently installed.) Unpacking libssl0.9.8 (from .../libssl0.9.8_0.9.8c-4etch3_powerpc.deb) ... Selecting previously deselected package wget. Unpacking wget (from .../wget_1.10.2-2_powerpc.deb) ... Setting up libssl0.9.8 (0.9.8c-4etch3) ... Setting up wget (1.10.2-2) ... Reading Package Lists... Done Building Dependency Tree Reading extended state information Initializing package states... Done Reading task descriptions... Done KAGUYA:~#
作業終了です。
以降の作業を行わない場合は管理者アカウント終了してtelnet切断します。
コメントはありません。 コメント/玄箱HGメモ/Debian/wget導入?
Online: 1