PDA

View Full Version : Fedora 26 Update Issue



Francoe
12th August 2017, 02:36 AM
Hello All,

I recently installed Fedora 26 and the system is unable to apply the 25 updates listed. After I reboot the PC, the installation process takes place and at the end, still the 25 updates appears on the list. When I reboot, the system tells me that there are updates required and when I go to the update windows there is a message that says "unable to load updates". :C

Any help will be appreciated.

Thank you.

antikythera
12th August 2017, 02:23 PM
open a terminal window and type the following
sudo dnf distro-sync
if there are any error messages please post them here.

Francoe
13th August 2017, 02:36 PM
This is what I got:

Fedora 26 - x86_64 - Updates 3.7 MB/s | 10 MB 00:02
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.6/site-packages/dnf/cli/main.py", line 179, in user_main
errcode = main(args)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main
return _main(base, args, cli_class, option_parser_class)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 99, in _main
return cli_run(cli, base)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 115, in cli_run
cli.run()
File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 961, in run
self._process_demands()
File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 746, in _process_demands
load_available_repos=self.demands.available_repos)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 313, in fill_sack
self._add_repo_to_sack(r)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 127, in _add_repo_to_sack
load_updateinfo=True)
_hawkey.Exception: repo_add_solv() has failed.

tryfedoraa
13th August 2017, 03:55 PM
File "/bin/dnf"

Try clearing the dnf and then retry:


dnf clean all



What this does is:


dnf clean dbcache
Removes cache files generated from the repository metadata. This forces DNF to regenerate the cache files the next time it is run.


dnf clean expire-cache
Removes local cookie files saying when the metadata and mirrorlists were downloaded for each repo. DNF will re-validate the cache for each repo the next time it is used.


dnf clean metadata
Removes repository metadata. Those are the files which DNF uses to determine the remote availability of packages. Using this option will make DNF download all the metadata the next time it is
run.


dnf clean packages
Removes any cached packages from the system.


dnf clean plugins
Tells all enabled plugins to eliminate their cached data.


dnf clean all
Does all of the above.

Francoe
13th August 2017, 04:36 PM
After clearing, I got this:

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.6/site-packages/dnf/cli/main.py", line 179, in user_main
errcode = main(args)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main
return _main(base, args, cli_class, option_parser_class)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 99, in _main
return cli_run(cli, base)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 115, in cli_run
cli.run()
File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 961, in run
self._process_demands()
File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 746, in _process_demands
load_available_repos=self.demands.available_repos)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 313, in fill_sack
self._add_repo_to_sack(r)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 127, in _add_repo_to_sack
load_updateinfo=True)
_hawkey.Exception: repo_add_solv() has failed.

Hope you guys can help me.

Thanks.