AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1257935
Accepted
Bala Ganesh
Bala Ganesh
Asked: 2020-07-11 03:04:11 +0800 CST2020-07-11 03:04:11 +0800 CST 2020-07-11 03:04:11 +0800 CST

安装节点 js 和 npm 时出现哈希和不匹配错误

  • 772
Err:37 http://archive.ubuntu.com/ubuntu focal/main DEP-11 64x64 Icons
  Hash Sum mismatch
  Hashes of expected file:
   - Filesize:162899 [weak]
   - SHA256:9f4ffba2a05dc2fb76857d4b30ed55724fe6e2999341694f2b86940ab067a44b
   - SHA1:f470f9b518e5cd213a66334f3a5e3b671c4dbe61 [weak]
   - MD5Sum:504d24e4682a64a0559d13f7cf1e5ca6 [weak]
  Hashes of received file:
   - SHA256:0d49809352ede8d21c648de700d0d16fe10c2394064b1bc457331e0565419e3a
   - SHA1:fd8bebb3573711be3d667718e13250cd7ae6b629 [weak]
   - MD5Sum:747cd4f065cae49a271e9b46cc88c6d6 [weak]
   - Filesize:162899 [weak]
  Last modification reported: Mon, 20 Apr 2020 09:35:48 +0000
  Release file created at: Thu, 23 Apr 2020 17:33:17 +0000

.
.
.
.
.
.
.

 E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/main/dep11/by-hash/SHA256/9f4ffba2a05dc2fb76857d4b30ed55724fe6e2999341694f2b86940ab067a44b  Hash Sum mismatch
       Hashes of expected file:
        - Filesize:162899 [weak]
        - SHA256:9f4ffba2a05dc2fb76857d4b30ed55724fe6e2999341694f2b86940ab067a44b
        - SHA1:f470f9b518e5cd213a66334f3a5e3b671c4dbe61 [weak]
        - MD5Sum:504d24e4682a64a0559d13f7cf1e5ca6 [weak]
       Hashes of received file:
        - SHA256:0d49809352ede8d21c648de700d0d16fe10c2394064b1bc457331e0565419e3a
        - SHA1:fd8bebb3573711be3d667718e13250cd7ae6b629 [weak]
        - MD5Sum:747cd4f065cae49a271e9b46cc88c6d6 [weak]
        - Filesize:162899 [weak]
       Last modification reported: Mon, 20 Apr 2020 09:35:48 +0000
       Release file created at: Thu, 23 Apr 2020 17:33:17 +0000
    E: Some index files failed to download. They have been ignored, or old ones used instead.

我已经尝试了其他答案中提供的所有可能的解决方案,但问题仍然存在。我正在使用 ubuntu 20.04。我是 Linux 环境的新手,所以我对 Linux 系统和术语了解不多。

我试图安装节点 js 和 npm。我在使用 apt-get 时遇到了很多问题。

问题:

  1. 使用 apt-get 安装后找不到 npm 命令

    Command 'npm' not found, did you mean:
    
      command 'apm' from snap atom (1.48.0)
      command 'nsm' from snap nift (2.3.10)
    
    See 'snap info <snapname>' for additional versions.
    
  2. 当我尝试安装sudo apt-get install python-software-properties

    我有,

     Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        Some packages could not be installed. This may mean that you have
        requested an impossible situation or if you are using the unstable
        distribution that some required packages have not yet been created
        or been moved out of Incoming.
        The following information may help to resolve the situation:
    
        The following packages have unmet dependencies:
         python-software-properties : Depends: python (>= 2.7) but it is not going to be installed
                                      Depends: python (< 2.8) but it is not going to be installed
                                      Depends: python-apt (>= 0.6.20ubuntu16) but it is not going to be installed
                                      Depends: python-pycurl but it is not going to be installed
        E: Unable to correct problems, you have held broken packages.
    
  3. 当我尝试使用单独安装 npm 时apt-get npm

       The following packages have unmet dependencies:
         npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed
        E: Unable to correct problems, you have held broken packages.
    
apt nodejs npm 20.04
  • 1 1 个回答
  • 751 Views

1 个回答

  • Voted
  1. Best Answer
    Bala Ganesh
    2020-07-16T05:58:11+08:002020-07-16T05:58:11+08:00

    我发现了问题......这是我的互联网连接......当我连接到我的移动数据(或任何其他互联网服务)时......它完美无瑕......

    如果在尝试多种解决方案后哈希和错误仍然存​​在,请尝试更改您的互联网连接。我相信它应用了一些改变哈希的网络过滤器。

    • 0

相关问题

  • 如何编写 shell 脚本来安装应用程序列表?

  • 如何查看存档中可用的软件包的所有版本?

  • 是否可以说出我安装的哪些软件包不在原版安装中?

  • 如何删除 PPA?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve