Need assistance for YUM configuration error // Bad id for REPO and Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY

4,375 views
Skip to first unread message

shashank singh

unread,
Jun 14, 2012, 9:02:13 PM6/14/12
to VG...@googlegroups.com


I was looking for solutions to my problem while working on YUM configurations.


I am following bellow steps for YUM configuration:

mounting the ISO and then doing the following steps.




[root@localhost ~]# cd /media/RHEL_6.0\ i386\ Disc\ 1/

[root@localhost ~]# cd Packages/

[root@localhost Packages]# 

[root@localhost Packages]# cp -ivf * /shashank () 


## copying content of Packages folder to /shashank ##



[root@localhost Packages]# cd /shashank    ## ( shashank is the folder where I copied all the Packages content from CD.) ##

[root@localhost shashank]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm 

error: Failed dependencies:

deltarpm is needed by createrepo-0.9.8-4.el6.noarch

python-deltarpm is needed by createrepo-0.9.8-4.el6.noarch

[root@localhost shashank]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm deltarpm-3.5-0.5.20090913git.el6.i686.rpm python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm 


warning: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY  


#( I did get this error for the 1st time since I staretd using the LINUX on Virtual box.)#



Preparing...                ########################################### [100%]

   1:deltarpm               ########################################### [ 33%]

   2:python-deltarpm        ########################################### [ 67%]

   3:createrepo             ########################################### [100%]



[root@localhost shashank]# createrepo /shashank

2865/2865 - openssh-5.3p1-12.1.el6.i686.rpm                                     

Saving Primary metadata

Saving file lists metadata

Saving other metadata

[root@localhost shashank]# 



[root@localhost shashank]# cd /etc/yum.repos.d/

[root@localhost yum.repos.d]# ls 

rhel-beta.repo  rhel-debuginfo.repo

[root@localhost yum.repos.d]# rm -rf

[root@localhost yum.repos.d]# ls

rhel-beta.repo  rhel-debuginfo.repo

[root@localhost yum.repos.d]# rm -rf *

[root@localhost yum.repos.d]# ls

[root@localhost yum.repos.d]# vim client.repo


