IHTSDO / snowstorm-deploy

Deployment scripts for Snowstorm Terminology Server
0 stars 0 forks source link

`ubuntu_20.04_LTS/install_snowstorm.sh` mentiones bionic (18.04), shouldn't it be focal (20.04)? #1

Open o-l-a-v opened 10 months ago

o-l-a-v commented 10 months ago

Following script with Ubuntu 20.04:

When adding APT sources for Snowstorm, script does (notice bionic):

echo "deb [trusted=yes] https://maven3.ihtsdotools.org/repository/debian-releases/ bionic main" | sudo tee /etc/apt/sources.list.d/maven3_ihtsdotools_org_repository_debian_releases.list

Is that intended?

We're getting some errors on sudo apt update now, haven't gotten to the bottom of it yet.

When /etc/apt/sources.list.d/maven3_ihtsdotools_org_repository_debian_releases.list is:

deb [trusted=yes] https://maven3.ihtsdotools.org/repository/debian-releases/ bionic main

sudo apt update gives following error:

Click to expand ``` @:~$ sudo apt update Hit:1 http://nginx.org/packages/ubuntu focal InRelease Hit:2 http://azure.archive.ubuntu.com/ubuntu focal InRelease Hit:3 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:4 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:5 http://azure.archive.ubuntu.com/ubuntu focal-security InRelease Get:6 https://maven3.ihtsdotools.org/repository/debian-releases bionic InRelease [1241 B] Ign:6 https://maven3.ihtsdotools.org/repository/debian-releases bionic InRelease Fetched 1241 B in 1s (1690 B/s) Reading package lists... Done Building dependency tree Reading state information... Done 7 packages can be upgraded. Run 'apt list --upgradable' to see them. W: GPG error: https://maven3.ihtsdotools.org/repository/debian-releases bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9436B84EDBBEEED1 N: Skipping acquire of configured file 'main/binary-amd64/Packages' as repository 'https://maven3.ihtsdotools.org/repository/debian-releases bionic InRelease' doesn't support architecture 'amd64' @:~$ ```

When /etc/apt/sources.list.d/maven3_ihtsdotools_org_repository_debian_releases.list is:

deb [trusted=yes] https://maven3.ihtsdotools.org/repository/debian-releases/ focal main

sudo apt update gives following error:

Click to expand ``` @:~$ sudo apt update Hit:1 http://azure.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:4 http://azure.archive.ubuntu.com/ubuntu focal-security InRelease Ign:5 https://maven3.ihtsdotools.org/repository/debian-releases focal InRelease Hit:6 http://nginx.org/packages/ubuntu focal InRelease Ign:7 https://maven3.ihtsdotools.org/repository/debian-releases focal Release Ign:8 https://maven3.ihtsdotools.org/repository/debian-releases focal/main all Packages Ign:9 https://maven3.ihtsdotools.org/repository/debian-releases focal/main amd64 Packages Ign:10 https://maven3.ihtsdotools.org/repository/debian-releases focal/main Translation-en Ign:8 https://maven3.ihtsdotools.org/repository/debian-releases focal/main all Packages Ign:9 https://maven3.ihtsdotools.org/repository/debian-releases focal/main amd64 Packages Ign:10 https://maven3.ihtsdotools.org/repository/debian-releases focal/main Translation-en Ign:8 https://maven3.ihtsdotools.org/repository/debian-releases focal/main all Packages Ign:9 https://maven3.ihtsdotools.org/repository/debian-releases focal/main amd64 Packages Ign:10 https://maven3.ihtsdotools.org/repository/debian-releases focal/main Translation-en Ign:8 https://maven3.ihtsdotools.org/repository/debian-releases focal/main all Packages Ign:9 https://maven3.ihtsdotools.org/repository/debian-releases focal/main amd64 Packages Ign:10 https://maven3.ihtsdotools.org/repository/debian-releases focal/main Translation-en Ign:8 https://maven3.ihtsdotools.org/repository/debian-releases focal/main all Packages Ign:9 https://maven3.ihtsdotools.org/repository/debian-releases focal/main amd64 Packages Ign:10 https://maven3.ihtsdotools.org/repository/debian-releases focal/main Translation-en Ign:8 https://maven3.ihtsdotools.org/repository/debian-releases focal/main all Packages Ign:9 https://maven3.ihtsdotools.org/repository/debian-releases focal/main amd64 Packages Ign:10 https://maven3.ihtsdotools.org/repository/debian-releases focal/main Translation-en Ign:8 https://maven3.ihtsdotools.org/repository/debian-releases focal/main all Packages Err:9 https://maven3.ihtsdotools.org/repository/debian-releases focal/main amd64 Packages 404 dists/focal/main/binary-amd64/Packages.xz [IP: 3.211.122.7 443] Ign:10 https://maven3.ihtsdotools.org/repository/debian-releases focal/main Translation-en Reading package lists... Done E: Failed to fetch https://maven3.ihtsdotools.org/repository/debian-releases/dists/focal/main/binary-amd64/Packages 404 dists/focal/main/binary-amd64/Packages.xz [IP: 3.211.122.7 443] E: Some index files failed to download. They have been ignored, or old ones used instead. @:~$ ```
o-l-a-v commented 10 months ago

