
我在使用 pacman 安裝軟體包時遇到問題
首先正確更新 pacman,pacman -Syu
沒有任何問題,
但是,當嘗試安裝時,回應sudo
如下pacman -S sudo
:
[root@cx-W55xEU /]# pacman -S sudo
resolving dependencies...
looking for conflicting packages...
Packages (1) sudo-1.8.17.p1-1
Total Download Size: 0.90 MiB
Total Installed Size: 3.73 MiB
:: Proceed with installation? [Y/n] y
error: could not open file: /etc/mtab: No such file or directory
error: could not determine filesystem mount points
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
filesystem
閱讀完相關內容後,我嘗試安裝可以pacman -S filesystem
解決問題的軟體包mtab
。
[root@cx-W55xEU /]# pacman -S filesystem
warning: filesystem-2015.09-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) filesystem-2015.09-1
Total Installed Size: 0.01 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [####################################################] 100%
error: GPGME error: Invalid crypto engine
(1/1) checking package integrity [####################################################] 100%
error: GPGME error: Invalid crypto engine
error: filesystem: missing required signature
:: File /var/cache/pacman/pkg/filesystem-2015.09-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
刪除後,我重新嘗試下載最新版本並pacman -S filesystem
再次安裝:
[root@cx-W55xEU /]# pacman -S filesystem
warning: filesystem-2015.09-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) filesystem-2015.09-1
Total Download Size: 0.01 MiB
Total Installed Size: 0.01 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
error: could not open file: /etc/mtab: No such file or directory
error: could not determine filesystem mount points
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
我的/etc/mtab
文件很乾淨,即沒有內容
我發現了一個關於 arch wiki 的頁面坐騎但不確定我是否應該創建指定的符號連結來解決此問題。
有什麼建議麼?