[client.repo file :

****************************************

[RHEL-REPOS]

name=rhel repos

baseurl=file:///shashank/

enabled=1

gpgcheck=0

****************************************


## sample test ##

[root@localhost yum.repos.d]# yum install zsh      # Here I am trying to install any random package but the same error)#



but here I am gettign an error something like :


Loaded plugins: refresh-packagekit, rhnplugin

This system is not registered with RHN.

RHN support will be disabled.

Bad id for repo: RHEL REPOS , byte = 4. 

no packages zsh to install.


Someone please suggest if I am making any mistake. 




Regards, 

SHASHANK SINGH 






Nirmal Pathak

unread,
Jun 14, 2012, 10:23:55 PM6/14/12
to vg...@googlegroups.com
On 15 June 2012 06:32, shashank singh <shasha...@gmail.com> wrote:
>
> I was looking for solutions to my problem while working on YUM
> configurations.

Please do not post in HTML formatted mails with highlighted text
colours. Read the VGLUG guidelines before posting
http://www.catb.org/~esr/faqs/smart-questions.html
Remove the space from "name=rhel repos" & check.

>
> Regards,
>
> SHASHANK SINGH

Have FuN!
--
Nirmal D Pathak.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Let me help my fellow beings; that is all I seek.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ElectroMech

unread,
Jun 14, 2012, 11:57:40 PM6/14/12
to vg...@googlegroups.com
>
> I am following bellow steps for YUM configuration:
>
> mounting the ISO and then doing the following steps.
>
>
> [client.repo file :
>
> ****************************************
>
> [RHEL-REPOS]
>
> name=rhel repos
>
> baseurl=file:///shashank/
>
> enabled=1
>
> gpgcheck=0
>
> ****************************************
>
>
> ## sample test ##
>
> [root@localhost yum.repos.d]# yum install zsh      # ( Here I am trying to
> install any random package but the same error)#
>
>
>
> but here I am gettign an error something like :
>
>
> Loaded plugins: refresh-packagekit, rhnplugin
>
> This system is not registered with RHN.
>
> RHN support will be disabled.
>
> Bad id for repo: RHEL REPOS , byte = 4.
>Remove the space from "name=rhel repos" & check.

name="any description work"

Can you try

yum clean all

yum repolist and check
 
>
> Regards,
>
> SHASHANK SINGH

Thanks and Regards.

--
--
Nilesh Vaghela
(RHCSA RHCE)
ElectroMech Corporation
Redhat Channel Partner and Training Partner
404, Maulik arcade, Above Karnavati Pagarakha Bazar,
Nr. Mansi cross Road,
Satellite Rd, Ahmedabad
25, The Emperor, Fatehgunj, Baroda.
www.electromech.info

Vishal Joshi

unread,
Jun 15, 2012, 4:49:31 AM6/15/12
to vg...@googlegroups.com
On Fri, Jun 15, 2012 at 6:32 AM, shashank singh <shasha...@gmail.com> wrote:


I was looking for solutions to my problem while working on YUM configurations.


I am following bellow steps for YUM configuration:

mounting the ISO and then doing the following steps.



Hi Shashank,

Please find the steps to configure local yum repository on your vm at the end of the mail.
 

--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG+un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG
 

1) cd /media/Rhel<whateverver>/Server
2) mkdir -pv /var/ftp/pub/Server
3) cp -r /media/Rhel/Server/* /var/ftp/pub/Server/

After files are transferred to your local directory, configure the yum repository as follows.

You may be knowing to configure the yum, but i am still giving the steps. :-D

4) cd /etc/yum.repos.d/
5) touch server.repo
6) Inside server.repo

[Server]    ********** This name you will be using when you use a specific repo
name=server
baseurl=file:///var/ftp/pub/Server
enabled=1
gpgcheck=0

7) Then after this, go to cd /var/ftp/pub/Server and install createrepo rpm.

# rpm -ivh createrepo<ver>

8) Now, create the repository database using createrepo.

# createrepo -v /var/ftp/pub/

9) After this, do yum clean all and then yum list.

10) Now try to install any package.

Hope this will help.

Best regards,
Vishal Girish Joshi

Devendra Rathod

unread,
Jun 16, 2012, 11:50:48 PM6/16/12
to vg...@googlegroups.com
Hi,

have you fire following commands after installing YUM
1. yum clean all
2. yum update all
--
Devendra Rathod
CCNA Certified.
9909718896

shashank singh

unread,
Jun 17, 2012, 6:40:11 AM6/17/12
to vg...@googlegroups.com
I just cleared the sapces from client.repo file and it worked for me...
Still many thanx to all for all different and new solutions...

ElectroMech

unread,
Jun 18, 2012, 11:17:23 PM6/18/12
to vg...@googlegroups.com
Hi,

On Sun, Jun 17, 2012 at 4:10 PM, shashank singh <shasha...@gmail.com> wrote:
I just cleared the sapces from client.repo file and it worked for me...
Still many thanx to all for all different and new solutions...


Please provide more informatio about the spaces from client.repo, It might help to other and good for archive.
 

shashank singh

unread,
Jun 19, 2012, 12:04:35 AM6/19/12
to vg...@googlegroups.com

Hi,


my earlier client.repo file was :


client.repo file :

****************************************

[RHEL-REPOS]

name=rhel repos

baseurl=file:///shashank/

enabled=1

gpgcheck=0

****************************************


I just removed the space between rhel and repos in name field and my new file is :


[client.repo file :

****************************************

[RHEL-REPOS]

name=rhelrepos             ## or simply name=RHEL##

baseurl=file:///shashank/

enabled=1

gpgcheck=0

****************************************

and it worked for me.


Thank you all for highlighting this small but very important thing.



SHASHANK SINGH 





ElectroMech

unread,
Jun 21, 2012, 1:16:22 AM6/21/12
to vg...@googlegroups.com
Hi,

On Tue, Jun 19, 2012 at 9:34 AM, shashank singh <shasha...@gmail.com> wrote:
client.repo file :

****************************************

[RHEL-REPOS]

name=rhel repos

baseurl=file:///shashank/

enabled=1

gpgcheck=0


I just removed the space between rhel and repos in name field and my new file is :

[client.repo file :

****************************************

[RHEL-REPOS]

name=rhelrepos             ## or simply name=RHEL##

baseurl=file:///shashank/

enabled=1

gpgcheck=0

****************************************

and it worked for me.



I do not think this is as problem because standar repository file from epel have lots of space, just for reference

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

It is presently working at our office in lots of computers.

Please check, it should not be a problem.

 


SHASHANK SINGH 


Thanks and Regards.
Reply all
Reply to author
Forward
0 new messages