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

Unsatisfiable dependency on RedHat 9 package. #2516

Closed
seriv opened this issue Apr 19, 2024 · 2 comments
Closed

Unsatisfiable dependency on RedHat 9 package. #2516

seriv opened this issue Apr 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@seriv
Copy link

seriv commented Apr 19, 2024

Describe the Bug

Puppet-agent package can't be installed on fully upgraded RedHat 9.3
It has requirement '/bin/mkdir', and nothing provides '/bin/mkdir' on RedHat 9.3.
Everything is moved to /usr/bin, and there is a symlink:

[root@localhost ~]# ls -altr /bin
lrwxrwxrwx. 1 root root 7 Aug  9  2021 /bin -> usr/bin

Steps to Reproduce

[root@localhost ~]# dnf install puppet-agent
Updating Subscription Management repositories.
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)                                                                                                                                                             142 kB/s | 4.5 kB     00:00    
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)                                                                                                                                                                136 kB/s | 4.1 kB     00:00    
Error: 
 Problem: cannot install the best candidate for the job
  - nothing provides /bin/mkdir needed by puppet-agent-7.30.0-1.el8.x86_64 from puppet7
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@localhost ~]#

Environment

  • puppet-agent 7.30.0
  • Platform RedHat 9.3

Additional Context

[root@localhost ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 9.3 (Plow)
[root@localhost ~]# dnf upgrade
warning: Signature not supported. Hash algorithm SHA1 not available.
Updating Subscription Management repositories.
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)                                                                                                                                                              92 kB/s | 4.5 kB     00:00    
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)                                                                                                                                                                 92 kB/s | 4.1 kB     00:00    
Dependencies resolved.
Nothing to do.
Complete!
[root@localhost ~]# dnf info puppet-agent
warning: Signature not supported. Hash algorithm SHA1 not available.
Updating Subscription Management repositories.
Choria Orchestrator Releases                                                                                                                                                                                         1.1 kB/s | 858  B     00:00    
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)                                                                                                                                                              89 kB/s | 4.5 kB     00:00    
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)                                                                                                                                                                135 kB/s | 4.1 kB     00:00    
Available Packages
Name         : puppet-agent
Version      : 7.30.0
Release      : 1.el8
Architecture : x86_64
Size         : 22 M
Source       : puppet-agent-7.30.0-1.el8.src.rpm
Repository   : puppet7
Summary      : The Puppet Agent package contains all of the elements needed to run puppet, including ruby, facter, and hiera.
URL          : https://www.puppetlabs.com
License      : See components
Description  : The Puppet Agent package contains all of the elements needed to run puppet, including ruby, facter, and hiera.
             : 
             : Contains the following components:
             : cleanup
             : facter 4.7.0
             : hiera 3.12.0
             : module-puppetlabs-augeas_core v1.5.0
             : module-puppetlabs-cron_core v1.3.0
             : module-puppetlabs-host_core v1.3.0
             : module-puppetlabs-mount_core v1.3.0
             : module-puppetlabs-scheduled_task v3.2.0
             : module-puppetlabs-selinux_core v1.4.0
             : module-puppetlabs-sshkeys_core v2.5.0
             : module-puppetlabs-yumrepo_core v1.2.0
             : module-puppetlabs-zfs_core v1.5.0
             : module-puppetlabs-zone_core v1.2.0
             : puppet 7.30.0
             : puppet-resource_api 1.9.0
             : puppet-runtime 202404030
             : pxp-agent 202404041
             : shellpath 2023-02-15
             : wrapper-script

[root@localhost ~]# dnf provides /bin/mkdir
warning: Signature not supported. Hash algorithm SHA1 not available.
Updating Subscription Management repositories.
Last metadata expiration check: 0:00:15 ago on Fri 19 Apr 2024 08:50:59 AM EDT.
coreutils-8.32-31.el9.x86_64 : A set of basic GNU tools commonly used in shell scripts
Repo        : rhel-9-for-x86_64-baseos-rpms
Matched from:
Filename    : /usr/bin/mkdir

coreutils-8.32-32.el9.x86_64 : A set of basic GNU tools commonly used in shell scripts
Repo        : rhel-9-for-x86_64-baseos-rpms
Matched from:
Filename    : /usr/bin/mkdir

coreutils-8.32-34.el9.x86_64 : A set of basic GNU tools commonly used in shell scripts
Repo        : @System
Matched from:
Filename    : /usr/bin/mkdir

coreutils-8.32-34.el9.x86_64 : A set of basic GNU tools commonly used in shell scripts
Repo        : rhel-9-for-x86_64-baseos-rpms
Matched from:
Filename    : /usr/bin/mkdir

coreutils-single-8.32-31.el9.x86_64 : coreutils multicall binary
Repo        : rhel-9-for-x86_64-baseos-rpms
Matched from:
Filename    : /usr/bin/mkdir

coreutils-single-8.32-32.el9.x86_64 : coreutils multicall binary
Repo        : rhel-9-for-x86_64-baseos-rpms
Matched from:
Filename    : /usr/bin/mkdir

coreutils-single-8.32-34.el9.x86_64 : coreutils multicall binary
Repo        : rhel-9-for-x86_64-baseos-rpms
Matched from:
Filename    : /usr/bin/mkdir

[root@localhost ~]#
@seriv seriv added the bug Something isn't working label Apr 19, 2024
@joshcooper
Copy link
Contributor

dnf is resolving the wrong rpm package:

Release      : 1.el8
...
Source       : puppet-agent-7.30.0-1.el8.src.rpm

Our el9 package looks correct to me:

#  curl -LO https://yum.puppet.com/puppet7/el/9/x86_64/puppet-agent-7.30.0-1.el9.x86_64.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 20.7M  100 20.7M    0     0  35.4M      0 --:--:-- --:--:-- --:--:-- 35.3M
# rpm -qp puppet-agent-7.30.0-1.el9.x86_64.rpm --requires
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/usr/bin/mkdir
/usr/bin/mkdir
/usr/bin/touch
/usr/bin/touch
findutils
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1
systemd
systemd
systemd
tar

For context, support for EL9 was added in puppetlabs/vanagon@e25aef3 to take into account /bin/mkdir vs /usr/bin/mkdir

@seriv
Copy link
Author

seriv commented Apr 19, 2024

Sorry, my fault. Closing the issue.

@seriv seriv closed this as completed Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants