間違いだらけの備忘録

このページの内容は無保証でありこのページの内容によって直接、または間接に損害を受けられたとしても私は責任を取りません。

sysvutilsの削除

結論としては下記で行けた。

# dpkg -r --force-depends --force-remove-essential sysvutils
# aptitude dist-upgrade

The following packages will be REMOVED:
  gappletviewer-4.2{u} gcj-4.2{u} libgcj8-dev{u} liblzo1{u} libmozjs0d{u} libpoco2{u} libxul-common{u}
  libxul0d{u}

Unpacking sysvinit-utils (from .../sysvinit-utils_2.86.ds1-61_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/sysvinit-utils_2.86.ds1-61_i386.deb (--unpack):
 trying to overwrite `/sbin/sulogin', which is also in package sysvutils
Errors were encountered while processing:
 /var/cache/apt/archives/sysvinit-utils_2.86.ds1-61_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

dpkg: error processing /var/cache/apt/archives/sysvinit-utils_2.86.ds1-61_i386.deb (--unpack):
 trying to overwrite `/sbin/sulogin', which is also in package sysvutils
Errors were encountered while processing:
 /var/cache/apt/archives/sysvinit-utils_2.86.ds1-61_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

# dpkg -r --force-depends  sysvutils
dpkg: error processing sysvutils (--remove):
 This is an essential package - it should not be removed.
Errors were encountered while processing:
 sysvutils

# dpkg -r --force-depends --force-remove-essential sysvutils
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
dpkg: sysvutils: dependency problems, but removing anyway as you request:
 initscripts depends on sysvutils.
 upstart depends on sysvutils (>= 2.86.ds1-14.1ubuntu11).
(Reading database ... 220378 files and directories currently installed.)
Removing sysvutils ...
Processing triggers for man-db ...

# aptitude upgrade
W: The "upgrade" command is deprecated; use "safe-upgrade" instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following packages have unmet dependencies:
  upstart: PreDepends: sysvutils (>= 2.86.ds1-14.1ubuntu11) which is a virtual package.
  initscripts: Depends: sysvutils which is a virtual package.

# dpkg -i /var/cache/apt/archives/sysvinit-utils_2.86.ds1-61_i386.deb
(Reading database ... 220363 files and directories currently installed.)
Unpacking sysvinit-utils (from .../sysvinit-utils_2.86.ds1-61_i386.deb) ...
Setting up sysvinit-utils (2.86.ds1-61) ...
Processing triggers for man-db ...

# aptitude upgrade
W: The "upgrade" command is deprecated; use "safe-upgrade" instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages have unmet dependencies:
  upstart: PreDepends: sysvutils (>= 2.86.ds1-14.1ubuntu11) which is a virtual package.
  initscripts: Depends: sysvutils which is a virtual package.

# aptitude dist-upgrade

成功

このページにはhatena以外のサービスからのコンテンツが埋め込まれています。 hatenaによりGoogle AdSense 広告が埋め込まれています。