章節連結
當使用 brew update 指令出現 remote: Repository not found 時,那就要懷疑可能是套件遠端網址失效,或是根本下架了。由於這個錯誤會阻擋後續正常的更新運行,將這個失效的套件移除是比較好的。
內容
1. 先輸入 brew tap 來查看當前列表的第三方倉庫 ( tap: Third-Party Repositories )
2. 接著看列出的內容,有無和錯誤訊息中一樣失效的來源。
|
1 2 3 |
remote: Repository not found. fatal: repository 'https://github.com/robotsandpencils/homebrew-made/' not found Error: Fetching /opt/homebrew/Library/Taps/robotsandpencils/homebrew-made failed! |
以上面例子為例,就是 robotsandpencils 這個來源已失效。
3. 透過 brew list –formula –full-name | grep robotsandpencils 為例,有回傳一個路徑:
robotsandpencils/made/xcodes 那就代表此套件是因這個相依套件安裝的,所以你就直接移出 robotsandpencils/made/xcodes 並且 brew untap robotsandpencils/made 即可
4. 重新執行 brew update 即可正常更新
按讚加入粉絲團
![[筆記] Homebrew 執行 brew update 指令出現 Repository not found 錯誤怎麼修 [筆記] Homebrew 執行 brew update 指令出現 Repository not found 錯誤怎麼修](https://smlpoints.com/wp-content/uploads/index-of-learning-codes-programming-1.jpg)