[SOLVED] System broken? Cannot update

I went to do an update - pacman -Suy - which I’ve done many times before. There were 139 updates due, but got these error messages:

error: failed to commit transaction (conflicting files)
dracut: /usr/share/libalpm/hooks/60-dracut-remove.hook exists in filesystem (owned by eos-dracut)
dracut: /usr/share/libalpm/hooks/90-dracut-install.hook exists in filesystem (owned by eos-dracut)
dracut: /usr/share/libalpm/scripts/dracut-install exists in filesystem (owned by eos-dracut)
dracut: /usr/share/libalpm/scripts/dracut-remove exists in filesystem (owned by eos-dracut)
Errors occurred, no packages were upgraded.

I know absolutely nothing about dracut, as it’s not a command I’ve ever used. Any ideas what might have gone wrong, and can my system be fixed without recourse to a previous image that I have?

My guess would be that you overwrote your /etc/pacman.conf with the pacnew file and no longer have an EndeavourOS version of that file.

There is a clean copy here if you need one.

1 Like

Yes, I spotted that website after posting so I can update again. The only files I replaced were the endeavouros-mirrorlist and mirrorlist files in pacman.d with both .pacnew versions, which I ‘m sure I’ve done previously and don’t recall it causing an issue then. Did I do that wrong then?

I don’t seems to have listed a pacman.conf.pacnew file on looking.

Yes, you generally don’t need to do that. When you get a pacman.conf.pacnew, you should investigate the changes and merge them, not replace the file.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.