@BlaiseD said in Error with updates:
@bishoptf IIRC I saw something similar when an upgrade cycle went wrong crashed or timed-out, not sure. In my case it was with kwin.
I finally solved by
sudo rm /var/lib/pacman/local/kwin-5.14.3-1 -rf
sudo pacman -S kwin --force
I think --overwrite instead of --force is probably more appropriate (–force is deprecated)
So in your case
sudo rm /var/lib/pacman/local/deepin-api*
sudo pacman -S deepin-api --overwrite
might fix the problem.
However before you do that run
pacman -Qk and
pacman -Dk and see if that highlights any issues. See https://wiki.archlinux.org/index.php/Pacman/Rosetta for descriptions.
In my case
packman -Dk showed that 0 files were installed for kwin.
That did the trick, removed the directory and re-applied. Just FYI --force is deprecated but works , using --overwrite requires you to provide the directory path, I was lazy and did the force.
If anyone else has the issues, delete and re-install latest version.
Thanks guys :)