【问题标题】:Can't update nodejs on Centos 7 with webmin无法使用 webmin 在 Centos 7 上更新 nodejs
【发布时间】:2020-07-27 21:43:33
【问题描述】:

我正在使用 Webmin 运行 Centos 7 服务器,我在其中安装了带有 Node-source 存储库的 Nodejs。

从上周开始,我无法更新到 nodejs-10.22.0-1nodesource.x86,因为这似乎是一个校验和问题:

    Downloading packages:
    Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
    nodejs-10.22.0-1nodesource.x86 FAILED    MB/s |  18 MB  00:00:00 ETA 
    https://rpm.nodesource.com/pub_10.x/el/7/x86_64/nodejs-10.22.0-1nodesource.x86_64.rpm:
    [Errno -1] Le paquet ne correspond pas au téléchargement attendu. 
    Suggestion : exécutez yum --enablerepo=nodesource clean metadata
    Essai d'un autre miroir.
    
    Error downloading packages:
      2:nodejs-10.22.0-1nodesource.x86_64: [Errno 256] No more mirrors to try.

我尝试使用yum --enablerepo=nodesource clean metadata 或yum clean all 清理缓存,但没有任何效果。

有没有人也遇到过这个错误?

这是使用的 yum 仓库:

    [nodesource]
    name=Node.js Packages for Enterprise Linux 7 - $basearch
    baseurl=https://rpm.nodesource.com/pub_10.x/el/7/$basearch
    failovermethod=priority
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL

【问题讨论】:

    标签: node.js centos7


    【解决方案1】:

    不确定这是否为时已晚,但我也遇到了问题,发现首先删除 nodejs 和 npm 有帮助。这些是我使用的命令;

    sudo yum install -y gcc-c++ make curl
    curl -sL https://rpm.nodesource.com/setup_14.x | sudo -E bash -
    sudo yum remove -y nodejs npm
    sudo yum clean all
    sudo yum list available nodejs
    sudo yum install -y nodejs
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-12
      • 2012-03-04
      • 1970-01-01
      • 2018-11-08
      • 1970-01-01
      • 2015-11-04
      相关资源
      最近更新 更多