LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-25-2019, 08:43 AM   #1
sasaleh@nvcc.edu
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Rep: Reputation: Disabled
updating repo


I've inherited a CentOS 6 environment where custom repos are kept locally.

Now when I try to update a host, I get the following error:


Quote:
[root@myhost yum.repos.d]# yum install ansible -y
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* centosplus: centos4.zswap.net
Resolving Dependencies
--> Running transaction check
---> Package ansible.noarch 0:2.6.4-1.el6 will be installed
--> Processing Dependency: sshpass for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-six for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-simplejson for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-setuptools for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-paramiko for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-keyczar for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-jinja2-26 for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-httplib2 for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-crypto2.6 for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-crypto for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: PyYAML for package: ansible-2.6.4-1.el6.noarch
--> Running transaction check
---> Package PyYAML.x86_64 0:3.10-3.1.el6 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-3.1.el6.x86_64
---> Package python-crypto.x86_64 0:2.0.1-22.el6 will be installed
---> Package python-crypto2.6.x86_64 0:2.6.1-2.el6 will be installed
---> Package python-httplib2.noarch 0:0.7.7-1.el6 will be installed
---> Package python-jinja2-26.noarch 0:2.6-3.el6 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-26-2.6-3.el6.noarch
--> Processing Dependency: python-markupsafe for package: python-jinja2-26-2.6-3.el6.noarch
---> Package python-keyczar.noarch 0:0.71c-1.el6 will be installed
--> Processing Dependency: python-pyasn1 for package: python-keyczar-0.71c-1.el6.noarch
---> Package python-paramiko.noarch 0:1.7.5-2.1.el6 will be installed
---> Package python-setuptools.noarch 0:0.6.10-3.el6 will be installed
---> Package python-simplejson.x86_64 0:2.0.9-3.1.el6 will be installed
---> Package python-six.noarch 0:1.9.0-2.el6 will be installed
---> Package sshpass.x86_64 0:1.06-1.el6 will be installed
--> Running transaction check
---> Package libyaml.x86_64 0:0.1.3-4.el6_6 will be installed
---> Package python-babel.noarch 0:0.9.4-5.1.el6 will be installed
---> Package python-markupsafe.x86_64 0:0.9.2-4.el6 will be installed
---> Package python-pyasn1.noarch 0:0.0.12a-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
Package Arch Version Repository Siz
===================================================================================================
Installing:
ansible noarch 2.6.4-1.el6 epel 10
Installing for dependencies:
PyYAML x86_64 3.10-3.1.el6 centos-base 157
libyaml x86_64 0.1.3-4.el6_6 centos-base 52
python-babel noarch 0.9.4-5.1.el6 centos-base 1.4
python-crypto x86_64 2.0.1-22.el6 centos-base 159
python-crypto2.6 x86_64 2.6.1-2.el6 epel 513
python-httplib2 noarch 0.7.7-1.el6 epel 70
python-jinja2-26 noarch 2.6-3.el6 epel 527
python-keyczar noarch 0.71c-1.el6 epel 219
python-markupsafe x86_64 0.9.2-4.el6 centos-base 22
python-paramiko noarch 1.7.5-2.1.el6 centos-base 728
python-pyasn1 noarch 0.0.12a-1.el6 centos-base 70
python-setuptools noarch 0.6.10-3.el6 centos-base 336
python-simplejson x86_64 2.0.9-3.1.el6 centos-base 126
python-six noarch 1.9.0-2.el6 centos-base 28
sshpass x86_64 1.06-1.el6 epel 20

Transaction Summary
===================================================================================================
Install 16 Package(s)

Total download size: 15 M
Installed size: 74 M
Downloading Packages:
(1/16): PyYAML-3.10-3.1.el6.x86_64.rpm | 157 kB 00:00
http://yum.mydomain.lan:8080/centos/...l6.noarch.rpm: [Errno 14] PYRL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
Trying other mirror.
(3/16): libyaml-0.1.3-4.el6_6.x86_64.rpm | 52 kB 00:00
(4/16): python-babel-0.9.4-5.1.el6.noarch.rpm | 1.4 MB 00:00
(5/16): python-crypto-2.0.1-22.el6.x86_64.rpm | 159 kB 00:00
(6/16): python-crypto2.6-2.6.1-2.el6.x86_64.rpm | 513 kB 00:00
(7/16): python-httplib2-0.7.7-1.el6.noarch.rpm | 70 kB 00:00
(8/16): python-jinja2-26-2.6-3.el6.noarch.rpm | 527 kB 00:00
(9/16): python-keyczar-0.71c-1.el6.noarch.rpm | 219 kB 00:00
(10/16): python-markupsafe-0.9.2-4.el6.x86_64.rpm | 22 kB 00:00
(11/16): python-paramiko-1.7.5-2.1.el6.noarch.rpm | 728 kB 00:00
(12/16): python-pyasn1-0.0.12a-1.el6.noarch.rpm | 70 kB 00:00
(13/16): python-setuptools-0.6.10-3.el6.noarch.rpm | 336 kB 00:00
(14/16): python-simplejson-2.0.9-3.1.el6.x86_64.rpm | 126 kB 00:00
(15/16): python-six-1.9.0-2.el6.noarch.rpm | 28 kB 00:00
http://yum.mydomain.lan:8080/centos/...l6.x86_64.rpm: [Errno 14] PYCL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
Trying other mirror.


