1

While updating and installing some packages

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

on Arch Linux 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.
Adarsh Raj
  • 97
  • 1
  • 9

1 Answers1

2

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

  • 1
    If anything went wrong so for this i have create a backup file then i did this... Well This Method Works... – Adarsh Raj May 10 '22 at 10:27
  • `FETCH_HEAD` is safe to delete :-) see https://stackoverflow.com/a/34397566/2310634 or https://community.atlassian.com/t5/Sourcetree-questions/Can-I-delete-tidy-up-old-FETCH-HEAD-files/qaq-p/775591#M38820 Manjaro user here with the same exact problem. It must have been from a recent AUR update. – Richard Michael Coo May 24 '22 at 06:32