Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

YUM and/or RPM install problem

Status
Not open for further replies.

jfmays

ISP
Oct 2, 2008
35
US
Got a machine running postgres 9.1.2. I need to downgrade it to 9.0.5 to match a cluster. Problem is YUM (RPM) keeps claiming to be unable to import a key, even though the key is right there where it should be.

The contents of /etc/pki/rpm-gpg/ --
drwxr-xr-x. 10 root root 4096 Oct 29 2011 ..
-rw-r--r--. 1 root root 1726 Sep 26 2011 RPM-GPG-KEY-PGDG-90

Here is what happens when I try to reinstall.

[root@postgres-02 ~]# yum reinstall pgdg-redhat90-9.0-5.noarch.rpm
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
Setting up Reinstall Process
Examining pgdg-redhat90-9.0-5.noarch.rpm: pgdg-redhat90-9.0-5.noarch
Resolving Dependencies
--> Running transaction check
---> Package pgdg-redhat90.noarch 0:9.0-5 will be reinstalled
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Reinstalling:
pgdg-redhat90 noarch 9.0-5 /pgdg-redhat90-9.0-5.noarch 2.1 k

Transaction Summary
================================================================================
Reinstall 1 Package(s)

Total size: 2.1 k
Installed size: 2.1 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : pgdg-redhat90-9.0-5.noarch 1/1
Non-fatal POSTIN scriptlet failure in rpm package pgdg-redhat90-9.0-5.noarch
error: /etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-90: key 1 import failed.
warning: %post(pgdg-redhat90-9.0-5.noarch) scriptlet failed, exit status 1
duration: 291(ms)
Installed products updated.

Installed:
pgdg-redhat90.noarch 0:9.0-5

Complete!


But nothing has happened, the nothings has been changed or installed, postgres is still postgres 9.1.2.
 
yum remove first...

check yum repolist then yum install from remi
 
By your post, you've already addressed the most common problem of not being root. This may help:
The last post in the thread says that there seems to be a bug in that if the key exists that the import will fail and the answer was to delete the key which allows the process to work. I found that by using the search terms "rpm import key 1 import failed" and that was the first of several hits, which may have other suggestions if that doesn't work.
 
Remove Postgres 9.1.2 and install Postgres 9.0.5 from RHEL DVD or Use Redhat Network to rollback
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top