The repository 'https://apt.hestiacp.com stretch Release' does no longer have a Release file

Hello! Everyday I get error message from cron:

Cron admin@hcp01 sudo /usr/local/hestia/bin/v-update-sys-hestia-all

E: The repository ‘https://apt.hestiacp.com stretch Release’ does no longer have a Release file.
E: The repository ‘https://apt.hestiacp.com stretch Release’ does no longer have a Release file.
E: The repository ‘https://apt.hestiacp.com stretch Release’ does no longer have a Release file.

Debian 9

What the problem?
Thanks!

Hi Alexander

Thanks for your post: I can’t find any issue with our repository, in special with the stretch release file, this is online: https://apt.hestiacp.com/dists/stretch/Release

Can you do apt-get update to check if the repository is working properly on your system?

Hi!
This is result:

root@hcp01:~# apt-get update
Ign:1 http://mirror.mephi.ru/debian stretch InRelease
Get:2 http://mirror.mephi.ru/debian stretch-updates InRelease [91.0 kB]
Hit:3 http://mirror.yandex.ru/debian stable InRelease
Hit:4 http://mirror.mephi.ru/debian stretch Release
Get:5 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:6 http://nginx.org/packages/mainline/debian stretch InRelease [2,866 B]
Get:7 http://security.debian.org stable/updates InRelease [65.4 kB]
Hit:8 http://ams2.mirrors.digitalocean.com/mariadb/repo/10.4/debian stretch InRelease
Ign:9 https://packages.sury.org/php stretch InRelease
Ign:10 https://apt.hestiacp.com stretch InRelease
Err:11 https://packages.sury.org/php stretch Release
The HTTP server sent an invalid reply header
Err:12 https://apt.hestiacp.com stretch Release
The HTTP server sent an invalid reply header
Get:14 http://security.debian.org/debian-security stretch/updates/main Sources [200 kB]
Get:15 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [508 kB]
Get:16 http://nginx.org/packages/mainline/debian stretch/nginx amd64 Packages [65.9 kB]
Reading package lists… Done
E: The repository ‘https://packages.sury.org/php stretch Release’ does no longer 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.
E: The repository ‘https://apt.hestiacp.com stretch Release’ does no longer 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.

Looks like you’ve got a connection issue, also for the sury repository. Can you check if you can download the release file directly using the following command: wget https://apt.hestiacp.com/dists/stretch/Release

No problem:

# wget https://apt.hestiacp.com/dists/stretch/Release
--2019-11-21 18:58:23--  https://apt.hestiacp.com/dists/stretch/Release
Resolving apt.hestiacp.com (apt.hestiacp.com)... 104.28.20.51, 104.28.21.51, 2606:4700:30::681c:1433, ...
Connecting to apt.hestiacp.com (apt.hestiacp.com)|104.28.20.51|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2651 (2.6K) [application/octet-stream]
Saving to: ‘Release’

Release                                100%[==========================================================================>]   2.59K  --.-KB/s    in 0s

2019-11-21 18:58:24 (11.1 MB/s) - ‘Release’ saved [2651/2651]



# wget https://packages.sury.org/php
--2019-11-21 19:00:55--  https://packages.sury.org/php
Resolving packages.sury.org (packages.sury.org)... 104.31.95.169, 104.31.94.169, 2606:4700:30::681f:5fa9, ...
Connecting to packages.sury.org (packages.sury.org)|104.31.95.169|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://packages.sury.org/php/ [following]
--2019-11-21 19:00:55--  https://packages.sury.org/php/
Reusing existing connection to packages.sury.org:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘php’

php                                        [ <=>                                                                       ]     607  --.-KB/s    in 0s

2019-11-21 19:00:55 (3.19 MB/s) - ‘php’ saved [607]

Trouble with Release file?

