[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:48353] PHP5をインストールしようとしたらdpkg returned an error code (2)?
"Masayuki KaToH(KJinc)"です。お世話になっております。
Debian 4.0上で、PHP5がインストールしたくなり、apt-get install php5する
と、エラーが発生し、 APT::Force-LoopBreak=trueを試せとのことで
apt-get -o APT::Force-LoopBreak=true install php5
すると、
Preconfiguring packages ...
dpkg: `update-rc.d' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /
sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
と表示され、インストールできないでエラーコードが表示されて終わってしま
いました。おお?と思い、再度
apt-get -o APT::Force-LoopBreak=true install php5
すると、
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
console-tools: Depends: sysvinit (> 2.74) but it is not going to be
installed
mc: Depends: e2fsprogs (>= 1.27-2) but it is not going to be installed
modutils: Depends: sysvinit (>= 2.71-2) but it is not going to be
installed
php5: Depends: libapache2-mod-php5 (>= 5.2.0-8+etch1) but it is not
going to
e installed or
libapache-mod-php5 (>= 5.2.0-8+etch1) but it is not
going to b
installed or
php5-cgi (>= 5.2.0-8+etch1) but it is not going to be
installe
Depends: php5-common (>= 5.2.0-8+etch1) but it is not going to
be insta
led
ppp: Depends: sysvinit (>= 2.75-4) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
specify a
olution).
と、エラーでした。とにかく、-fを試せとのことぽいので
apt-get -f install
すると、
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
console-common console-tools e2fsprogs initscripts libconsole libglib2.
0-0
libpcap0.8 libslang2 mc sysv-rc sysvinit
Suggested packages:
kbd-compat gpart parted e2fsck-static zip unzip bzip2 links w3m arj
gpm
sysv-rc-conf bum
Recommended packages:
libglib2.0-data
The following packages will be REMOVED:
console-tools-libs mc-common
The following NEW packages will be installed:
e2fsprogs initscripts libconsole libglib2.0-0 libpcap0.8 libslang2
sysv-rc
sysvinit
The following packages will be upgraded:
console-common console-tools mc
3 upgraded, 8 newly installed, 2 to remove and 160 not upgraded.
1 not fully installed or removed.
Need to get 0B/4522kB of archives.
After unpacking 6402kB of additional disk space will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
dpkg: `update-rc.d' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /
sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
と、やっぱり、error code (2)に、戻ってきてしまいました。これ以降、
apt-get upgradeしようとすると、
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
console-tools: Depends: sysvinit (> 2.74) but it is not installed
mc: Depends: e2fsprogs (>= 1.27-2) but it is not installed
modutils: Depends: sysvinit (>= 2.71-2) but it is not installed
ppp: Depends: sysvinit (>= 2.75-4) but it is not installed
E: Unmet dependencies. Try using -f.
とでて、-fを試せ、ということで堂々巡りで解決できなくなってしまいました。
私はどうすればこの問題を調査、解決できるでしょうか?
--
KJinc alias KaToH'J
kjinc@xxxxxxxx
http://karura.dynsite.net/~kjinc