ubuntu安裝nodejs,執行sudo apt-get update報錯的解決辦法。錯誤信息: 倉庫 “http://ppa.launchpad.net/chris-lea/node.js/ubuntu focal Release” 沒有 Release 文件


在ubuntu里安裝nodejs時,按順序執行以下命令:

sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update

執行第二句 sudo-apt-get update報下面的錯誤:

倉庫 “http://ppa.launchpad.net/chris-lea/node.js/ubuntu focal Release” 沒有 Release 文件

解決辦法,刪除chris-lea/node.js 這個ppa文件,刪除命令

sudo add-apt-repository --remove ppa:/chris-lea/node.js

然后重新執行 sudo apt-get update ,更新成功。

 

注意,“--remove ppa:/ ”后面跟提示錯誤的文件名,如果錯誤是 倉庫 “http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu focal Release” 沒有 Release 文件,

那么刪除命令要下面這樣寫:

sudo add-apt-repository --remove ppa:/webupd8team/sublime-text-3

需要根據出錯的文件名來寫命令。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM