KUROBOX/2006-12-07

Last-modified: 2006-12-12 (火) 00:13:18

woody から sarge へのアップグレード

玄箱うぉうぉう♪|http://kuro.dsk.jp/ からダウンロードできるパッケージの Debian は旧バージョンの woody なので、現行バージョンの sarge にアップグレードする。

source.list の更新

source.list に記述されているサーバパスは woody 用になっているので、sarge 用に変更する

/etc/apt/source.list を sarge 用に変更

# cat /etc/apt/source.list | sed 's/woody/sarge/g' > /etc/apt/source.list.sarge
# mv /etc/apt/source.list.sarge /etc/apt/source.list

パッケージリストの更新

# apt-get update

アップグレードの実行

# apt-get dist-upgrade

アップグレードを実行するとたまに選択を迫られる。
今回は初なので、とりあえず、適当。

各選択を以下に記す。

Do you want to continu? [Y/n] と聞かれるのでもちろん y

Configuring Debconf というダイアログが表示される

Packages that use debconf for configuration share a common look and feel. You can select the type of user
interface they use.
The dialog frontend is a full-screen, character based interface, while the readline frontend uses a more
traditional plain text interface, and both the gnome and kde frontends are modern X interfaces, fitting
the respective desktops (but may be used in any X environment). The editor frontend lets you configure
things using your favorite text editor. The noninteractive frontend never asks you any questions.
What interface should be used for configuring packages?
                                            Dialog
                                            Readline
                                            Gnome
                                            Kde
                                            Editor
                                            Noninteractive
                              <Ok>                                   <Cancel>

Dialog を選択して OK

Debconf prioritizes the questions it asks you. Pick the lowest priority of question you want to see:
  - 'critical' only prompts you if the system might break.
    Pick it if you are a newbie, or in a hurry.
  - 'high' is for rather important questions
  - 'medium' is for normal questions
  - 'low' is for control freaks who want to see everything
Note that no matter what level you pick here, you will be able to see every question if you reconfigure a
package with dpkg-reconfigure.
See only questions that are of what priority and higher?
                                               medium
                                               critical
                                               high
                                               low
                              <Ok>                                   <Cancel>

medium を選択

Configuring Console-data

The keymap describes how keys are laid out on your keyboard, and what symbols (letters, digits, etc.) are
drawn on them.
"Select keymap from arch list" will allow you to select one of the predefined keymaps specific for your
architecture - you will most likely want this unless you have a USB keyboard.
"Don't touch keymap" will prevent the configuration system from overwriting the keymap you have in
/etc/console.  Select this if you want to keep a keymap you obtained through other means.  Please remember
to install new keymaps with install-keymap(8) if you select this choice.
"Keep kernel keymap" will prevent any keymap from being loaded next time your system boots.  It will
remove from /etc/console any keymap you may have already selected (it will be lost), but if you have
already loaded a keymap, it cannot be changed back until you reboot.
"Select keymap from full list" offers a full listing of all predefined keymaps.  You want this, if you use
an USB keyboard from a different computer architecture or if you use an adapter to use such a keyboard.
What policy do you want to apply regarding keymaps ?
                                     Don't touch keymap
                                     Select keymap from arch list
                                     Keep kernel keymap
                                     Select keymap from full list
                              <Ok>                                   <Cancel>

Don't touch keymap を選択

Adduser

Normally, home directories can be viewed by all users on the system. If you want to increase the
security/privacy on your system, you might want your home directories only readable by the user. If you
are unsure, enable system wide readable home directories.
This will only affect home directories of users added with the adduser program later.
Do you want system wide readable home directories?
                              <Yes>                                  <No>

Yes

ProFTPd configuration

Warning on syntax changes in ProFTPd configuration.
You are upgrading from a pre-1.2.8 version. Probably you will need to revise your previous configuration
to be compliant with current directives. Please, consult documentation available in proftpd-doc and change
/etc/proftpd.conf as needed.
Unfortunately, it is near impossible for me to convert your setup automatically, but for some elementary
issues. You will have to do it yourself. ProFTPd could also be unable to use the resulting configuration,
and it will not restart after upgrading.
                                                  <Ok>

Enter

ProFTPd configuration

