Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-24051

dnf in container got `[Errno 2] No such file or directory: '/var/cache/dnf/metadata_lock.pid'`

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Undefined Undefined
    • None
    • CentOS Stream 9
    • dnf
    • sst_cs_software_management
    • ssg_core_services
    • False
    • Hide

      None

      Show
      None

      What were you trying to do that didn't work?

      The command

      dnf install 'dnf-command(copr)'

      fails with

      [Errno 2] No such file or directory: '/var/cache/dnf/metadata_lock.pid'
      

      after refreshed the repo.

      Please provide the package NVR for which bug is seen:

      dnf-4.14.0-9.el9.noarch

      How reproducible:

      1%

      Steps to reproduce

      CONTAINER_ID=`sudo podman run --privileged -d quay.io/nmstate/c9s-nmstate-dev:latest`
      
      sudo podman exec -it $CONTAINER_ID /bin/bash -c "dnf install 'dnf-command(copr)' -y "
      

      Expected results

      No failure

      Actual results

      Failed with [Errno 2] No such file or directory: '/var/cache/dnf/metadata_lock.pid'

            rhn-support-ppisar Petr Pisar
            fge@redhat.com Gris Ge
            packaging-team-maint packaging-team-maint
            Software Management QE Software Management QE
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: