AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only

dnf config-manager fails with python errors

  • 1.  dnf config-manager fails with python errors

    Posted Wed September 20, 2023 10:22 AM

    Hi team,

    we used some yum commands to enable/disable repos via CLI. dnf seems to have some trouble to execute config-manager commands.

    Do you have seen these errors already? Any idea how to fix it?

    root@testserver0001 /global/dnf# dnf --version
    4.2.17
      Installed: dnf-0:4.2.17-32_50.ppc at Wed Sep  6 07:23:39 MEZ 2023
      Built    : IBM AIX Toolbox  <https://ibm.biz/AIXToolbox> at Thu Apr 21 10:10:15 MEZ 2022
    
    root@testserver0001 /global/dnf# rpm -qa | grep dnf
    libdnf-0.39.1-32_51.ppc
    python3-dnf-4.2.17-32_50.ppc
    python3-dnf-plugins-core-4.0.16-32_50.ppc
    dnf-automatic-4.2.17-32_50.ppc
    dnf-utils-4.0.16-32_50.ppc
    dnf-data-4.2.17-32_50.ppc
    python3-libdnf-0.39.1-32_51.ppc
    dnf-4.2.17-32_50.ppc
    python3-dnf-plugin-migrate-4.0.16-32_50.ppc
    
    root@testserver0001 /global/dnf# dnf config-manager --help
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 58, in <module>
        main.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 191, in user_main
        errcode = main(args)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/main.py", line 94, in _main
        cli.configure(list(map(ucd, args)), option_parser())
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/cli.py", line 949, in configure
        self.optparser.print_help(self.command)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/option_parser.py", line 421, in print_help
        self._add_command_options(command)
      File "/opt/freeware/lib/python3.7/site-packages/dnf/cli/option_parser.py", line 393, in _add_command_options
        command.set_argparser(self.command_group)
      File "/opt/freeware/lib/python3.7/site-packages/dnf-plugins/config_manager.py", line 60, in set_argparser
        help=_("enable repos (automatically saves)"))
      File "/opt/freeware/lib/python3.7/argparse.py", line 1373, in add_argument
        return self._add_action(action)
      File "/opt/freeware/lib/python3.7/argparse.py", line 1597, in _add_action
        action = self._container._add_action(action)
      File "/opt/freeware/lib/python3.7/argparse.py", line 1577, in _add_action
        action = super(_ArgumentGroup, self)._add_action(action)
      File "/opt/freeware/lib/python3.7/argparse.py", line 1387, in _add_action
        self._check_conflict(action)
      File "/opt/freeware/lib/python3.7/argparse.py", line 1526, in _check_conflict
        conflict_handler(action, confl_optionals)
      File "/opt/freeware/lib/python3.7/argparse.py", line 1535, in _handle_conflict_error
        raise ArgumentError(action, message % conflict_string)
    argparse.ArgumentError: argument --set-enabled: conflicting option string: --set-enabled
    


    ------------------------------
    Niklas
    System Engineer UNIX and Linux on Power
    ------------------------------