I recently installed SuSE Professional 9.3 on my workstation in my office at Novell. After installation there was an error when using the Yast Online Update (YOU) tool that caused it to fail getting updates. After researching the issue abit and talking to a few people (Marcus Meissner, Xin Wei Hu and Anders Johansson) I was able to solve the issue.
After selecting a mirror (I had tried several) in Yast2′s YOU I got the following error:
|
The error in YOU was less than informative other than the signature check had failed. I googled for the error message and found that several other people had seen the same message however, the reasons varied. The one that seemed closest to what I was seeing was in the SuSE help database in this entry: http://portal.suse.com/sdb/en/2002/05/swiegra_you-gpg.html. There is an error in the entry though. The line:
wget http://www.novell.com/linux/security/contact.html && gpg --import \
--homedir /usr/lib/rpm/gnupg build_pgp.html
Should be:
wget http://www.novell.com/linux/security/contact.html && gpg --import \
--homedir /usr/lib/rpm/gnupg contact.html
This worked for me to import the keys however, I was still getting the error and was unable to get updates. Marcus pointed me to the /var/log/YaST2/y2log where I found out that the homedir that YOU was using was
/var/lib/YaST2/gnupg, not /usr/lib/rpm/gnupg. The trustdb.gpg in
/var/lib/YaST2/gnupg was corrupt so I coppied the
/usr/lib/rpm/gnupg/trustdb.gpg to /var/lib/YaST2/gnupg and re-imported
the keys:
# cd /var/lib/YaST2/gnupg# wget http://www.novell.com/linux/security/contact.html && gpg --import \
--homedir /usr/lib/rpm/gnupg contact.html
After that, I was able to run YOU and get all the updates. Cool. I don’t know what caused the corrupted trustdb.gpg. I have installed several 9.3 machines and had not had the error before. But it seems that others have seen this error so maybe this account will help someone besides me.
Comments
Leave a comment