qubes 4 - sudo apt update in whonix-ws-14 returns errors

I made a fresh install of whonix-14 to qubes 4. After install successfully finished
user@host:~$ sudo apt update

On the first try I was asked during the process, if I agree to install the unverified apps. I did not of course. It was a quite a long list (cant be repeated now, see below error). Tried to switch to bridges with the same output.

After I initiated the sudo apt update with following output (sudo apt update && sudo apt dist-upgrade returns the same output). It basically prevents me from using the new versions of the apps (I cant put in more links than 5, so it is shortened):

user@host:~$ sudo apt update

Err:26 http://ftp.us.debian.org/debian stretch/main amd64 Contents (deb)
Hash Sum mismatch
Hashes of expected file:

  • Filesize:458159900 [weak]
  • SHA256:fa40630d28629019a1851b70a5314f6a94e72fb9c1c6f61f4364fc78b942c87e
  • MD5Sum:b01bc430892695ddaa164310200e0dc8 [weak]
    Hashes of received file:
  • SHA256:1e63fa3f9ee1381114f549a01bb4b49c07a168e1f1745f40c4f88bc2df6c19d4
  • MD5Sum:bcc8c1982bf2c35775444460cd825696 [weak]
  • Filesize:55131985 [weak]
    Release file created at: Sat, 14 Jul 2018 09:43:35 +0000
    .
    .
    .
    Err:29 tor+http://vwakviie2ienjx6t.onion/debian stretch/main amd64 Contents (deb)
    Hash Sum mismatch
    Hashes of expected file:
  • Filesize:458159900 [weak]
  • SHA256:fa40630d28629019a1851b70a5314f6a94e72fb9c1c6f61f4364fc78b942c87e
  • MD5Sum:b01bc430892695ddaa164310200e0dc8 [weak]
    Hashes of received file:
  • SHA256:1e63fa3f9ee1381114f549a01bb4b49c07a168e1f1745f40c4f88bc2df6c19d4
  • MD5Sum:bcc8c1982bf2c35775444460cd825696 [weak]
  • Filesize:55131985 [weak]
    Release file created at: Sat, 14 Jul 2018 09:43:35 +0000
    .
    .
    Err:21 tor+http://sgvtcaew4bxjd7ln.onion stretch/updates/contrib Translation-en
    BZ2_bzread: /var/lib/apt/lists/partial/sgvtcaew4bxjd7ln.onion_dists_stretch_updates_contrib_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
    Err:16 http://security.debian.org stretch/updates/contrib Translation-en
    BZ2_bzread: /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_contrib_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
    .
    .
    E: Failed to fetch http://security.debian.org/dists/stretch/updates/contrib/i18n/Translation-en BZ2_bzread: /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_contrib_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
    E: Failed to fetch tor+http://sgvtcaew4bxjd7ln.onion/dists/stretch/updates/contrib/i18n/Translation-en BZ2_bzread: /var/lib/apt/lists/partial/sgvtcaew4bxjd7ln.onion_dists_stretch_updates_contrib_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
    E: Failed to fetch store:/var/lib/apt/lists/partial/ftp.us.debian.org_debian_dists_stretch_main_Contents-amd64.gz Hash Sum mismatch
    Hashes of expected file:
    - Filesize:458159900 [weak]
    - SHA256:fa40630d28629019a1851b70a5314f6a94e72fb9c1c6f61f4364fc78b942c87e
    - MD5Sum:b01bc430892695ddaa164310200e0dc8 [weak]
    Hashes of received file:
    - SHA256:1e63fa3f9ee1381114f549a01bb4b49c07a168e1f1745f40c4f88bc2df6c19d4
    - MD5Sum:bcc8c1982bf2c35775444460cd825696 [weak]
    - Filesize:55131985 [weak]
    Release file created at: Sat, 14 Jul 2018 09:43:35 +0000
    E: Failed to fetch store:/var/lib/apt/lists/partial/vwakviie2ienjx6t.onion_debian_dists_stretch_main_Contents-amd64.gz Hash Sum mismatch
    Hashes of expected file:
    - Filesize:458159900 [weak]
    - SHA256:fa40630d28629019a1851b70a5314f6a94e72fb9c1c6f61f4364fc78b942c87e
    - MD5Sum:b01bc430892695ddaa164310200e0dc8 [weak]
    Hashes of received file:
    - SHA256:1e63fa3f9ee1381114f549a01bb4b49c07a168e1f1745f40c4f88bc2df6c19d4
    - MD5Sum:bcc8c1982bf2c35775444460cd825696 [weak]
    - Filesize:55131985 [weak]
    Release file created at: Sat, 14 Jul 2018 09:43:35 +0000
    E: Some index files failed to download. They have been ignored, or old ones used instead.

Any ideas how to understand and solve it much appreciated. Thank you!

Not sure what you are saying?

Wait a while, change Tor circuit and try again.

sudo apt-get update && sudo apt-get dist-upgrade

1 Like