我有一台安装了CentOS 4.8的服务器。 提供的是垃圾,但只剩下几个月了,他们忙于被大通银行起诉,所以我怀疑我能拿到CentOS 5。
我使用Virtuozzo擦干净了服务器,发现默认图像是非常空的。 我甚至不得不自己安装yum。
我已经达到了我想要安装TomCat的地步。 我下载了Sun JRE作为.rpm.bin文件,执行chmod a + x并运行它。 这产生了一个.rpm文件,我尝试安装:
[root@host java]# rpm -Uvh jre-6u20-linux-i586.rpm Preparing... ########################################### [100%] 1:jre ########################################### [100%] Unpacking JAR files... rt.jar... jsse.jar... charsets.jar... localedata.jar... plugin.jar... javaws.jar... deploy.jar... error: %post(jre-1.6.0_20-fcs.i586) scriptlet failed, exit status 5 [root@host java]# rpm -qi jre Name : jre Relocations: /usr/java Version : 1.6.0_20 Vendor: Sun Microsystems, Inc. Release : fcs Build Date: Mon Apr 12 19:34:13 2010 Install Date: Thu May 6 06:36:17 2010 Build Host: jdk-lin-1586 Group : Development/Tools Source RPM: jre-1.6.0_20-fcs.src.rpm Size : 50708634 License: Sun Microsystems Binary Code License (BCL) Signature : (none) Packager : Java Software <[email protected]> URL : http://java.sun.com/ Summary : Java(TM) Platform Standard Edition Runtime Environment Description : The Java Platform Standard Edition Runtime Environment (JRE) contains everything necessary to run applets and applications designed for the Java platform. This includes the Java virtual machine, plus the Java platform classes and supporting files. The JRE is freely redistributable, per the terms of the included license. [root@host java]#
我在Google上找不到有关该错误消息的任何部分的任何结果,而且我对rpm的使用经验甚less(我通常使用Debian)。
这是一个破包,还是我错过了一些东西或一些设置?
您可能会发现检查实际上失败的postinstall脚本是有帮助的。 尝试以下操作:
rpm -q --scripts -p jre-6u20-linux-i586.rpm
这将在rpm文件中显示所有脚本。 jre的postinstall脚本中可能会有拼写或path错误。 您可以直观地检查它,并使用它指定的shell手动运行它(将scriptlet的内容剪切/粘贴到脚本文件中并手动运行)。