Dec 192006
 

久々にSolarisパッチのバックアウトをする羽目になりました。

CSWパッケージのTomcat5を入れようと思ったら、useraddでエラーが。

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <CSWtomcat5> [y,n,?] y

Installing tomcat5 - Apache Jakarta Tomcat 5.5 Servlet/JSP Container as <CSWtomcat5>

## Executing preinstall script.
ld.so.1: useradd: fatal: libc.so.1: version `SUNW_1.22.2' not found (required by file /usr/sbin/useradd)
ld.so.1: useradd: fatal: libc.so.1: open failed: No such file or directory
Killed
user tomcat has been added
ERROR: Failed to add user tomcat
pkgadd: ERROR: preinstall script did not complete successfully

Installation of <CSWtomcat5> failed.
ERROR: could not add CSWtomcat5.
#

sunsolveをあたってみるとこちらのバグがもろヒット。

120050-03か120050-04が適用済みの環境で発生するとのこと。うちは120050-04が適用済みでした。

# showrev -p|grep 120050
Patch: 120050-02 Obsoletes:  Requires:  Incompatibles:  Packages: SUNWcsu
Patch: 120050-04 Obsoletes:  Requires:  Incompatibles:  Packages: SUNWcsu

ということでpatchrmします。

# patchrm 120050-04
Validating patches...

Loading patches installed on the system...

Done!

Checking patches that you specified for removal.

Done!

Approved patches will be removed in this order:

120050-04

Checking installed patches...

Backing out patch 120050-04...

Patch 120050-04 has been backed out.

#

最近ディスク領域が厳しくなりつつあったので、そろそろバックアウトディレクトリ(/var/sadm/pkg/*/save)を掃除しようかと思ってたのですが、やらなくてよかったです。

Sorry, the comment form is closed at this time.