Unable to find hash-id-databases for Xenial release

Asked by Rong Shen on 2016-06-20

I registered a few Ubuntu 16 machines with Landscape, however packages take forever to get populated. I found errors in package-reporter.log: "Couldn't download hash=>id database: Server returned HTTP code 404". I checked server and did not find hash-id-databases for Xenial release.

Anybody know how to generate hash-id-databases for Xenial_amd64 release?

Question information

Language:
English Edit question
Status:
Solved
For:
Landscape Client Edit question
Assignee:
Andreas Hasenack Edit question
Solved by:
Rong Shen
Solved:
2016-06-22
Last query:
2016-06-22
Last reply:
2016-06-22
Andreas Hasenack (ahasenack) said : #1

Hi Rong,

to have your Landscape server generate hash-id-database files for xenial, follow these steps on that machine:

- as root, edit /opt/canonical/landscape/configs/standalone/hash-id-databases.conf
- add a section like this to the end of the file:
[xenial]
variants = updates security
components = main restricted universe multiverse
archs = i386 amd64

[xenial-arm]
url = http://ports.ubuntu.com/
variants = updates security
components = main restricted universe multiverse
archs = armhf

- run this command and sit back, because it will take a several minutes depending on your bandwidth:
sudo -u landscape -H /opt/canonical/landscape/scripts/hash_id_databases.sh

There is one issue, though, in that this file is not marked as a configuration file. So if you ever upgrade this installation your changes will be overwritten. That being said, xenial is already part of this configuration in the latest release of Landscape (16.03 as of this writing).

Rong Shen (rong-shen) said : #2

Got it! thank you!