Flutter: /Opt/. .. ./Fetch_Head Exists in Filesystem Arch

While I'm updating and installing some packages on Arch Linux:

sudo pacman -Syu && sudo pacman -S --needed \
webkit2gtk \
base-devel \
curl \
wget \...

I got following error:

error: failed to commit transaction (conflicting files)
flutter: /opt/flutter/.git/FETCH_HEAD exists in filesystem
Errors occurred, no packages were upgraded.
1

1 Answer

Fixed with sudo rm -rf /opt/flutter/.git/FETCH_HEAD

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest