| Summary: | If you use yum instead of dnf, it will fail: AttributeError: 'bool' object has no attribute '_is_runtimeonly' | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Peter Gervase <pgervase> |
| Component: | dnf | Assignee: | rpm-software-management |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | mluscon, packaging-team-maint, rpm-software-management, vmukhame |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-12-08 13:46:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
*** This bug has been marked as a duplicate of bug 1402075 *** |
Description of problem: If you forget to use dnf and instead use yum, it will fail: [root@localhost ~]# yum install gcr -v Loaded plugins: builddep, config-manager, copr, debuginfo-install, download, generate_completion_cache, needs-restarting, noroot, playground, reposync DNF version: 2.0.0 cachedir: /var/cache/dnf repo: using cache for: rawhide not found updateinfo for: rawhide rawhide: using metadata from Wed Dec 07 05:45:54 2016 EST. Last metadata expiration check: 0:04:39 ago on Thu Dec 08 08:08:43 2016 EST. --> Starting dependency resolution ---> Package gcr.x86_64 3.20.0-2.fc26 will be installed --> Finished dependency resolution Dependencies resolved. ============================================================================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================================================================= Installing dependencies: gcr x86_64 3.20.0-2.fc26 rawhide 660 k Transaction Summary ============================================================================================================================================================================================================================================= Install 1 Package Total size: 660 k Installed size: 2.4 M Is this ok [y/N]: y Downloading Packages: [SKIPPED] gcr-3.20.0-2.fc26.x86_64.rpm: Already downloaded Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction RPMDB altered outside of DNF. Traceback (most recent call last): File "/usr/bin/yum", line 58, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python3.5/site-packages/dnf/yum/main.py", line 86, in user_main errcode = main(args) File "/usr/lib/python3.5/site-packages/dnf/yum/main.py", line 44, in main return _main(base, args) File "/usr/lib/python3.5/site-packages/dnf/yum/main.py", line 82, in _main return dnf.cli.main.cli_run(cli, base) File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 123, in cli_run ret = resolving(cli, base) File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 150, in resolving base.do_transaction(display=displays) File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 222, in do_transaction super(BaseCli, self).do_transaction(display) File "/usr/lib/python3.5/site-packages/dnf/base.py", line 662, in do_transaction self._run_transaction(cb=cb) File "/usr/lib/python3.5/site-packages/dnf/base.py", line 725, in _run_transaction self._store_config_in_history() File "/usr/lib/python3.5/site-packages/dnf/base.py", line 2018, in _store_config_in_history self.history.write_addon_data('config-main', self.conf.dump()) File "/usr/lib/python3.5/site-packages/dnf/conf/config.py", line 554, in dump if not opt._is_runtimeonly(): AttributeError: 'bool' object has no attribute '_is_runtimeonly' [root@localhost ~]# Version-Release number of selected component (if applicable): dnf-2.0.0-0.rc2.3.fc26.noarch dnf-yum-2.0.0-0.rc2.3.fc26.noarch How reproducible: 100% Steps to Reproduce: 1. yum install <package> 2. 3. Actual results: Fails as shown above. Expected results: For yum to say it's been deprecated and to use dnf but to correctly finish the yum install, or to not even try installing the package but just fail right away. Additional info: