当我试图更新CentOS7时,我得到了一个看上去像是节点问题的信息。可能是内核,这是我感到困惑的时候。
[root@orcacomputers orca]# yum install npm
Package 1:npm-3.10.10-1.6.17.1.1.el7.x86_64 already installed and latest version Nothing to do好吧,那好吧
sudo yum update
Error: Package: 1:npm-3.10.10-1.6.17.1.1.el7.x86_64
(@epel)
Requires: nodejs = 1:6.17.1-1.el7
Removing: 1:nodejs-6.17.1-1.el7.x86_64 (@epel)
nodejs = 1:6.17.1-1.el7
Updated By: 2:nodejs-12.20.0-1nodesource.x86_64 (nodesource)
nodejs = 2:12.20.0-1nodesource
Available: 2:nodejs-12.0.0-1nodesource.x86_64 (nodesource)
nodejs = 2:12.0.0-1nodesource
Available: 2:nodejs-12.1.0-1nodesource.x86_64 (nodesource)
nodejs = 2:12.1.0-1nodesource
Available: 2:nodejs-12.2.0-1nodesource.x86_64 (nodesource)
nodejs = 2:12.2.0-1nodesource
Available: 2:nodejs-12.3.0-1nodesource.x86_64 (nodesource)我确实运行了sudo yum update --skip-broken,并且能够更新和重新启动。但是,这个节点源错误仍然存在。
我刚打开雷鸟,在一封电子邮件中看到这个cron作业错误。需要nodejs
/etc/cron.daily/0yum-daily.cron:
Failed to check for updates with the following error message:
Failed to build transaction: 1:npm-3.10.10-1.6.17.1.1.el7.x86_64 requires nodejs = 1:6.17.1-1.el7
/etc/cron.daily/yum.cron:
Error: Package: 1:npm-3.10.10-1.6.17.1.1.el7.x86_64 (@epel)
Requires: nodejs = 1:6.17.1-1.el7
Removing: 1:nodejs-6.17.1-1.el7.x86_64 (@epel)
nodejs = 1:6.17.1-1.el7
[orca@orcacomputers public_html]$ node -v
v6.17.1发布于 2020-12-17 02:51:24
我卸载了npm,并且能够更新centos。
https://unix.stackexchange.com/questions/624676
复制相似问题