Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

dnf check-update failed

    $ dnf check-update
Traceback (most recent call last):
  File "/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.7/site-packages/dnf/cli/", line 192, in user_main
    errcode = main(args)
  File "/usr/lib/python3.7/site-packages/dnf/cli/", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.7/site-packages/dnf/cli/", line 99, in _main
    return cli_run(cli, base)
  File "/usr/lib/python3.7/site-packages/dnf/cli/", line 115, in cli_run
  File "/usr/lib/python3.7/site-packages/dnf/cli/", line 1128, in run
  File "/usr/lib/python3.7/site-packages/dnf/cli/commands/", line 288, in run
  File "/usr/lib/python3.7/site-packages/dnf/cli/", line 325, in check_updates
    columns = _list_cmd_calc_columns(self.output, ypl)
  File "/usr/lib/python3.7/site-packages/dnf/cli/", line 113, in _list_cmd_calc_columns
    _add_pkg_simple_list_lens(data, opkg, indent=" " * 4)
  File "/usr/lib/python3.7/site-packages/dnf/cli/", line 97, in _add_pkg_simple_list_lens
    rid = len(pkg._from_repo)
  File "/usr/lib/python3.7/site-packages/dnf/", line 84, in _from_repo
    pkgrepo = self.base.history.repo(self)
  File "/usr/lib/python3.7/site-packages/dnf/db/", line 368, in repo
    return self.swdb.getRPMRepo(str(pkg))
  File "/usr/lib64/python3.7/site-packages/libdnf/", line 791, in getRPMRepo
    return _transaction.Swdb_getRPMRepo(self, nevra)
RuntimeError: Statement: attempt to write a readonly database in

            repo.repoid as repoid
            trans_item ti
            rpm USING (item_id)
            repo ON ti.repo_id ==
            ti.action not in (3, 5, 7, 10)
            AND = ?
            AND rpm.epoch = ?
            AND rpm.version = ?
            AND rpm.release = ?
            AND rpm.arch = ?
        ORDER BY
        LIMIT 1;

Any idea pls what to do ?

$ uname -a
Linux fedora 4.20.14-200.fc29.x86_64