ProFTPd can be run either as a service from inetd, or as a standalone server.  Eeach choice has its own
benefits.  If you have only a few ftp connections per day, it may not be worth the resources to keep
proftpd running at all times.
On the other hand, if your ftp site is visited frequently, inetd is not a good choice, because each time a
connection is opened, a new process is spawned.
Run proftpd from inetd or standalone?
                                              standalone
                                              inetd
                                                  <Ok>

inetd を選択

Do you want to upgrade glibc now? [Y/n]

y を選択

Replacing files in old package libc6 ...
Preparing to replace libc6 2.2.5-11.8 (using .../libc6_2.3.2.ds1-22sarge4_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 does not detect any services to stop now.
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

Unpacking replacement libc6 ...
Setting up libc6 (2.3.2.ds1-22sarge4) ...
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:
        inetd proftpd cron exim
If other services has 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

Restarting services possibly affected by the upgrade:
  inetd: stopping...starting...done.
  proftpd: 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:
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

Configuration file `/etc/securetty'
 ==> 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.
*** securetty (Y/I/N/O/D/Z) [default=N] ?

n

It is highly recommended that you allow update-passwd to make these changes
(a backup file of modified files is made with the extension .org so you can
always restore the current settings).
May I update your system? [Y/n]

y

Configuring man-db

The man and mandb program can be installed with the set-user-id bit set, so that they
will run with the permissions of the 'man' user. This allows ordinary users to benefit
from the caching of preformatted manual pages ('cat pages'), which may aid performance on
slower machines.
Cached man pages only work if you are using an 80-column terminal, to avoid one user
causing cat pages to be saved at widths that would be inconvenient for other users. If
you use a wide terminal, you can force man pages to be formatted to 80 columns anyway by
setting MANWIDTH=80.
Enabling this feature may be a security risk, so it is disabled by default. If in doubt,
you should leave it disabled.
Should man and mandb be installed 'setuid man'?
                         <Yes>                             <No>

No

Configuration file `/etc/modutils/aliases'
 ==> 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.
*** aliases (Y/I/N/O/D/Z) [default=N] ?

n

Setting up exim (3.36-16) ...
Installing new version of config file /etc/init.d/exim ...
Installing new version of config file /etc/cron.daily/exim ...
Installing new version of config file /etc/cron.d/exim ...
exim 3.x and 4.x
================
This is a package of exim 3.x. This is no longer supported upstream, and only
remains in debian to support users with existing exim 3 installations. We strongly
reccommend exim 4.x (which is in the exim4 package) for new installations. We
suggest users with existing exim 3 installations consider upgrading, particularly
if they have fairly simple configurations.
* Press return to continue
I can do some automatic configuration of your mail system, by asking
you a number of questions.  Later you may have to confirm and/or correct
your answers. In any case, comprehensive information on configuring exim is
in the eximdoc package and in /usr/share/doc/exim/spec.txt
[---Press return---]
You must choose one of the options below:
 (1) Internet site; mail is sent and received directly using SMTP. If your
     needs don't fit neatly into any category, you probably want to start
     with this one and then edit the config file by hand.
 (2) Internet site using smarthost: You receive Internet mail on this
     machine, either directly by SMTP or by running a utility such as
     fetchmail. Outgoing mail is sent using a smarthost. optionally with
     addresses rewritten. This is probably what you want for a dialup
     system.
 (3) Satellite system: All mail is sent to another machine, called a "smart
     host" for delivery. root and postmaster mail is delivered according
     to /etc/aliases. No mail is received locally.
 (4) Local delivery only: You are not on a network.  Mail for local users
     is delivered.
 (5) No configuration: No configuration will be done now; your mail system
     will be broken and should not be used. You must then do the
     configuration yourself later or run this script, /usr/sbin/eximconfig,
     as root. Look in /usr/share/doc/exim/example.conf.gz
Select a number from 1 to 5, from the list above.
Enter value (default=`1', `x' to restart):

5

ProFTPd configuration

A new version of configuration file /etc/proftpd.conf is available, but your version has
been locally modified.
What would you like to do about proftpd.conf?
                        install the package maintainer's version
                        keep your currently-installed version
                        show the differences between the versions
                        start a new shell to examine the situation
                                          <Ok>

install the package maintainer's version

終了

確認

telnet で接続すると以下のように表示される。

Debian GNU/Linux 3.1 KURO-BOX
KURO-BOX login:

バージョンが 3.0 から 3.1 に変わっている。