当我尝试像这样安装 npm 时
sudo yum install npm
我收到此错误:
Fehler: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:
1. You have an upgrade for v8 which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of v8 of the
different architecture. If you exclude the bad architecture
yum will tell you what the root cause is (which package
requires what). You can try redoing the upgrade with
--exclude v8.otherarch ... this should give you an error
message showing the root cause of the problem.
2. You have multiple architectures of v8 installed, but
yum can only see an upgrade for one of those architectures.
If you don't want/need both architectures anymore then you
can remove the one with the missing update and everything
will work.
3. You have duplicate versions of v8 installed already.
You can use "yum check" to get yum show these errors.
...you can also use --setopt=protected_multilib=false to remove
this checking, however this is almost never the correct thing to
do as something else is very likely to go wrong (often causing
much more problems).
Geschützte Multilib-Versionen: 1:v8-3.17.6.14-2.fc19.x86_64 != 1:v8-3.14.5.10-2.fc19.i686
我运行的是 Fedora 19 x86_64。
有这样的日志: https://pastee.org/wetpc
答案1
在我看来,您已经安装了早期版本v8
(您的pastebin显示:“---> Package v8.x86_64 1:3.14.5.10-2.fc19 will be update”),无法通过 yum 正确更新(因为一些其他依赖项)。
您可以通过以下方式检查:yum list installed | grep v8
然后卸载 v8:(yum remove v8*
这可能会导致删除所有依赖它的软件包。如果是这样,只需在 npm 安装后重新安装它们即可。)
之后你应该能够安装 npm
yum install npm
祝你好运。
答案2
您还可以这样做:
yum list installed v8
...为了解决这个问题,这可能会起作用:
yum distro-sync v8