小编Ale*_*lex的帖子

Ubuntu 20.04 我应该将 libssl1.1 降级到 libssl1.0 来安装 npm 吗?

我正在尝试安装 npm,我找到了这个解决方案。我跑aptitude install npm了,建议的解决方案是

The following packages have unmet dependencies:
 libssl-dev : Depends: libssl1.1 (= 1.1.1f-1ubuntu2) 
but 1.1.1g-1+ubuntu18.04.1+deb.sury.org+1 is installed

     Keep the following packages at their current version:
1)     libnode-dev [Not Installed]                        
2)     libssl-dev [Not Installed]                         
3)     node-gyp [Not Installed]                           
4)     npm [Not Installed]                                



Accept this solution? [Y/n/q/?] 
Run Code Online (Sandbox Code Playgroud)

基本上是建议降级,但是如果我将 libssl1.1 降级到 libssl1.0 会对我的系统产生什么影响?

编辑:将 Ubuntu 18.04 升级到 20.04 后导致此问题。Dan Scally的解决方案有效,我还在启动板的评论中提供了另一个选项,其中针对我的特定情况更详细一些。

lts package-management nodejs npm 20.04

2
推荐指数
2
解决办法
6590
查看次数

标签 统计

20.04 ×1

lts ×1

nodejs ×1

npm ×1

package-management ×1