无法使用自制软件更新桶装应用程序



我正在使用macoscatalina,当我尝试在自制上更新我的应用程序时,我遇到了这个错误

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根:轮子/应用

现在,每次我想用我的应用程序文件夹做一些事情时,mac都会问我密码,我认为这两件事是相关的。有人能帮我吗?感谢

所以显然很容易修复,我只需要运行:

sudo chown root:admin /Applications

sudo chmod 0775 /Applications

重新启动后,它通过每次询问密码修复了我的应用程序文件夹的异常工作,并修复了qbittorrent的安装。由于某种原因,口径仍然出现同样的错误,但我尝试用重新安装它

brew reinstall calibre

它给了我一些错误,但后来问我sudo密码,它安装了很好的

最新更新