我正在使用mac,当我尝试用自制软件更新我的应用程序时,我得到了这个错误
Phoenix@Mac ~ % brew update && brew upgrade
Already up-to-date.
==> Casks with 'auto_updates' or 'version :latest' will not be upgraded; pass `--greedy` to upgrade them.
==> Upgrading 2 outdated packages:
calibre 5.21.0 -> 5.22.1
qbittorrent 4.3.5 -> 4.3.6
==> Upgrading calibre
==> Downloading https://download.calibre-ebook.com/5.22.1/calibre-5.22.1.dmg
Already downloaded: /Users/Phoenix/Library/Caches/Homebrew/downloads/c65eaf4a60a83e7d61ce123c7d199f65c2691ee721972da589027be62c9d6945--calibre-5.22.1.dmg
==> Backing App 'calibre.app' up to '/usr/local/Caskroom/calibre/5.21.0/calibre.app'
==> Removing App '/Applications/calibre.app'
==> Purging files for version 5.22.1 of Cask calibre
==> Upgrading qbittorrent
==> Downloading https://downloads.sourceforge.net/qbittorrent/qbittorrent-mac/qbittorrent-4.3.6/qbittorrent-4.3.6.dmg
Already downloaded: /Users/Phoenix/Library/Caches/Homebrew/downloads/b17012b7d4e429b821b0090ee4e2b3f4e0e83afd19a19be1ee7ce5cb806ef8d9--qbittorrent-4.3.6.dmg
==> Backing App 'qBittorrent.app' up to '/usr/local/Caskroom/qbittorrent/4.3.5/qbittorrent.app'
==> Removing App '/Applications/qBittorrent.app'
==> Purging files for version 4.3.6 of Cask qbittorrent
Error: Problems with multiple casks:
calibre: Directory not empty @ dir_s_rmdir - /Applications/calibre.app
qbittorrent: Directory not empty @ dir_s_rmdir - /Applications/qBittorrent.app
Phoenix@Mac ~ % 我认为原因在某种程度上与我前几天无法在虚拟盒上安装扩展包有关,在虚拟盒中,我得到了以下错误:
The installer failed with exit code 1: VBoxExtPackHelperApp: error: The owner is not root: '/Applications'.
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: ExtPackManagerWrap
Interface: IExtPackManager {edba9d10-45d8-b440-1712-46ac0c9bc4c5}我修复了它,寻找一个在线解决方案,使用以下命令更改我的应用程序文件夹的所有权:
sudo chown -R根:轮/Applications
现在,mac要求我提供密码,每次我想用我的应用程序文件夹做些什么时,我认为这两件事是相关的。有人能帮我吗?谢谢
发布于 2021-06-29 18:08:45
很明显我很容易解决我只需要跑:
sudo chown root:admin /Applications和
sudo chmod 0775 /Applications并重新启动,它修复了我的应用程序文件夹工作奇怪,每次询问密码,并修正了qbittorrent安装。出于某种原因,口径仍然出现了相同的错误,但我尝试用
brew reinstall calibre它给了我一些错误,然后问我sudo密码,它安装得很好。
https://stackoverflow.com/questions/68183355
复制相似问题