在 arch linux 上,内核:6.2.13-arch1-1
尝试更新,pacman -Syu
但收到以下错误消息
error: failed to commit transaction (conflicting files)
libgpg-error: /usr/bin/gpg-error exists in filesystem
libgpg-error: /usr/bin/gpgrt-config exists in filesystem
libgpg-error: /usr/bin/yat2m exists in filesystem
libgpg-error: /usr/include/gpg-error.h exists in filesystem
libgpg-error: /usr/include/gpgrt.h exists in filesystem
libgpg-error: /usr/lib/libgpg-error.so exists in filesystem
libgpg-error: /usr/lib/libgpg-error.so.0 exists in filesystem
libgpg-error: /usr/lib/libgpg-error.so.0.34.0 exists in filesystem
libgpg-error: /usr/lib/pkgconfig/gpg-error.pc exists in filesystem
libgpg-error: /usr/share/aclocal/gpg-error.m4 exists in filesystem
libgpg-error: /usr/share/aclocal/gpgrt.m4 exists in filesystem
libgpg-error: /usr/share/common-lisp/source/gpg-error/gpg-error-codes.lisp exists in filesystem
libgpg-error: /usr/share/common-lisp/source/gpg-error/gpg-error-package.lisp exists in filesystem
libgpg-error: /usr/share/common-lisp/source/gpg-error/gpg-error.asd exists in filesystem
libgpg-error: /usr/share/common-lisp/source/gpg-error/gpg-error.lisp exists in filesystem
libgpg-error: /usr/share/info/gpgrt.info.gz exists in filesystem
libgpg-error: /usr/share/libgpg-error/errorref.txt exists in filesystem
libgpg-error: /usr/share/locale/cs/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/da/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/de/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/eo/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/es/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/fr/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/hu/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/it/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/ja/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/nl/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/pl/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/pt/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/ro/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/ru/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/sr/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/sv/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/tr/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/uk/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/vi/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/zh_CN/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/locale/zh_TW/LC_MESSAGES/libgpg-error.mo exists in filesystem
libgpg-error: /usr/share/man/man1/gpgrt-config.1.gz exists in filesystem
Errors occurred, no packages were upgraded.
有什么想法吗?我试过了,pacman -S --overwrite glob libgpg-error
但还是出现同样的错误
我试过$ pacman -Qo /usr/bin/gpg-error
但error: No package owns /usr/bin/gpg-error
执行以下操作还会给出先前的较长错误以及现有文件列表
$ pacman -Syu --overwrite gpg-error
$ pacman -Syu --overwrite glob *
答案1
您需要转义通配符以阻止 shell 对其进行扩展。
执行以下任一操作:
sudo pacman -S --overwrite \* <package_name>
sudo pacman -S --overwrite "*" <package_name>
来源 : pacman“存在于文件系统中”错误。