Error Downloading Packages:
ansible-2.6.4-1.el6.noarch: failure: Packages/a/ansible-2.6.4-1.el6.noarch.rpm from epel: [Errno 6] No more mirrors to try.
sshpass-1.06-1.el6.x86_64: failure: Packages/s/sshpass-1.06-1.el6.x86_64.rpm from epel: [Errno 25 No more mirrors to try.

[root@myhost yum.repos.d]# [root@myhost yum.repos.d]# yum install ansible -y
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* centosplus: centos4.zswap.net
Resolving Dependencies
--> Running transaction check
---> Package ansible.noarch 0:2.6.4-1.el6 will be installed
--> Processing Dependency: sshpass for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-six for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-simplejson for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-setuptools for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-paramiko for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-keyczar for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-jinja2-26 for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-httplib2 for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-crypto2.6 for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-crypto for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: PyYAML for package: ansible-2.6.4-1.el6.noarch
--> Running transaction check
---> Package PyYAML.x86_64 0:3.10-3.1.el6 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-3.1.el6.x86_64
---> Package python-crypto.x86_64 0:2.0.1-22.el6 will be installed
---> Package python-crypto2.6.x86_64 0:2.6.1-2.el6 will be installed
---> Package python-httplib2.noarch 0:0.7.7-1.el6 will be installed
---> Package python-jinja2-26.noarch 0:2.6-3.el6 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-26-2.6-3.el6.noarch
--> Processing Dependency: python-markupsafe for package: python-jinja2-26-2.6-3.el6.noarch
---> Package python-keyczar.noarch 0:0.71c-1.el6 will be installed
--> Processing Dependency: python-pyasn1 for package: python-keyczar-0.71c-1.el6.noarch
---> Package python-paramiko.noarch 0:1.7.5-2.1.el6 will be installed
---> Package python-setuptools.noarch 0:0.6.10-3.el6 will be installed
---> Package python-simplejson.x86_64 0:2.0.9-3.1.el6 will be installed
---> Package python-six.noarch 0:1.9.0-2.el6 will be installed
---> Package sshpass.x86_64 0:1.06-1.el6 will be installed
--> Running transaction check
---> Package libyaml.x86_64 0:0.1.3-4.el6_6 will be installed
---> Package python-babel.noarch 0:0.9.4-5.1.el6 will be installed
---> Package python-markupsafe.x86_64 0:0.9.2-4.el6 will be installed
---> Package python-pyasn1.noarch 0:0.0.12a-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
Package Arch Version Repository Siz
===================================================================================================
Installing:
ansible noarch 2.6.4-1.el6 epel 10
Installing for dependencies:
PyYAML x86_64 3.10-3.1.el6 centos-base 157
libyaml x86_64 0.1.3-4.el6_6 centos-base 52
python-babel noarch 0.9.4-5.1.el6 centos-base 1.4
python-crypto x86_64 2.0.1-22.el6 centos-base 159
python-crypto2.6 x86_64 2.6.1-2.el6 epel 513
python-httplib2 noarch 0.7.7-1.el6 epel 70
python-jinja2-26 noarch 2.6-3.el6 epel 527
python-keyczar noarch 0.71c-1.el6 epel 219
python-markupsafe x86_64 0.9.2-4.el6 centos-base 22
python-paramiko noarch 1.7.5-2.1.el6 centos-base 728
python-pyasn1 noarch 0.0.12a-1.el6 centos-base 70
python-setuptools noarch 0.6.10-3.el6 centos-base 336
python-simplejson x86_64 2.0.9-3.1.el6 centos-base 126
python-six noarch 1.9.0-2.el6 centos-base 28
sshpass x86_64 1.06-1.el6 epel 20

Transaction Summary
===================================================================================================
Install 16 Package(s)

Total download size: 15 M
Installed size: 74 M
Downloading Packages:
(1/16): PyYAML-3.10-3.1.el6.x86_64.rpm | 157 kB 00:00
http://yum.mydomain.lan:8080/centos/...l6.noarch.rpm: [Errno 14] PYRL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
Trying other mirror.
(3/16): libyaml-0.1.3-4.el6_6.x86_64.rpm | 52 kB 00:00
(4/16): python-babel-0.9.4-5.1.el6.noarch.rpm | 1.4 MB 00:00
(5/16): python-crypto-2.0.1-22.el6.x86_64.rpm | 159 kB 00:00
(6/16): python-crypto2.6-2.6.1-2.el6.x86_64.rpm | 513 kB 00:00
(7/16): python-httplib2-0.7.7-1.el6.noarch.rpm | 70 kB 00:00
(8/16): python-jinja2-26-2.6-3.el6.noarch.rpm | 527 kB 00:00
(9/16): python-keyczar-0.71c-1.el6.noarch.rpm | 219 kB 00:00
(10/16): python-markupsafe-0.9.2-4.el6.x86_64.rpm | 22 kB 00:00
(11/16): python-paramiko-1.7.5-2.1.el6.noarch.rpm | 728 kB 00:00
(12/16): python-pyasn1-0.0.12a-1.el6.noarch.rpm | 70 kB 00:00
(13/16): python-setuptools-0.6.10-3.el6.noarch.rpm | 336 kB 00:00
(14/16): python-simplejson-2.0.9-3.1.el6.x86_64.rpm | 126 kB 00:00
(15/16): python-six-1.9.0-2.el6.noarch.rpm | 28 kB 00:00
http://yum.mydomain.lan:8080/centos/...l6.x86_64.rpm: [Errno 14] PYCL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
Trying other mirror.


Error Downloading Packages:
ansible-2.6.4-1.el6.noarch: failure: Packages/a/ansible-2.6.4-1.el6.noarch.rpm from epel: [Errno 6] No more mirrors to try.
sshpass-1.06-1.el6.x86_64: failure: Packages/s/sshpass-1.06-1.el6.x86_64.rpm from epel: [Errno 25 No more mirrors to try.

[root@myhost yum.repos.d]#
So the local repo needs updating. I get that far. I found the repo data on my host at the following:

Code:
[root@myhost repodata]# pwd
/data/nginx/repo/centos/67_2/epel/repodata
[root@myhost repodata]# ls
2560ae79bf0cf8ca178c3c0d0ae34457e7b84403cf1aba3e492745b3b56f57f2-comps-Everything.x86_64.xml
55a73bffdf44e8dfdb2066488144e71e23c8a5d7f72738e8f935b2a6aa57764d-comps-Everything.x86_64.xml.gz
5b74563d8a374c8232d13c53fc0515e1f3221e3bbeafaec8be8c97ae9a1b5ce6-primary.xml.gz
5cf327ba7b188ae1e90cc15252731d7782ae05c0c9951fed8a7c8dda02cc2b95-filelists.xml.gz
703e3b28cb8e70b977801f86ee64526f09b9b41db34c262bc13eaac050288e58-other.xml.gz
b527f9bf61b76003880221dbf4d4880e61ba745c72ee7686e33550eb7528b172-prestodelta.xml.gz
dbf2965f86b5f0b4d89109ad9b21d9e42b815e5ed303f1b7d1507b743def9ef5-updateinfo.xml.bz2
repomd.xml
[root@umyhost repodata]#
My question is, where do I get this data from from?

And once I get it, is it a straight replace process?

Thanks in advance.

Last edited by sasaleh@nvcc.edu; 04-25-2019 at 09:49 AM.
 
Old 04-25-2019, 11:48 AM   #2
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
Yes.

Code:
man createrepo # possibly all you need
man modifyrepo # going down a rabbit hole
man reposync # If you are pulling them from a remote host, possibly all you need
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Trying to split a large SVN repo into one git repo. Ian John Locke II Linux - Software 1 01-30-2012 08:19 AM
Best way to automate copying of Git repo to subversion repo? jceipek Linux - Server 0 03-15-2011 02:42 AM
how to use syanptic in fc 5 and how to add repo and which repo to be added.. vikas04522 Fedora 1 08-26-2006 12:41 PM
how to use syanptic in fc 5 and how to add repo in it and which repo is to be added.. vikas04522 Linux - Software 1 08-26-2006 12:29 PM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration