When I created the CentOS repin, the buildinstall command starts complaining to me that it cannot download the package:

[root @ localhost TEST] # / usr / lib / anaconda-runtime / buildinstall --version 6 --brand CentOS --product CentOS-Custom --release "CentOS-Custom 6" --final / root / TEST / Packages / / root / TEST /
Running buildinstall ...
/tmp/buildinstall.tree.4dkhbS ~ / TEST
Could not download / verify pkg anaconda-13.21.117-1.el6.centos.x86_64: failure: anaconda-13.21.117-1.el6.centos.x86_64.rpm from anaconda-extrarepo-1: [Errno 256] No more mirrors to try.

On the Internet there is little information about this error. Tell me, please, what to do.

  • run the same command, but add bash -v in front of it to get a detailed log of the commands to be executed, and attach the output to the question text. there will probably be a lot of things. you can leave only the lines after the message Running buildinstall... - aleksandr barakin

1 answer 1

Could not download / verify pkg

the error says one of two things: either the rpm / yum program cannot download the file specified below (from some repository), or cannot verify its signature.

most likely the second - can not verify. This can occur (at least) for two reasons: the file is “broken” / “left”, or the rpm / yum does not have the gpg key, which this package is signed with.

here again the second is more likely.

anaconda-13.21.117-1.el6.centos.x86_64.rpm

The file with this name was found in the vault repository . The key with which this file should be signed in this repository is: http://vault.centos.org/6.1/os/x86_64/RPM-GPG-KEY-CentOS-6

You can download and add it to the database of trusted keys, for example, like this:

 $ sudo rpm --import http://vault.centos.org/6.1/os/x86_64/RPM-GPG-KEY-CentOS-6 
  • It did not work out the error: http://vault.centos.org/6.1/os/x86_64/RPM-GPG-KEY-CentOS-6: key 1 import failed. - Herzing
  • very strange behavior. Here they write that this is a bug that can occur if the key is already imported. even in faq included. like, "this is not a bug, this is a feature." check, just in case, the command given there. if it gives two lines, then the first should be gpg-pubkey-c105b9de-4e0fd3a3 - aleksandr barakin