Pacman "filesystem: /etc/mtab exists in filesystem"

好久没升级了,今天升级时遇到这个错误:

error: failed to commit transaction (conflicting files)
filesystem: /etc/mtab exists in filesystem
Errors occurred, no packages were upgraded.


在官方论坛找到了解决办法:

When upgrading to filesystem-2011.12 there will be a conflict with /etc/mtab.
Install the package as follows:
pacman -S filesystem –force
It is strongly advised to avoid the –force or -f switch as it is not safe. However, in this particular case it is needed as deleting /etc/mtab manually would break pacman.
The reason for the conflict is that the file used to be generated at boot and hence not owned by any package. Now it is a symlink to /proc/self/mounts owned by filesystem. This change means that initscripts no longer requires write access to the rootfs (though other packages might).

@SEE https://bbs.archlinux.org/viewtopic.php?id=132225

更多
2 Responses Post a comment
  1. xuzizzz

    我当时直接把那个给rm了,后来出现了无法挂载,硬盘空间不够,后来强制更新了文件系统,好了

Leave a Reply

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS