29 diciembre, 2024

El error en Fedora 28 al realizar un dnf update fue el siguiente:

Traceback (most recent call last):
File “/usr/bin/dnf”, line 58, in main.user_main(sys.argv[1:], exit_code=True) 
File “/usr/lib/python3.7/site-packages/dnf/cli/main.py”, line 179, in user_main errcode = main(args) 
File “/usr/lib/python3.7/site-packages/dnf/cli/main.py”, line 64, in main return _main(base, args, cli_class, option_parser_class) 
File “/usr/lib/python3.7/site-packages/dnf/cli/main.py”, line 99, in _main return cli_run(cli, base) 
File “/usr/lib/python3.7/site-packages/dnf/cli/main.py”, line 123, in cli_run ret = resolving(cli, base) 
File “/usr/lib/python3.7/site-packages/dnf/cli/main.py”, line 146, in resolving base.resolve(cli.demands.allow_erasing) 
File “/usr/lib/python3.7/site-packages/dnf/base.py”, line 759, in resolve self._transaction = self._goal2transaction(goal) 
File “/usr/lib/python3.7/site-packages/dnf/base.py”, line 656, in _goal2transaction ts.add_install(pkg, obs, reason) 
File “/usr/lib/python3.7/site-packages/dnf/db/group.py”, line 256, in add_install ti_new = self.new(new, libdnf.transaction.TransactionItemAction_INSTALL, reason) 
File “/usr/lib/python3.7/site-packages/dnf/db/group.py”, line 219, in new rpm_item = self._pkg_to_swdb_rpm_item(pkg) 
File “/usr/lib/python3.7/site-packages/dnf/db/group.py”, line 210, in _pkg_to_swdb_rpm_item rpm_item = self.history.swdb.createRPMItem() 
File “/usr/lib/python3.7/site-packages/dnf/db/history.py”, line 291, in swdb self._swdb = libdnf.transaction.Swdb(self.dbpath) 
File “/usr/lib64/python3.7/site-packages/libdnf/transaction.py”, line 729, in __init__ this = _transaction.new_Swdb(*args) RuntimeError: Exec failed: no such table: main.trans_cmdline

El error me ocurrió al usar el comando siguiente:


# dnf update plexmediaserver-1.15.4.993-bb4a2cb6c.x86_64.rpm

Lo pude resolver quitando los repositorios de Plex que tenía instalados en yum.repos.d haciendo lo siguiente:

# cd /etc/yum.repos.d/
# rm plex.repo*


Sin embargo otros intentos pudieran servir en tu caso:


# dnf clean
# dnf update
# mv /var/lib/dnf/history /var/tmp/
# dnf clean all
# yum install python3-dnf.noarch –best –allowerasing
# yum reinstall python3-dnf
# dnf update python3
# dnf clean metadata


Si te sirvió da clic en la propaganda o deja un comentario.




Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *