Installation Manager fails with "waiting for transacation lock" of Package Manager locks on Linux.
PedroMoura 270003G74Q Visits (8759)
Let's talk about what to do when Packaging Manager locks while installing Rational products.
Linux distributions supported by Rational Products (Red Hat, SuSE and Ubuntu) use the Packaging Manager utility - such as rpm (for Red Hat and SuSE) and dpkg (for Ubuntu). If you have other processes working on these tools while installing a Rational product, you can have a failure because you cannot lock the respective lock file.
For instance, after a failure we can see on Installation Manager log:
"<message>Action Gskit8Action (install /opt
ignorearch --force --prefix /opt gskc
stderr: warning: waiting for transaction lock on /var
error: can't create transaction lock on /var
(Interrupted system call)"
Note: On "dpkg" based systems we could have a complaint about Could not get lock /var/lib/dpkg/lock.
To solve that situation, be sure that there are no other process running rpm or dpkg (depending on the Linux distro).
For distros that uses rpm you can verify:
For Ubuntu work on /var/lib/dpkg/lock
Use fuser to see which process is locking the file:
# fuser /var/lib/dpkg/lock
Then I'll look for 23969 process
# ps waux |grep 23969
root 23969 0.3 0.8 33876 25304 pts/4 S+ 11:17 0:00 apt-get install uima-doc
The next step is to ensure that the process is complete or interrupt it (if that is case) to allow Installation Manager go ahead on its process.
I hope that help you on your days.
"The postings on this site are my own and don't necessarily represent IBM's positions, strategies or opinions." #