Ubuntu 18.04 Hash Sum Mismatch

I am attempting to install SAB on a clean install of Kubuntu 18.04 (same engine as Ubuntu 18.04).
When I do a sudo apt-get update after I

  1. Downloaded and run sil-repository.deb
  2. Added sil to the sources list at etc/apt/sources.list. It reads: deb http://packages.sil.org/ubuntu bionic main
  3. Ran sudo wget http://packages.sil.org/sil.gpg -O- | sudo apt-key add -

At that point I receive:
Err:8 http://packages.sil.org/ubuntu bionic/main amd64 DEP-11 Metadata
Hash Sum mismatch
Hashes of expected file:

  • Filesize:4235 [weak]
  • SHA256:1d02211d57f4845bb0b32fed81502edd04e9607c9e2db49b7c2d3719424864d9
  • SHA1:8474b17ba2a619d5213e82ecd5ac3f8d42496c3d [weak]
  • MD5Sum:ff9d8ce4c4e4d76dd09fd2612a2238a5 [weak]
    Hashes of received file:
  • SHA256:9b134cfb2455ab5ce6c31fa7c4be5cc7c26a29937c169a54c07b8eefd45f96d6
  • SHA1:d46f8db8469f66d2f84c6481489f161846090d0a [weak]
  • MD5Sum:d09efac51cbc2b0213a8060d87018892 [weak]
  • Filesize:9205 [weak]
    Last modification reported: Tue, 17 Jul 2018 07:39:03 +0000
    Release file created at: Tue, 24 Jul 2018 13:46:22 +0000
    Err:9 http://packages.sil.org/ubuntu bionic/main DEP-11 64x64 Icons

Fetched 270 kB in 11s (24.8 kB/s)
Reading package lists… Done
E: Failed to fetch store:/var/lib/apt/lists/partial/packages.sil.org_ubuntu_dists_bionic_main_dep11_Components-amd64.yml.xz Hash Sum mismatch
Hashes of expected file:

  • Filesize:4235 [weak]
  • SHA256:1d02211d57f4845bb0b32fed81502edd04e9607c9e2db49b7c2d3719424864d9
  • SHA1:8474b17ba2a619d5213e82ecd5ac3f8d42496c3d [weak]
  • MD5Sum:ff9d8ce4c4e4d76dd09fd2612a2238a5 [weak]
    Hashes of received file:
  • SHA256:9b134cfb2455ab5ce6c31fa7c4be5cc7c26a29937c169a54c07b8eefd45f96d6
  • SHA1:d46f8db8469f66d2f84c6481489f161846090d0a [weak]
  • MD5Sum:d09efac51cbc2b0213a8060d87018892 [weak]
  • Filesize:9205 [weak]
    Last modification reported: Tue, 17 Jul 2018 07:39:03 +0000
    Release file created at: Tue, 24 Jul 2018 13:46:22 +0000
    E: Failed to fetch store:/var/lib/apt/lists/partial/packages.sil.org_ubuntu_dists_bionic_main_dep11_icons-64x64.tar.gz

By the way, when I run sudo update-alternatives --config java I get the following:
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1101 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1101 manual mode

  • 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode

I have no idea of how to solve the hash problem. Any help would be greatly appreciated.
Ray

Looking through what is in the repositories I don’t see SAB in Bionic like it is in Xenial and Trusty. Though Aeneas is there.
Compare: http://packages.sil.org/ubuntu/dists/xenial/main/source/Sources
to: http://packages.sil.org/ubuntu/dists/bionic/main/source/Sources

The next release due very soon may update that.

Thanks Mcquayi,
Is there anything I can do to obtain this package other than wait for the Bionic update?

Ray

Hi,
I have installed SAB 4.5 on Ubuntu bionic - Not sure about your problem - suggest checking the sources list etc. SAB is available - see the following packages link:

http://packages.sil.org/ubuntu/dists/bionic/main/binary-amd64/Packages

Scroll down to the SAB package detail…

Package: scripture-app-builder
Version: 4.5+ubuntu1+bionic1
Architecture: amd64
Maintainer: Chris Hubbard chris_hubbard@sil.org
Installed-Size: 232320
Depends: python-aeneas, openjdk-8-jre, openjdk-8-jdk, xterm
Recommends: android-sdk-installer (>= 1.3)
Homepage: http://software.sil.org/scriptureappbuilder
Priority: optional
Section: misc
Filename: pool/main/s/scripture-app-builder/scripture-app-builder_4.5+ubuntu1+bionic1_amd64.deb
Size: 168822256
SHA256: 6e8f8e6b0ab4bbaf0977f7f946ea552aa185be8d5688deec0c072d0191cceb8e
SHA1: 731599a1a4d3f06d5c69312765ae0d778a9dc5b0
MD5sum: cbd0a51b683649aa45dcdd1fb1e2e6a5

Cheers

Laurie

Also note that SAB 4.5 requires OPENJDK 8 - bionic will install OPENJDK 11 by default

SAB 4.5 for Ubuntu 18.04 was released on Apr 16. We test with straight Ubuntu / Gnome (or Unity) and do not officially support other variants (i.e. you may have problems and we don’t have the resources to track down issues). I have known of problems on KDE-based systems.

As for the DEP-11 Metadata problem, it has been reported today on the LSDev Slack #linux channel. I added a comment on the thread with a link to this post. I will try to watch for changes on that slack channel and report back here.

I also just setup a VM with 18.04.1 and verified this issue.

Thanks for reporting!

Chris

This issue has been reported by multiple people in different forums. We are still waiting to hear back from those who are maintaining the Linux repo.

Here was a work-around reported on the LinuxUser email distribution list:

I copied the SIL repository files out of /var/lib/apt/partial to /var/lib/apt. I figured it wouldn’t hurt anything since it was just the icon files and dep11. Then ran an update and it didn’t complain anymore. Installed paratext and it installed fine.

I guess it would be easy enough to test again by deleting the sil repository files from /var/lib/apt and doing an update, but my internet is horrible and I wouldn’t know who to report it to anyways if it was still broke.

Thank you all - mcquayi, laurief, and Chris for the notes you provided. My 18.04 Kubuntu machine does not have a /var/lib/apt/partial directory so I am not able to follow Chris’s most recent suggestion. I do have openjdk-8-jre, openjdk-8-jdk, xterm installed but have not been able to install python-aeneas and of course I have not been able to install scripture-app-builder in this 18.04 machine.

At this point, I think I will wipe the 18.04 out and re-build with 16.04. SAB worked fine in that.

Thanks again,
Ray

The issue with DEP-11 metadata has been fixed. Try again please.

Wonderful! I tried again with Kubuntu 18.04 and was able to complete the SAB install. I have not built an app yet but everything looks in place ready to build a new app!

Thanks you very much, your note has saved me much work!

Blessings,

Ray