Flutter:/opt/..../FETCH_HEAD 存在于文件系统 Arch 中

Flutter : /opt/..../FETCH_HEAD exists in filesystem Arch

更新和安装一些包时

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

在 Arch Linux 上我收到以下错误:

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

已修复 sudo rm -rf /opt/flutter/.git/FETCH_HEAD