Arch Linux – Fixing ‘python-gast03 and python-gast are in Conflict’ Error

arch linuxartix-linuxpythonupgrade

Trying to make a system update to upgrade Tensorflow:

sudo pacman -Syu

I am asked:

:: python-gast03 and python-gast are in conflict. Remove python-gast? [y/N]

I say No:

error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: python-gast03 and python-gast are in conflict

I then try to remove the oldest of the packages:

sudo pacman -R python-gast03

and I get:

error: target not found: python-gast03

So, where does this conflict come from if the oldest package is not even present?

Best Answer

I had the same issue when updating my system.

sudo pacman -Syu

I tried removing python-gast.

sudo pacman -R python-gast

I was told that python-tensorflow-opt-cuda was dependent on that package. So, I updated it.

sudo pacman -S python-tensorflow-opt-cuda

It replaced gast with gast03 at that point. Then, I could do a system update.

sudo pacman -Syu

Everything worked as expected after that.

Related Question