I am a noob/newb to Linux. I have been struggling to upgrade my system. When I upgrade, pacman wants to install polkit-qt6 but I already have polkit-qt6-git installed. Because of this, it seems that no matter what I do I cannot get a full system update.
Trying to resolve this error, sudo pacman -Syu --ignore polkit-qt6 > pacman_log.txt results in this.
And finally, if I try to overwrite the files in conflict with sudo pacman -U polkit-qt6 --overwrite /usr/include/polkit-qt6-1/* usr/lib/cmake/PolkitQt6-1/* /usr/lib/libpolkit-qt6* /usr/lib/pkgconfig/polkit-qt6* I get this.
The update should work fine if you haven’t broken anything in your earlier attempts.
Note: In this case, I suspect you can actually skip the installation of polkit-qt6 and go straight to the system update because the update itself will include the installation of polkit-qt6. But just to be safe, I recommend just go with the extra two steps.
This is a wild guess, but is this because polkit-qt6 and polkit-qt6-git are no longer marked as conflicting packages in the latest copy of the databases (refreshed becuase of the -y flag) and the reason the OP can’t update is because the outdated database on the OP’s system still sees polkit-qt6 and polkit-qt6-git as conflicting packages?
I updated pacman sudo pacman -S pacman and that worked without error and sudo pacman -Sy and that returned: [cat@large ~]$ sudo pacman -Sy
:: Synchronizing package databases...
endeavouros is up to date
core is up to date
extra is up to date
multilib is up to date
[cat@large ~]$