1
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.

I have tried all the possible solutions provided in other answers and still, the problem exists. I am using ubuntu 20.04. I am new to Linux environment, so I don't have much knowledge in Linux systems and terminology.

I was trying to install node js and npm. I faced many problems with the apt-get.

problems:

  1. npm command was not found after installing using apt-get

    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. when I tried to install sudo apt-get install python-software-properties

    I got,

     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. when I tried to install npm separately using 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.
    
13
  • Welcome! Can you please refine your question and information provided? What command actually led to the first output you provided? What were the other errors / warnings prior to that? It is marked as Err:37. I'm not sure the Icons package is what failed you, but I can state that I just manually downloaded the archive file and the hashes were correct according to the release file when I calculated them. Something in you OS / network must have changed the file.
    – Pizza
    Jul 10, 2020 at 15:48
  • Also: have you tried to manually install node-gyp? Have you manually tried to change / reinstall python in the past? Have you tried to browse with your browser to the repository and manually download and install your packages?
    – Pizza
    Jul 10, 2020 at 15:49
  • Actually the icons 64x64 package caused the error at line 37 Jul 12, 2020 at 9:11
  • 1
    I figured out the problem...it was my internet connection...when I connected to my mobile data..it was flawless.... idk what was the problem with my internet.. Jul 13, 2020 at 17:43
  • 1
    It is good practice, as now you've just learnt why hash sums are important: aside of package integrity check, your package manager also makes sure the package is not corrupt. If you found your solution, consider self answering your question and accepting your answer so the question will tag as solved for other users.
    – Pizza
    Jul 14, 2020 at 7:29

1 Answer 1

0

I figured out the problem...it was my internet connection...when I connected to my mobile data(or any other internet service)..it was flawless...

If the hash sum error persists after trying many solutions try changing your internet connection. I believe it applies some network filters which changes the hash.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .