Установите Node.js в Ubuntu

Я пытаюсь установить Node.js в Ubuntu 12.10, но терминал показывает мне ошибку об утерянных пакетах. Я пытался с этим:

sudo apt-get install python-software-properties 
sudo add-apt-repository ppa:chris-lea/node.js 
sudo apt-get update 
sudo apt-get install nodejs npm

Но когда я дошел до последней строчкиsudo apt-get install nodejs npm показывает эту ошибку:

Failed to install some packages. This may mean that
you requested an impossible situation or if you are using the distribution
distribution that some required packages have not yet been created or been
been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nodejs: Conflicts: npm
E: Failed to correct problems, you have held broken packages.

Затем я удалилppa:chris-lea/node.js и я пробовал второй вариант:

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

Та же ошибка, терминал говоритnpm is the latest version но также показывает мне текст, который я показал в верхней части. Я думаю проблема в томppa:chris-lea/node.js но я нене знаю, как решить это.

Ответы на вопрос(15)

Ваш ответ на вопрос