无法安装 NodeJS 旧版

无法安装 NodeJS 旧版

我正在使用 Ubuntu 15.10。我尝试安装 NodeJS 旧版,但出现此错误

The following packages have unmet dependencies:
 nodejs-legacy : Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be 
 installed

E: Unable to correct problems, you have held broken packages.

答案1

现在是 2019 年底 - 看来 nodejs-legacy 已经过时了。

Reading package lists... Done                                                                                                                                                                                                                                                                                                            
│Building dependency tree                                                                                                                                                                                                                                                     
│Reading state information... Done                                                                                                                                                                                                                                                                                 
│Package nodejs-legacy is not available, but is referred to by another 
package.                                                                                                                                                                                                                                                           
│This may mean that the package is missing, has been obsoleted, or                                                                                                                                                                                                                                                                        
│is only available from another source                                                                                                                                                                                                                                                                                                    
│However the following packages replace it:                                                                                                                                                                                                                                                                             
│  nodejs                                                                                                                                                                                                                                                     

│E: Package 'nodejs-legacy' has no installation candidate

相关内容