我試圖將當前節點版本更新到最新版本。ubuntu12中的node.js版本更新
我的當前節點版本
[email protected]:~$ node -v
v0.6.12
所以我嘗試以下對後,更新
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
命令我用
sudo apt-get update
它輸出以下......
Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://extras.ubuntu.com precise Release.gpg
Hit http://dl.google.com stable/main amd64 Packages
Hit http://ppa.launchpad.net precise Release
Hit http://downloads-distro.mongodb.org dist Release.gpg
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://extras.ubuntu.com precise Release
Hit http://dl.google.com stable/main i386 Packages
Ign http://dl.google.com stable/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://extras.ubuntu.com precise/main Sources
Reading package lists... Done
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
我再次運行sudo apt-get update
再次輸出相同的abow消息
我怎樣才能解決這個問題。
對於重複的來源問題,檢查安裝的版本,請http://askubuntu.com/questions/183007/how-to-fix- duplicate-sources-list-entry-warning,但它並不是真的不會更新Node的原因。 – Nenotlep