V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
loganovo
V2EX  ›  macOS

brew uninstall --zap <cask> 报权限的错, 有人和我一样吗?

  •  
  •   loganovo · 13 小时 21 分钟前 · 261 次点击

    macOS: 14.7.5-arm64 HOMEBREW_VERSION: 4.5.0

    1 、install a cask

    brew install motrix
    ==> Downloading https://github.com/agalwood/Motrix/releases/download/v1.8.19/Motrix-1.8.19-arm64.dmg
    Already downloaded: /Users/logan/Library/Caches/Homebrew/downloads/d1ee2fdb2bf9526a7ca9b4e7af1e32a438ec0d3fda037504377b3bfaf755d166--Motrix-1.8.19-arm64.dmg
    ==> Installing Cask motrix
    ==> Moving App 'Motrix.app' to '/Applications/Motrix.app'
    🍺  motrix was successfully installed!
    

    2 、open the app, and quit

    3 、uninstall with --zap

    brew uninstall --zap motrix
    ==> Implied `brew uninstall --cask motrix`
    ==> Backing App 'Motrix.app' up to '/opt/homebrew/Caskroom/motrix/1.8.19/Motrix.app'
    ==> Removing App '/Applications/Motrix.app'
    ==> Dispatching zap stanza
    ==> Trashing files:
    ~/Library/Application Support/Motrix
    ~/Library/Caches/app.motrix.native
    ~/Library/Logs/Motrix
    ~/Library/Preferences/app.motrix.native.plist
    ~/Library/Saved Application State/app.motrix.native.savedState
    ==> Using sudo to gain ownership of path '/Users/logan/Library/Application Support/Motrix'
    Password:
    chown: /Users/logan/Library/Application Support/Motrix: No such file or directory
    ==> Using sudo to gain ownership of path '/Users/logan/Library/Logs/Motrix'
    chown: /Users/logan/Library/Logs/Motrix: No such file or directory
    ==> Using sudo to gain ownership of path '/Users/logan/Library/Preferences/app.motrix.native.plist'
    chown: /Users/logan/Library/Preferences/app.motrix.native.plist: No such file or directory
    Warning: The following files could not be trashed, please do so manually:
    /Users/logan/Library/Application Support/Motrix
    /Users/logan/Library/Logs/Motrix
    /Users/logan/Library/Preferences/app.motrix.native.plist
    ==> Removing all staged versions of Cask 'motrix'
    

    Question:

    在我被提示输入密码之前,Homebrew 已经删除了该应用的相关文件并将它们移到了废纸篓。随后,它试图对这些文件执行操作,但它们已经不存在了:No such file or directory 。还有人是这样吗?

    2 条回复    2025-05-06 23:30:30 +08:00
    cosette
        1
    cosette  
       8 小时 51 分钟前
    遇到一样的问题,应该 Homebrew 的 bug ,等等就修复了
    loganovo
        2
    loganovo  
    OP
       8 小时 11 分钟前
    @cosette 我昨晚已经提了 issue 了, 但是我怕是我的问题, 原来不是, 那就好
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1307 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 23:41 · PVG 07:41 · LAX 16:41 · JFK 19:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.