每次我使用brew安装某些东西时都会出现错误的文件描述符

发布于 2025-01-10 04:53:49 字数 4238 浏览 0 评论 0原文

为什么每次我尝试使用 homebrew 错误日志安装任何应用程序时,为什么我总是收到错误的文件描述符错误

:-

Error: Failure while executing; `cp -pR /private/tmp/d20220226-3322-2zsx5k/ca-certificates/. /usr/local/Cellar/ca-certificates` exited with 1. Here's the output:
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/.: unable to copy extended attributes to /usr/local/Cellar/ca-certificates/.: Bad file descriptor
cp: /usr/local/Cellar/ca-certificates/./2022-02-01: Permission denied
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01: unable to copy extended attributes to /usr/local/Cellar/ca-certificates/./2022-02-01: Permission denied
cp: /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01/.brew: unable to copy extended attributes to /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: /usr/local/Cellar/ca-certificates/./2022-02-01/.brew/ca-certificates.rb: No such file or directory
cp: setattrlist: /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: chown: /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: chmod: /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: chflags: /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01/.brew: unable to copy ACL to /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01/share: unable to copy extended attributes to /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01/share/ca-certificates: unable to copy extended attributes to /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates/cacert.pem: No such file or directory
cp: setattrlist: /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: chown: /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: chmod: /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: chflags: /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01/share/ca-certificates: unable to copy ACL to /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: setattrlist: /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: chown: /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: chmod: /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: chflags: /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01/share: unable to copy ACL to /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: setattrlist: /usr/local/Cellar/ca-certificates/./2022-02-01: No such file or directory
cp: chown: /usr/local/Cellar/ca-certificates/./2022-02-01: No such file or directory
cp: chmod: /usr/local/Cellar/ca-certificates/./2022-02-01: No such file or directory
cp: chflags: /usr/local/Cellar/ca-certificates/./2022-02-01: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01: unable to copy ACL to /usr/local/Cellar/ca-certificates/./2022-02-01: Permission denied
cp: setattrlist: /usr/local/Cellar/ca-certificates/.: Permission denied
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/.: unable to copy ACL to /usr/local/Cellar/ca-certificates/.: Bad file descriptor

我尝试更新和升级brew,但收到相同的错误文件描述符错误

Why am I always getting bad file descriptor error, everytime I try to install any application using homebrew

Error Logs:-

Error: Failure while executing; `cp -pR /private/tmp/d20220226-3322-2zsx5k/ca-certificates/. /usr/local/Cellar/ca-certificates` exited with 1. Here's the output:
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/.: unable to copy extended attributes to /usr/local/Cellar/ca-certificates/.: Bad file descriptor
cp: /usr/local/Cellar/ca-certificates/./2022-02-01: Permission denied
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01: unable to copy extended attributes to /usr/local/Cellar/ca-certificates/./2022-02-01: Permission denied
cp: /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01/.brew: unable to copy extended attributes to /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: /usr/local/Cellar/ca-certificates/./2022-02-01/.brew/ca-certificates.rb: No such file or directory
cp: setattrlist: /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: chown: /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: chmod: /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: chflags: /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01/.brew: unable to copy ACL to /usr/local/Cellar/ca-certificates/./2022-02-01/.brew: No such file or directory
cp: /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01/share: unable to copy extended attributes to /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01/share/ca-certificates: unable to copy extended attributes to /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates/cacert.pem: No such file or directory
cp: setattrlist: /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: chown: /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: chmod: /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: chflags: /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01/share/ca-certificates: unable to copy ACL to /usr/local/Cellar/ca-certificates/./2022-02-01/share/ca-certificates: No such file or directory
cp: setattrlist: /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: chown: /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: chmod: /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: chflags: /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01/share: unable to copy ACL to /usr/local/Cellar/ca-certificates/./2022-02-01/share: No such file or directory
cp: setattrlist: /usr/local/Cellar/ca-certificates/./2022-02-01: No such file or directory
cp: chown: /usr/local/Cellar/ca-certificates/./2022-02-01: No such file or directory
cp: chmod: /usr/local/Cellar/ca-certificates/./2022-02-01: No such file or directory
cp: chflags: /usr/local/Cellar/ca-certificates/./2022-02-01: No such file or directory
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/./2022-02-01: unable to copy ACL to /usr/local/Cellar/ca-certificates/./2022-02-01: Permission denied
cp: setattrlist: /usr/local/Cellar/ca-certificates/.: Permission denied
cp: /private/tmp/d20220226-3322-2zsx5k/ca-certificates/.: unable to copy ACL to /usr/local/Cellar/ca-certificates/.: Bad file descriptor

I tried to update and upgrade brew, but getting same error of Bad File Descriptor

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

樱娆 2025-01-17 04:53:49
sudo chown -R ${USER}:staff /usr/local/Cellar/

为我修好了

sudo chown -R ${USER}:staff /usr/local/Cellar/

Fixed for me

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文