Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnf install file returns error as "Unable to find a match: file" #1774

Closed
XiMeiZhu opened this issue Apr 23, 2024 · 5 comments
Closed

dnf install file returns error as "Unable to find a match: file" #1774

XiMeiZhu opened this issue Apr 23, 2024 · 5 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@XiMeiZhu
Copy link

We're using this as a base image:
FROM quay.io/openshift/origin-jenkins-agent-base:4.12.0

Then we need to install a package which is required for security scanning, but it says "Unable to find a match: file".

This is the line of the dockerfile that has the error:
RUN dnf install file -y
Our jenkins slave is running in openshift cluster in IBM cloud platform.
Please provide some guidance on how to fix this.
Thanks.

@XiMeiZhu
Copy link
Author

This is the output with image build:
STEP 1/2: FROM quay.io/openshift/origin-jenkins-agent-base:4.12.0
WARNING: image platform (linux/amd64) does not match the expected platform (linux/arm64)
STEP 2/2: RUN dnf install file -y
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

rhel-8-baseos 0.0 B/s | 0 B 00:02
Errors during downloading metadata for repository 'rhel-8-baseos':

  • Curl error (6): Couldn't resolve host name for http://base-4-12-rhel8.ocp.svc/rhel-8-baseos/repodata/repomd.xml [Could not resolve host: base-4-12-rhel8.ocp.svc]
    Error: Failed to download metadata for repo 'rhel-8-baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    rhel-8-appstream 0.0 B/s | 0 B 00:02
    Errors during downloading metadata for repository 'rhel-8-appstream':
  • Curl error (6): Couldn't resolve host name for http://base-4-12-rhel8.ocp.svc/rhel-8-appstream/repodata/repomd.xml [Could not resolve host: base-4-12-rhel8.ocp.svc]
    Error: Failed to download metadata for repo 'rhel-8-appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    rhel-8-fast-datapath 0.0 B/s | 0 B 00:02
    Errors during downloading metadata for repository 'rhel-8-fast-datapath':
  • Curl error (6): Couldn't resolve host name for http://base-4-12-rhel8.ocp.svc/rhel-8-fast-datapath/repodata/repomd.xml [Could not resolve host: base-4-12-rhel8.ocp.svc]
    Error: Failed to download metadata for repo 'rhel-8-fast-datapath': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    rhel-8-nfv 0.0 B/s | 0 B 00:02
    Errors during downloading metadata for repository 'rhel-8-nfv':
  • Curl error (6): Couldn't resolve host name for http://base-4-12-rhel8.ocp.svc/rhel-8-nfv/repodata/repomd.xml [Could not resolve host: base-4-12-rhel8.ocp.svc]
    Error: Failed to download metadata for repo 'rhel-8-nfv': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    rhel-8-server-ose 0.0 B/s | 0 B 00:03
    Errors during downloading metadata for repository 'rhel-8-server-ose':
  • Curl error (6): Couldn't resolve host name for http://base-4-12-rhel8.ocp.svc/rhel-8-server-ose/repodata/repomd.xml [Could not resolve host: base-4-12-rhel8.ocp.svc]
    Error: Failed to download metadata for repo 'rhel-8-server-ose': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    rhel-8-ansible-2.9 0.0 B/s | 0 B 00:02
    Errors during downloading metadata for repository 'rhel-8-ansible-2.9':
  • Curl error (6): Couldn't resolve host name for http://base-4-12-rhel8.ocp.svc/rhel-8-ansible-2.9/repodata/repomd.xml [Could not resolve host: base-4-12-rhel8.ocp.svc]
    Error: Failed to download metadata for repo 'rhel-8-ansible-2.9': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    openstack-16-for-rhel-8-rpms 0.0 B/s | 0 B 00:04
    Errors during downloading metadata for repository 'openstack-16-for-rhel-8-rpms':
  • Curl error (6): Couldn't resolve host name for http://base-4-12-rhel8.ocp.svc/openstack-16-for-rhel-8-rpms/repodata/repomd.xml [Could not resolve host: base-4-12-rhel8.ocp.svc]
    Error: Failed to download metadata for repo 'openstack-16-for-rhel-8-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    rhel-8-codeready-builder-rpms 0.0 B/s | 0 B 00:02
    Errors during downloading metadata for repository 'rhel-8-codeready-builder-rpms':
  • Curl error (6): Couldn't resolve host name for http://base-4-12-rhel8.ocp.svc/rhel-8-codeready-builder-rpms/repodata/repomd.xml [Could not resolve host: base-4-12-rhel8.ocp.svc]
    Error: Failed to download metadata for repo 'rhel-8-codeready-builder-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    localdev-openstack-16-for-rhel-8-rpms 0.0 B/s | 0 B 00:02
    Errors during downloading metadata for repository 'localdev-openstack-16-for-rhel-8-rpms':
  • Curl error (6): Couldn't resolve host name for https://rhsm-pulp.corp.redhat.com/content/dist/layered/rhel8/x86_64/openstack/16.2/os/repodata/repomd.xml [Could not resolve host: rhsm-pulp.corp.redhat.com]
    Error: Failed to download metadata for repo 'localdev-openstack-16-for-rhel-8-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    localdev-rhel-8-appstream-rpms 0.0 B/s | 0 B 00:02
    Errors during downloading metadata for repository 'localdev-rhel-8-appstream-rpms':
  • Curl error (6): Couldn't resolve host name for https://rhsm-pulp.corp.redhat.com/content/eus/rhel8/8.6/x86_64/appstream/os/repodata/repomd.xml [Could not resolve host: rhsm-pulp.corp.redhat.com]
    Error: Failed to download metadata for repo 'localdev-rhel-8-appstream-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    localdev-rhel-8-baseos-rpms 0.0 B/s | 0 B 00:02
    Errors during downloading metadata for repository 'localdev-rhel-8-baseos-rpms':
  • Curl error (6): Couldn't resolve host name for https://rhsm-pulp.corp.redhat.com/content/eus/rhel8/8.6/x86_64/baseos/os/repodata/repomd.xml [Could not resolve host: rhsm-pulp.corp.redhat.com]
    Error: Failed to download metadata for repo 'localdev-rhel-8-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    localdev-rhel-8-codeready-builder-rpms 0.0 B/s | 0 B 00:02
    Errors during downloading metadata for repository 'localdev-rhel-8-codeready-builder-rpms':
  • Curl error (6): Couldn't resolve host name for https://rhsm-pulp.corp.redhat.com/content/eus/rhel8/8.6/x86_64/codeready-builder/os/repodata/repomd.xml [Could not resolve host: rhsm-pulp.corp.redhat.com]
    Error: Failed to download metadata for repo 'localdev-rhel-8-codeready-builder-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    localdev-rhel-8-fast-datapath-rpms 0.0 B/s | 0 B 00:02
    Errors during downloading metadata for repository 'localdev-rhel-8-fast-datapath-rpms':
  • Curl error (6): Couldn't resolve host name for https://rhsm-pulp.corp.redhat.com/content/dist/layered/rhel8/x86_64/fast-datapath/os/repodata/repomd.xml [Could not resolve host: rhsm-pulp.corp.redhat.com]
    Error: Failed to download metadata for repo 'localdev-rhel-8-fast-datapath-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    localdev-rhel-8-rt-rpms 0.0 B/s | 0 B 00:03
    Errors during downloading metadata for repository 'localdev-rhel-8-rt-rpms':
  • Curl error (6): Couldn't resolve host name for https://rhsm-pulp.corp.redhat.com/content/tus/rhel8/8.6/x86_64/rt/os/repodata/repomd.xml [Could not resolve host: rhsm-pulp.corp.redhat.com]
    Error: Failed to download metadata for repo 'localdev-rhel-8-rt-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    localdev-rhel-8-server-ansible-2.9-rpms 0.0 B/s | 0 B 00:02
    Errors during downloading metadata for repository 'localdev-rhel-8-server-ansible-2.9-rpms':
  • Curl error (6): Couldn't resolve host name for https://rhsm-pulp.corp.redhat.com/content/dist/layered/rhel8/x86_64/ansible/2.9/os/repodata/repomd.xml [Could not resolve host: rhsm-pulp.corp.redhat.com]
    Error: Failed to download metadata for repo 'localdev-rhel-8-server-ansible-2.9-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    localdev-rhel-8-server-ose-rpms 0.0 B/s | 0 B 00:02
    Errors during downloading metadata for repository 'localdev-rhel-8-server-ose-rpms':
  • Curl error (6): Couldn't resolve host name for https://ocp-artifacts.hosts.prod.psi.rdu2.redhat.com/pub/RHOCP/plashets/4.12/stream/el8/latest/x86_64/os/repodata/repomd.xml [Could not resolve host: ocp-artifacts.hosts.prod.psi.rdu2.redhat.com]
    Error: Failed to download metadata for repo 'localdev-rhel-8-server-ose-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    Ignoring repositories: rhel-8-baseos, rhel-8-appstream, rhel-8-fast-datapath, rhel-8-nfv, rhel-8-server-ose, rhel-8-ansible-2.9, openstack-16-for-rhel-8-rpms, rhel-8-codeready-builder-rpms, localdev-openstack-16-for-rhel-8-rpms, localdev-rhel-8-appstream-rpms, localdev-rhel-8-baseos-rpms, localdev-rhel-8-codeready-builder-rpms, localdev-rhel-8-fast-datapath-rpms, localdev-rhel-8-rt-rpms, localdev-rhel-8-server-ansible-2.9-rpms, localdev-rhel-8-server-ose-rpms
    No match for argument: file
    Error: Unable to find a match: file
    Error: building at STEP "RUN dnf install file -y": while running runtime: exit status 1

@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 23, 2024
@openshift-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Aug 22, 2024
@openshift-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci openshift-ci bot closed this as completed Sep 22, 2024
Copy link
Contributor

openshift-ci bot commented Sep 22, 2024

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

2 participants