2016-10-22 138 views
0

上安裝nodejs 4. *我一直在尋找一些解釋如何在Ubuntu 14.04上安裝nodejs 4. *的網頁,但它並沒有安裝,並告訴我我已經有了最新版本:如何在Ubuntu 14.04

$ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - 

## Installing the NodeSource Node.js v4.x LTS Argon repo... 


## Populating apt-get cache... 

+ apt-get update 
Ign http://archive.canonical.com precise InRelease 
Ign http://extras.ubuntu.com trusty 
. 
. 
.   
Ign http://jp.archive.ubuntu.com trusty/restricted Translation-en_US   
Ign http://jp.archive.ubuntu.com trusty/universe Translation-en_US    
W: Failed to fetch http://dl.google.com/linux/webdesigner/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file) 

E: Some index files failed to download. They have been ignored, or old ones used instead. 
Error executing command, exiting 

$ sudo apt-get install nodejs 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
nodejs is already the newest version. 
0 upgraded, 0 newly installed, 0 to remove and 173 not upgraded. 

$ node --version 
v0.10.25 

有一個在curl命令的最後一個錯誤,但我不知道這是否」有關。我遵循本指南 - https://nodejs.org/en/download/package-manager/ - 但其他網頁似乎是相同的。怎麼了?

+0

幾個月前,谷歌瀏覽器也出現了同樣的問題:http://askubuntu.com/questions/743814/unable-to-find-expected-entry-main-binary-i386-packages-chrome也許你可以在那裏找到一些信息。 – nicovank

+0

這個答案來自Hari Krisnan幫助 - http://stackoverflow.com/questions/34974535/install-latest-nodejs-version-in-ubuntu-14-04 – Martyn

回答