Red Hat Bugzilla – Bug 472214
'integer expression expected' errors occur during upgrade
Last modified: 2008-12-02 05:37:33 EST
Description of problem:
Following messages are randomly occuring during system upgrade:
/var/tmp/rpm-tmp.20212: line 25: [: 391VERSION: integer expression expected
/var/tmp/rpm-tmp.78685: line 25: [: 27905VERSION: integer expression expected
/var/tmp/rpm-tmp.38126: line 25: [: 9376VERSION: integer expression expected
There isn't visible rule, which could help describe occurance, it's looks like it is really random. I saw it during upgrade of whole system (using anaconda or yum) for different packages (firstboot, NetworkManager-gnome).
Message is always same (doesn't matter which package), error is always on line 25, integer before 'VERSION' is always different (even if it occurs for same package in two different upgrades)
Version-Release number of selected component (if applicable):
No procedure to reproduce, it has random behavior. However it occurs during upgrade of whole system using yum or anaconda
Steps to Reproduce:
1. Install RHEL 5.2 Server (all the packages)
2. Upgrade to RHEL 5.3
Here is link, to anaconda upgrade.log:
Described issue occurs when upgrading firstboot-188.8.131.52-2.el5.i386.
Log of yum update against RHN is attached, issue occurs during cleanup of NetworkManager-gnome.
Created attachment 324055 [details]
yum update log
Looks like a dupe of bug 463921 to me.
Panu, can you please explain? And different error message - do we need addition to 463921 release note?
looking at a similar upgrade:
the error does not occur immediately after the firstboot package upgrade (as it did in the upgrade.log from comment #2:
/var/tmp/rpm-tmp.269: line 25: [: 543VERSION: integer expression expected
while a 3rd upgrade test case shows the error in yet a different spot:
/var/tmp/rpm-tmp.9994: line 25: [: 559VERSION: integer expression expected
without further debugging information, it is difficult to understand where the error is occuring, and how serious it impacts the upgrade ...
yet a 4th upgrade shows:
/var/tmp/rpm-tmp.97465: line 25: [: 3995VERSION: integer expression expected
so in the first upgrade.log, the error occurred right after the firstboot entry, but each of the three following upgrade.logs have shown the error after the xorg-x11-drv-i810-devel package upgrade ...
Oh, ok somewhat hasty judgement in comment #4, the first logs show symptoms from the glibc thingie too...
The real issue is bug in RHEL 5.2 openmpi-libs %preun scriptlet:
if [ "$$VERSION" -ne "1.2.5" ]; then
mpi-selector --unregister openmpi-1.2.5-gcc-i386 \
"$$VERSION" will expand to pid of the process + literal VERSION (such as "559VERSION"), which is not an integer expression. This happens to be precisely line 25 of the scriptlet.
So the bug which this *really* is duplicate of is bug 460878. The errors can't be helped as rpm is executing scriptlet of an already installed package, but it says in bug 460878 that the errors are deal with in the new package and are non-fatal.
*** This bug has been marked as a duplicate of bug 460878 ***