Originally posted by: kristianmilos
Hi All,
Came across a versioning issue with rpm.rte when performing an AIX 7.1 to AIX 7.2 migration. The version of AIX pre-migration was 7100-05-02-1810, and the version of AIX post-migration is 7200-02-02-1810.
The problem is, that if the version of rpm.rte is the same before and after migration, during the migration, AIX doesn't update the package, as it's already installed (and at the same version). In turn, the AIX-rpm virtual package version isn't updated, which causes some dependency issues (especially with libgcc). You can resolve this by running /usr/sbin/updtvpkg.
This is more of an FYI if anyone else runs into this issue.
Before migration
# oslevel -s
7100-05-02-1810
# lslpp -l | grep -i rpm.rte
rpm.rte 4.13.0.2 COMMITTED RPM Package Manager
rpm.rte 4.13.0.2 COMMITTED RPM Package Manager
# rpm -qa | grep -i AIX
AIX-rpm-7.1.5.15-1.ppc
During migration
# grep rpm.rte lpar_alt_mig.log
rpm.rte 4.13.0.2 Already installed
After migration
# oslevel -s
7200-02-02-1810
# lslpp -l | grep -i rpm.rte
rpm.rte 4.13.0.2 COMMITTED RPM Package Manager
rpm.rte 4.13.0.2 COMMITTED RPM Package Manager
# rpm -qa | grep -i AIX
AIX-rpm-7.1.5.15-1.ppc
Issue upgrading libgcc
# yum upgrade libgcc
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package libgcc.ppc 0:6.3.0-1 will be updated
--> Processing Dependency: libgcc = 6.3.0-1 for package: libstdc++-6.3.0-1.ppc
---> Package libgcc.ppc 0:7.2.0-1 will be an update
--> Processing Dependency: AIX-rpm >= 7.2.0.0 for package: libgcc-7.2.0-1.ppc
--> Running transaction check
---> Package libgcc.ppc 0:7.2.0-1 will be an update
--> Processing Dependency: AIX-rpm >= 7.2.0.0 for package: libgcc-7.2.0-1.ppc
---> Package libstdc++.ppc 0:6.3.0-1 will be updated
---> Package libstdc++.ppc 0:7.2.0-1 will be an update
--> Processing Dependency: AIX-rpm >= 7.2.0.0 for package: libstdc++-7.2.0-1.ppc
--> Finished Dependency Resolution
Error: Package: libstdc++-7.2.0-1.ppc (AIX_Toolbox_ppc-7.2)
Requires: AIX-rpm >= 7.2.0.0
Installed: AIX-rpm-7.1.5.15-1.ppc (installed)
AIX-rpm = 7.1.5.15-1
Error: Package: libgcc-7.2.0-1.ppc (AIX_Toolbox_ppc-7.2)
Requires: AIX-rpm >= 7.2.0.0
Installed: AIX-rpm-7.1.5.15-1.ppc (installed)
AIX-rpm = 7.1.5.15-1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Fixed by updating the AIX-rpm virtual package verion
# /usr/sbin/updtvpkg
Please wait...
# rpm -qa | grep -i AIX
AIX-rpm-7.2.2.15-2.ppc
# yum upgrade libgcc
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package libgcc.ppc 0:6.3.0-1 will be updated
--> Processing Dependency: libgcc = 6.3.0-1 for package: libstdc++-6.3.0-1.ppc
---> Package libgcc.ppc 0:7.2.0-1 will be an update
--> Running transaction check
---> Package libstdc++.ppc 0:6.3.0-1 will be updated
---> Package libstdc++.ppc 0:7.2.0-1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
...
...
Updated:
libgcc.ppc 0:7.2.0-1
Dependency Updated:
libstdc++.ppc 0:7.2.0-1
Complete!
#AIX-Open-Source-Software#AIXOpenSource