Estou tentando instalar o nodejs-legacy e ele continua falhando [duplicado]

0

Não tenho idéia do problema, mas continuo tentando instalar o nodejs-legacy executando o sudo apt-get install, mas ele continua falhando. Aqui está toda a saída quando tento fazer o comando.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ax25-node libax25 libc-ares2 libv8-3.14.5 openbsd-inetd
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  nodejs-legacy
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0 B/15.4 kB of archives.
After this operation, 119 kB of additional disk space will be used.
(Reading database ... 198807 files and directories currently installed.)
Unpacking nodejs-legacy (from .../nodejs-legacy_0.10.15~dfsg1-4_all.deb) ...
dpkg: error processing /var/cache/apt/archives/nodejs-legacy_0.10.15~dfsg1-4_all.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/node.1.gz', which is also in package nodejs 0.10.24-1chl1~saucy1
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/nodejs-legacy_0.10.15~dfsg1-4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Solução:

Então eu encontrei a resposta para minha pergunta em outro tópico. Eu tive que usar sudo dpkg -r nodejs-legacy e sudo apt-get -f install .

Então, crédito para onde o crédito é devido, aqui está o link da resposta que me explicou o que eu tinha que fazer.

link

    
por Tom 20.01.2014 / 02:59

1 resposta

3

Tente remover o pacote nodejs instalado anteriormente e instale o pacote nodejs-legacy .

sudo dpkg -r nodejs
sudo apt-get install nodejs-legacy
    
por Avinash Raj 20.01.2014 / 03:10