Unable to sync 'updates' repo with internet repo using reposync command

General support questions
Suri@0607
Posts: 5
Joined: 2022/01/19 07:19:35

Unable to sync 'updates' repo with internet repo using reposync command

Post by Suri@0607 » 2022/01/19 07:34:36

On my local repo server(CentOS 7) getting the errors related to openscap* packages when run the below command:

# reposync -g -l -d -m --repoid=updates --download-metadata --download_path=/repos/CentOS-7/

For other repos like base and extras, I can able to sync them to internet repo using reposync command without any issues.
But, getting the errors while trying to sync updates repo to internet repo.

Please find the attached screenshot for error messages. Kindly assist me on this issue.


Regards,
Surendra
Attachments
error screenshot
error screenshot
Screenshot (12).png (197.55 KiB) Viewed 3005 times

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Unable to sync 'updates' repo with internet repo using reposync command

Post by TrevorH » 2022/01/19 15:07:34

Do those update files already exist in your target location and have you, for example, modified them by re-signing them with your own GPG key?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Suri@0607
Posts: 5
Joined: 2022/01/19 07:19:35

Re: Unable to sync 'updates' repo with internet repo using reposync command

Post by Suri@0607 » 2022/01/21 08:09:52

Yeah, the directory named 'updates' presented under /repos/CentOS-7/

>>>>>>>> for example, modified them by re-signing them with your own GPG key? <<<<<<<<<<<

I didn't get the above statement. Could you please kindly elaborate on this?


Regards,
Surendra

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Unable to sync 'updates' repo with internet repo using reposync command

Post by TrevorH » 2022/01/21 08:44:24

If you download an rpm package file and then run rpm --addsign $package and re-sign it with your own key then reposync does exactly what you are complaining about.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Suri@0607
Posts: 5
Joined: 2022/01/19 07:19:35

Re: Unable to sync 'updates' repo with internet repo using reposync command

Post by Suri@0607 » 2022/01/24 08:49:19

$package ---->> Here, what package exactly you're referring?

Actually, here my requirement is "when I run below command, 'updates' repo has to be synced with internet repo and gets updated with
the latest packages available for updating" . The 'updates' directory is created under /repos/CentOS-7/

~~~~~~~~~~~~~~
# reposync -g -l -d -m --repoid=updates --download-metadata --download_path=/repos/CentOS-7/
~~~~~~~~~~~~~~

If you can assist me on this issue with the detailed steps then that would be very helpful for me.


Regards,
Surendra

Suri@0607
Posts: 5
Joined: 2022/01/19 07:19:35

Re: Unable to sync 'updates' repo with internet repo using reposync command

Post by Suri@0607 » 2022/02/02 05:45:08

Hi TrevorH,

Could you please kindly assist me on this issue?


Regards,
Surendra

Suri@0607
Posts: 5
Joined: 2022/01/19 07:19:35

Re: Unable to sync 'updates' repo with internet repo using reposync command

Post by Suri@0607 » 2022/02/08 04:30:27

Hi TrevorH,

No, I have not re-signed them with my own GPG key.


Regards,
Surendra

jmcsms
Posts: 3
Joined: 2022/03/08 10:51:43

Re: Unable to sync 'updates' repo with internet repo using reposync command

Post by jmcsms » 2022/03/08 11:20:23

@TrevorH

I get exactly the same errors and a number of fails. They system was configured a few years ago by someone who is very, very good and worked fine up until the previous 6 months I believe. I am "not so good" :D but can use Google - my Linux skills somewhat limited.

The baser url is

Code: Select all

http://mirror.centos.org/centos/$releasever/cr/$basearch/
When I curl that and "some" of other repos I get this:

Code: Select all

 <p>The requested page could not be found.</p>

        <p>This happens when the page has been moved, removed, or had its name
        and address changed. It might otherwise be temporarily unavailable for
        technical reasons.</p>
So the question is, for this kind of issue it looks like it's trying to connect to something which is no longer there, where do I point it at now?

As an aside and a you may want to flag this:

Code: Select all

http://repo.okay.com.mx/?dir=centos/

Code: Select all

https://www.joesandbox.com/analysis/278652/0/html
Our client's Sophos stopped it downloading and the check shows a bitcoin miner in there

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Unable to sync 'updates' repo with internet repo using reposync command

Post by TrevorH » 2022/03/08 15:03:37

The baser url is
CODE: SELECT ALL

http://mirror.centos.org/centos/$releas ... $basearch/
When I curl that and "some" of other repos I get this:
Did you manually substitute the yum variables into your manual curl command? $releasever is most likely '7' since you're posting in the CentOS 7 section, $arch is most likely x86_64. So e.g. not http://mirror.centos.org/centos/$releas ... $basearch/ but http://mirror.centos.org/centos/7/cr/x86_64/. I'd also say there is no point in having the CR repo enabled any more as 7.9 is the latest and last CentOS 7 point release so there will never be another CR with packages in it.
As an aside and a you may want to flag this:
That's not a CentOS supplied repo and is used entirely at your own risk.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

jmcsms
Posts: 3
Joined: 2022/03/08 10:51:43

Re: Unable to sync 'updates' repo with internet repo using reposync command

Post by jmcsms » 2022/03/09 14:48:17

Thanks Trevor, I did try with the substitutions but Sophos was blocking lots at the time, due to the lower link so I'll give it another bash, there are a quite few configured and happy to leave out cr or any others.

Post Reply