# apt-get update
Ign:1 http://mirror.mephi.ru/debian stretch InRelease
Get:2 http://mirror.mephi.ru/debian stretch-updates InRelease [91.0 kB]
Hit:3 http://mirror.mephi.ru/debian stretch Release
Hit:4 http://mirror.yandex.ru/debian stable InRelease
Hit:5 http://security.debian.org/debian-security stretch/updates InRelease
Hit:6 http://security.debian.org stable/updates InRelease
Hit:7 http://ams2.mirrors.digitalocean.com/mariadb/repo/10.4/debian stretch InRelease
Hit:8 http://nginx.org/packages/mainline/debian stretch InRelease
Ign:9 https://packages.sury.org/php stretch InRelease
Err:10 https://packages.sury.org/php stretch Release
  The HTTP server sent an invalid reply header
Ign:11 https://apt.hestiacp.com stretch InRelease
Err:13 https://apt.hestiacp.com stretch Release
  The HTTP server sent an invalid reply header
Reading package lists... Done
E: The repository 'https://packages.sury.org/php stretch Release' does no longer 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.
E: The repository 'https://apt.hestiacp.com stretch Release' does no longer 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.

Looks like apt does not https repos, try this:

apt install ca-certificates apt-transport-https
2 Likes

Result:

root@hcp01:~# apt install ca-certificates apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  apt apt-utils libapt-pkg5.0 openssl
Suggested packages:
  apt-doc aptitude | synaptic | wajig
The following packages will be upgraded:
  apt apt-transport-https apt-utils ca-certificates libapt-pkg5.0 openssl
6 upgraded, 0 newly installed, 0 to remove and 689 not upgraded.
Need to get 833 kB/3,943 kB of archives.
After this operation, 653 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Err:1 https://packages.sury.org/php stretch/main amd64 openssl amd64 1.1.1d-1+0~20191009.15+debian9~1.gbpd6badf
  The HTTP server sent an invalid reply header
E: Failed to fetch https://packages.sury.org/php/pool/main/o/openssl/openssl_1.1.1d-1+0~20191009.15+debian9~1.gbpd6badf_amd64.deb  The HTTP server sent an invalid reply header
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

My sources.list:

root@hcp01:/etc/apt# cat sources.list
#

# deb cdrom:[Debian GNU/Linux 9.9.0 _Stretch_ - Official amd64 NETINST 20190427-10:30]/ stretch main

#deb cdrom:[Debian GNU/Linux 9.9.0 _Stretch_ - Official amd64 NETINST 20190427-10:30]/ stretch main

deb http://mirror.mephi.ru/debian/ stretch main
deb-src http://mirror.mephi.ru/debian/ stretch main

deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main

# stretch-updates, previously known as 'volatile'
deb http://mirror.mephi.ru/debian/ stretch-updates main
deb-src http://mirror.mephi.ru/debian/ stretch-updates main
deb http://mirror.yandex.ru/debian/ stable main contrib non-free
deb-src http://mirror.yandex.ru/debian/ stable main contrib non-free
deb http://security.debian.org/ stable/updates main contrib non-free
deb-src http://security.debian.org/ stable/updates main contrib non-free

comment out the sury repository inside /etc/apt/sources.list.d/, do a apt update and retry to install the packages. If it worked, uncomment the repository and run a apt update again.

Finally update run without errors:

root@hcp01:/etc/apt/sources.list.d# apt update
Ign:1 http://mirror.mephi.ru/debian stretch InRelease
Hit:2 http://mirror.yandex.ru/debian stable InRelease
Hit:3 http://mirror.mephi.ru/debian stretch-updates InRelease
Hit:4 http://mirror.mephi.ru/debian stretch Release
Hit:5 http://security.debian.org/debian-security stretch/updates InRelease
Hit:6 http://security.debian.org stable/updates InRelease
Hit:7 http://ams2.mirrors.digitalocean.com/mariadb/repo/10.4/debian stretch InRelease
Hit:8 http://nginx.org/packages/mainline/debian stretch InRelease
Get:9 https://packages.sury.org/php stretch InRelease [6,760 B]
Hit:10 https://apt.hestiacp.com stretch InRelease
Get:12 https://packages.sury.org/php stretch/main amd64 Packages [131 kB]
Fetched 138 kB in 2s (60.1 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
690 packages can be upgraded. Run 'apt list --upgradable' to see them.

Hi, that worked for me

Thank you!