作者:泉州联合网2534 | 来源:互联网 | 2023-09-11 19:40
用mac安装lrzsz
安装命令:
$ brew installlrzsz安装时报错误如下:
更新家庭brew . error : notavalidref : refs/remotes/origin/master error 3360 noavailableformulawiththename ' lrz SZ . error : nopreviouslydeletedformulafound .==searchingforsimilarlynamedformulae.error : nosimilarlynamedformulaedformulaeforeflaeforeforefate
修复家庭浏览器
修改清华源命令:
CD'$(brew--repo ) ) gitremoteset-URL origin 3359 mirrors.tuna.Tsinghua.edu.cn/git/home brew/brew.git CD '
运行上述命令,继续报告错误。
$ gitremoteset-URL origin https://mirrors.ustc.edu.cn/brew.gitxcrun : error : invalidactivedeveloperpath (/librarara missingxcrunat : /库/开发人员/命令行工具/usr /聪明的蚂蚁/xcrun
根据上述错误报告,git运行需要xcode插件,然后运行以下命令:
xode-select-- -安装
等待1~2min后,插件安装完成,重新执行修正源为清华源的指令,无错误。
运行brew更新
运行brew update命令并报告错误:
$ brewupdateerror 3360 notavalidref : refs/remotes/origin/master fatal 3360 couldnotresolveheadtoarevisionalreadyup-to
如果找到上述错误解决方案并运行brew update --verbose,则结果如下:
$ brew update-- verbosecheckingifweneedtofetch/usr/local/home brew . checkingifweneedtofetch/usr/local/home brew/home brew . fetching/usr/local/home brew/library/taps/home brew/home brew home brew . branch ' master ' setuptotrackremotebranch ' master ' from ' origin '.switchedtoandresetbranch ' master master '.switchedtoandresetbranch ' stable ' currentbranchstableisuptodate.updating/usr/local/home brew/librew home bbrew
根据以上错误报告可知,错误报告路径为/usr/local/home brew/library/taps/home brew/home brew-core
打开路径:
CD/usr/local/home brew/library/taps/home brew/home brew-core $ ls-al total0drwxr-xr-x3work work 9672100336021
仅找到了一个. git文件
在此路径下运行:
$ git fetch-- prune origin $ git pull-- rebaseoriginmasterfrom 3359 mirrors.tuna.Tsinghua.edu.cn/git/home brew/horor
再次执行brew update,更新成功。
$ brew更新already up-to-date。