Tested on a clean install of Ubuntu 20.04:

echo "deb [trusted=yes] https://maven3.ihtsdotools.org/repository/debian-releases/ bionic main" | sudo tee /etc/apt/sources.list.d/maven3_ihtsdotools_org_repository_debian_releases.list

sudo apt update then gives:

ubnt2004-user@ubnt2004-server:~$ sudo apt update
Hit:1 http://no.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://no.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://no.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://no.archive.ubuntu.com/ubuntu focal-security InRelease
Get:5 https://maven3.ihtsdotools.org/repository/debian-releases bionic InRelease [1,241 B]
Ign:5 https://maven3.ihtsdotools.org/repository/debian-releases bionic InRelease
Get:6 https://maven3.ihtsdotools.org/repository/debian-releases bionic/main all Packages [103 kB]
Fetched 104 kB in 1s (96.0 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: GPG error: https://maven3.ihtsdotools.org/repository/debian-releases bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9436B84EDBBEEED1
N: Skipping acquire of configured file 'main/binary-amd64/Packages' as repository 'https://maven3.ihtsdotools.org/repository/debian-releases bionic InRelease' doesn't support architecture 'amd64'
ubnt2004-user@ubnt2004-server:~$

After adding GPG key by:

wget -qO - https://maven3.ihtsdotools.org/repository/maven-releases/keys/debian-releases-gpg/2019/debian-releases-gpg-2019.key | sudo apt-key add -

sudo apt update gives:

ubnt2004-user@ubnt2004-server:~$ sudo apt update
Hit:1 http://no.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://no.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://no.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://no.archive.ubuntu.com/ubuntu focal-security InRelease
Get:5 https://maven3.ihtsdotools.org/repository/debian-releases bionic InRelease [1,241 B]
Fetched 1,241 B in 1s (2,165 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-amd64/Packages' as repository 'https://maven3.ihtsdotools.org/repository/debian-releases bionic InRelease' doesn't support architecture 'amd64'
ubnt2004-user@ubnt2004-server:~$

Some problems with your APT repository maybe?

kaicode commented 7 months ago

@ChrisMorris-cmo it looks like we are still using "bionic" in the apt sources from the Ubuntu 18 days. Have you tried changing this to "focal" for the Ubuntu 20 deployments?

kaicode commented 7 months ago

@o-l-a-v we don't publish amd64 deb packages although there are amd64 Docker packages available in Docker Hub for Snowstorm and Snowstorm Lite.

ChrisMorris-cmo commented 7 months ago

@kaicode @o-l-a-v , we have a backlog ticket to look into the amd64 warning, however the latest apt update should have worked, please see if the following command brings back package information apt-cache policy snowstorm

The apt repository config does still have distribution type set to bionic but works fine for Ubuntu 20.04. Sonatype currently do support multiple distributions in the same repository. However we should create apt proxy repository with either bionic or simply ubuntu. We have a project to migrate to 22.04 LTS so I will make sure Nexus is covered within that for a review and any required changes to better support OS version uplifts.