node.js - ubuntu12 上 node.js 中的版本更新

标签 node.js ubuntu

我正在尝试将我当前的 Node 版本更新为最新版本。

我当前的 Node 版本

udmin@WS1A079:~$ 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 消息

我怎么解决这个问题。

最佳答案

尝试

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

关于node.js - ubuntu12 上 node.js 中的版本更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19087584/

相关文章:

node.js - 如何在 knex 中使用嵌套选择查询

node.js - 错误!请求的依赖类型无效 : alias

docker - 无法创建 HyperLedger 网络

linux - 使用 Play Framework 在 Linux 上本地进行 HTTPS

ubuntu - libext2fs 代码不工作

node.js - 如何将 React 应用程序部署到 Azure 应用服务

node.js - 无法使用自定义 Materialise Sass 文件和 GruntJs 覆盖 node_modules 中的 Sass 变量

javascript - Node.js MySQL 数据库连接 - 超时 (ETIMEDOUT)

database - 通过 bash 断开 pgadmin 的连接

python-2.7 - 是否可以在 Ubuntu Linux 上使用 win32gui/pywin32?