Page 1 of 1

[SOLVED] Updating Mageia 7 fails with errors

PostPosted: Aug 26th, '19, 19:48
by brm
Hi. I get the below error when attempting to update this system. Any ideas on how to tackle this?
What do you think about updating using the --allowerasing parameter.
Thanks

Code: Select all
dnf update
Failed to set locale, defaulting to C
Failed to synchronize cache for repo 'ftp.blogdrake.net_mageia_mageia7_x86_64', disabling.
Last metadata expiration check: 1 day, 7:05:25 ago on Sun Aug 25 13:00:00 2019.
Error:
 Problem: package elfutils-0.176-1.mga6.x86_64 requires lib64elfutils1 = 0.176-1.mga6, but none of the providers can be installed
  - cannot install both lib64elfutils1-0.176-1.mga6.x86_64 and lib64elfutils1-0.176-1.mga7.x86_64
  - cannot install the best update candidate for package elfutils-0.169-1.mga6.x86_64
  - problem with installed package lib64elfutils1-0.176-1.mga7.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

Re: Updating Mageia 7 fails with errors

PostPosted: Aug 28th, '19, 02:10
by vinylninja
You can try it. That is the suggestion by dnf.
By now I have seen similar outputs more often with dnf. Something is not always working like it should.

Try to clear the package cache and metadata with:

Code: Select all
dnf clean all


and then try the update again.

Next time you could try urpmi to update the whole system. I see less of the output you have with it.
To update your whole system:

Code: Select all
urpmi --auto-update


I could be wrong but I think dnf has some issues to synchronize the cache.

Re: Updating Mageia 7 fails with errors

PostPosted: Aug 28th, '19, 13:05
by brm
Thanks for your input. I decided to run with
dnf update --allowerasing

It did remove a conflicting package, as well as update a number of other files. The system rebooted successfully.

Cheers

Re: Updating Mageia 7 fails with errors

PostPosted: Aug 28th, '19, 13:15
by isadora
Would you please mark this topic [SOLVED]?
You can do so by editing the title/subject of the first message in the topic.
Place [SOLVED] in front of subject/title.

Thanks ahead. :)