Unable to upgrade from 5.1.3 to 5.2.5: The repository does not have a Release file.

0 users found this article helpful

Symptoms

When trying to upgrade from 5.1.3 to 5.2.5, the upgrade fails.

In System Settings, an error log is shown containing this text:

An error was encountered while checking the newest available version of package(s): E: The repository 'https://repo-pub.awingu.com/5.2.5 bionic Release' does not have a Release file.

 

Cause

This version is running too far behind. The SSL/TLS certificates used for our repository servers, are no longer trusted.

Resolution

Contact the support team.

#- INTERNAL (content below this line is not visible in published article) 

The full error that can be seen:

Feb 01 16:17:54 localhost manage.py[9168]: [INFO] - Fetching file from saltenv 'base', ** done ** 'awingu_upgrade_helper.sls'
                                           [INFO] - Caching directory '_modules/' for environment 'base'
                                           [INFO] - Caching directory '_states/' for environment 'base'
                                           [INFO] - Caching directory '_grains/' for environment 'base'
                                           [INFO] - Caching directory '_renderers/' for environment 'base'
                                           [INFO] - Caching directory '_returners/' for environment 'base'
                                           [INFO] - Caching directory '_output/' for environment 'base'
                                           [INFO] - Caching directory '_utils/' for environment 'base'
                                           localhost:

 

                                          ----------

 

                                                    ID: add_apt_key
                                               Function: cmd.run
                                                   Name: wget -t 5 -T 30 -O /tmp/awingu_apt_key https://repo-pub.awingu.com/5.2.5/dists/bionic/keyFile && apt-key add /tmp/awingu_apt_key
                                                 Result: True
                                                Comment: Command "wget -t 5 -T 30 -O /tmp/awingu_apt_key https://repo-pub.awingu.com/5.2.5/dists/bionic/keyFile '&&' apt-key add /tmp/awingu_apt_key" run
                                                Started: 16:17:35.517582
                                               Duration: 16977.449 ms
                                                Changes:

 

                                                        ----------

 

                                                        pid:
                                                             9175
                                                         retcode:
                                                             0
                                                         stderr:
                                                             --2024-02-01 16:17:51--  https://repo-pub.awingu.com/5.2.5/dists/bionic/keyFile
                                                             Resolving repo-pub.awingu.com (repo-pub.awingu.com)... 172.67.7.183, 104.22.41.98, 104.22.40.98, ...
                                                             Connecting to repo-pub.awingu.com (repo-pub.awingu.com)|172.67.7.183|:443... connected.
                                                             HTTP request sent, awaiting response... 200 OK
                                                             Length: 1623 (1.6K) [application/octet-stream]
                                                             Saving to: ‘/tmp/awingu_apt_key’

 

                                                                 0K .                                                     100% 23.1M=0s

 

                                                            2024-02-01 16:17:52 (23.1 MB/s) - ‘/tmp/awingu_apt_key’ saved [1623/1623]

 

                                                            Warning: apt-key output should not be parsed (stdout is not a terminal)
                                                         stdout:
                                                             OK

 

                                          ----------

 

                                                    ID: fix_sources
                                               Function: file.managed
                                                   Name: /etc/apt/sources.list
                                                 Result: True
                                                Comment: File /etc/apt/sources.list updated
                                                Started: 16:17:52.495426
                                               Duration: 207.101 ms
                                                Changes:

 

                                                        ----------

 

                                                        diff:

 

                                                            ---

 

                                                            +++
                                                             @@ -1 +1 @@
                                                             -deb http://127.0.0.1:2015/5.1.3 bionic main python custom awingu
                                                             +deb https://repo-pub.awingu.com/5.2.5 bionic main python custom awingu

 

                                          ----------

 

                                                    ID: awingu-upgrade-helper
                                               Function: pkg.latest
                                                 Result: False
                                                Comment: An error was encountered while checking the newest available version of package(s): E: The repository 'https://repo-pub.awingu.com/5.2.5 bionic Release' does not have a Release file.
                                                Started: 16:17:52.712978
                                               Duration: 1150.826 ms
                                                Changes:

 

                                          Summary for localhost

 

                                          ------------

 

                                          Succeeded: 2 (changed=2)
                                           Failed:    1

 

                                          ------------

 

                                          Total states run:     3
                                           Total run time:  18.335 s
Feb 01 16:17:54 localhost manage.py[9168]: Re-enabling cron

 

When running apt-get update:

root@localhost:~# apt-get update
Hit:1 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease
Ign:2 https://apt.datadoghq.com stable InRelease
Hit:3 https://apt.datadoghq.com stable Release
Ign:4 https://repo-pub.awingu.com/5.2.5 bionic InRelease
Err:5 https://repo-pub.awingu.com/5.2.5 bionic Release
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 104.22.41.98 443]
Reading package lists... Done
E: The repository 'https://repo-pub.awingu.com/5.2.5 bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@localhost:~#

 

With a remote SSH intervention, you can solve it this way (mind that this is version-specific! You may also need to check for a newer package once again!)

# Download a Debian-based package with the latest CA certificates for Ubuntu 18.04
wget http://security.ubuntu.com/ubuntu/pool/main/c/ca-certificates/ca-certificates_20230311ubuntu0.18.04.1_all.deb
# Install the package
dpkg -i /ca-certificates_20230311ubuntu0.18.04.1_all.deb

 

 

 

Was this article helpful?

Tell us how we can improve it.