Hide Forgot
Using dnf-1.1.4-2.fc22.noarch When using dnf groupinstall, missing dependencies are quietly ignored and the command exits without error. I've found two situations where dnf is asked to perform a group install, fails to do so, but give no indication of failure. 1) when the group install encounters missing deps 2) when the group refers directly to a missing package I first encountered this within mock, but I have replicated it outside of mock. I did this locally by creating a repo containing a single package with an unsatisfied dep, and a comps file with two groups. One group contains the given package. The other refers to a package that does not exist. Here are the results: [root@localhost]# dnf -y groupinstall missing-deps && echo OK Last metadata expiration check performed 0:11:18 ago on Fri Dec 18 11:04:56 2015. Dependencies resolved. ================================================================================================================ Group Packages ================================================================================================================ Marking installed: missing-deps fake Complete! OK [root@localhost]# rpm -q fake package fake is not installed [root@localhost]# dnf -y groupinstall no-such-package && echo OK Last metadata expiration check performed 0:11:40 ago on Fri Dec 18 11:04:56 2015. Dependencies resolved. ================================================================================================================ Group Packages ================================================================================================================ Marking installed: no-such-package NOSUCHPACKAGE Complete! OK [root@localhost]# rpm -q NOSUCHPACKAGE package NOSUCHPACKAGE is not installed
Created attachment 1107220 [details] comps file
I should also note that even at debuglevel=10, there is no hint that something is amiss.
yum-deprecated behaves more sanely here. In case 1, it reports the missing dependency and exits with an error [root@localhost]# yum-deprecated -y groupinstall missing-deps ; echo "Exit code $?" Yum command has been deprecated, use dnf instead. See 'man dnf' and 'man yum2dnf' for more information. Loaded plugins: auto-update-debuginfo, langpacks Resolving Dependencies --> Running transaction check ---> Package fake.x86_64 0:1.0-20 will be installed --> Processing Dependency: nosuchpackage > 8192 for package: fake-1.0-20.x86_64 --> Finished Dependency Resolution Error: Package: fake-1.0-20.x86_64 (fake) Requires: nosuchpackage > 8192 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest Exit code 1 In case 2, it exits cleanly, but prints a warning. # yum-deprecated -y groupinstall no-such-package ; echo "Exit code $?" Yum command has been deprecated, use dnf instead. See 'man dnf' and 'man yum2dnf' for more information. Loaded plugins: auto-update-debuginfo, langpacks Warning: Group no-such-package does not have any packages to install. Maybe run: yum groups mark install (see man yum) No packages in any requested group available to install or update Exit code 0
dnf-plugins-core-0.1.21-1.fc24 dnf-1.1.9-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-1efd7bc386
dnf-1.1.9-1.fc23 dnf-plugins-core-0.1.21-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-bb69db975e
dnf-1.1.9-1.fc24, dnf-plugins-core-0.1.21-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-1efd7bc386
dnf-1.1.9-1.fc23, dnf-plugins-core-0.1.21-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-bb69db975e
dnf-1.1.9-1.fc23, dnf-plugins-core-0.1.21-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Latest incarnation of this: https://bugzilla.redhat.com/show_bug.cgi?id=1461539 https://github.com/rpm-software-management/dnf/pull/1038