From 1f52dee0fa2f195e7ff82a8e374bfd72b966d39a Mon Sep 17 00:00:00 2001 From: "Xingyu.Wang" Date: Fri, 12 Oct 2018 11:10:32 +0800 Subject: [PATCH 1/2] PRF:20180827 Solve -error- failed to commit transaction (conflicting files)- In Arch Linux.md @lujun9972 --- ...mit transaction (conflicting files)- In Arch Linux.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/translated/tech/20180827 Solve -error- failed to commit transaction (conflicting files)- In Arch Linux.md b/translated/tech/20180827 Solve -error- failed to commit transaction (conflicting files)- In Arch Linux.md index d77a63be3d..7764b5186e 100644 --- a/translated/tech/20180827 Solve -error- failed to commit transaction (conflicting files)- In Arch Linux.md +++ b/translated/tech/20180827 Solve -error- failed to commit transaction (conflicting files)- In Arch Linux.md @@ -3,25 +3,28 @@ ![](https://www.ostechnix.com/wp-content/uploads/2018/06/arch_linux_wallpaper-720x340.png) -自我更新 Arch Linux 桌面以来已经有一个月了。今天我试着更新我的 Arch Linux 系统,然后遇到一个错误 **“error:failed to commit transaction (conflicting files) stfl:/usr/lib/libstfl.so.0 exists in filesystem”**。看起来是 pacman 无法更新一个已经存在于文件系统上的库 (/usr/lib/libstfl.so.0)。如果你也遇到了同样的问题,下面是一个快速解决方案。 +自我更新 Arch Linux 桌面以来已经有一个月了。今天我试着更新我的 Arch Linux 系统,然后遇到一个错误 “error:failed to commit transaction (conflicting files) stfl:/usr/lib/libstfl.so.0 exists in filesystem”。看起来是 pacman 无法更新一个已经存在于文件系统上的库 (/usr/lib/libstfl.so.0)。如果你也遇到了同样的问题,下面是一个快速解决方案。 ### 解决 Arch Linux 中出现的 “error:failed to commit transaction (conflicting files)” 有三种方法。 -1。简单在升级时忽略导致问题的 **stfl** 库并尝试再次更新系统。请参阅此指南以了解 [**如何在更新时忽略软件包 **][1]。 +1。简单在升级时忽略导致问题的 stfl 库并尝试再次更新系统。请参阅此指南以了解 [如何在更新时忽略软件包][1]。 2。使用命令覆盖这个包: + ``` $ sudo pacman -Syu --overwrite /usr/lib/libstfl.so.0 ``` 3。手工删掉 stfl 库然后再次升级系统。请确保目标包不被其他任何重要的包所依赖。可以通过去 archlinux.org 查看是否有这种冲突。 + ``` $ sudo rm /usr/lib/libstfl.so.0 ``` 现在,尝试更新系统: + ``` $ sudo pacman -Syu ``` @@ -41,7 +44,7 @@ via: https://www.ostechnix.com/how-to-solve-error-failed-to-commit-transaction-c 作者:[SK][a] 选题:[lujun9972](https://github.com/lujun9972) 译者:[lujun9972](https://github.com/lujun9972) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 From 09b5fca3f2703cc350c3360d817a7b3ae77e45fc Mon Sep 17 00:00:00 2001 From: "Xingyu.Wang" Date: Fri, 12 Oct 2018 11:10:53 +0800 Subject: [PATCH 2/2] PUB:20180827 Solve -error- failed to commit transaction (conflicting files)- In Arch Linux.md @lujun9972 https://linux.cn/article-10107-1.html --- ...ed to commit transaction (conflicting files)- In Arch Linux.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {translated/tech => published}/20180827 Solve -error- failed to commit transaction (conflicting files)- In Arch Linux.md (100%) diff --git a/translated/tech/20180827 Solve -error- failed to commit transaction (conflicting files)- In Arch Linux.md b/published/20180827 Solve -error- failed to commit transaction (conflicting files)- In Arch Linux.md similarity index 100% rename from translated/tech/20180827 Solve -error- failed to commit transaction (conflicting files)- In Arch Linux.md rename to published/20180827 Solve -error- failed to commit transaction (conflicting files)- In Arch Linux.md