Sergio_L's picture

For the last few months I've been unable to update my nextcloud LXC containers, I've read and followed 'https://packages.sury.org/php/README.txt' it kinda worked, but it didn't cause I started getting HTTP code 403 errors, (I asked about it last month here #1023) so I just deleted /etc/apt/sources.list.d/php.list to make sure automatic updates wouldn't keep me blacklisted.

I figured a month would be enough for cloudflare to remove me from whatever blacklist they put me in, so today I went ahead and recreated /etc/apt/sources.list.d/php.list, run apt-get update and got:

Err:3 https://packages.sury.org/php stretch/main amd64 Packages
Received HTTP code 403 from proxy after CONNECT
W: The repository 'https://packages.sury.org/php stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://packages.sury.org/php/dists/stretch/main/binary-amd64/Packages Received HTTP code 403 from proxy after CONNECT

So at first looks seems like I'm still somehow banned, I tried with another existing debian stretch container, added the repository as per 'https://packages.sury.org/php/README.txt' and I got the exact same error, so it's not something specific from my container, and my IP changes daily so is not that either, I've tried it on another physical system and a couple existing containers at a remote location with also dynamic IP address and got the exact same result, so I'm wondering if somehow cloudflare blacklisted my entire ISP range which makes no sense so clerly something else is happening.

I've tried to create a new vm with debian stretch and after adding the repo it run apt update without errors, so there must be something either broken, outdated or missing in all my containers, but I don't have the slightest clue what that could be, so I appreciate any ideas or pointers.

To Reproduce
Steps to reproduce the behavior:

  1. Install fresh Debian stretch vm (or LXC container) from turnkeylinux.org
  2. Update sury repository as per 'https://packages.sury.org/php/README.txt'
  3. Run apt update
  4. See error

Expected behavior
apt update returns no errors.

Distribution (please complete the following information):

  • Debian Stretch
  • AMD 64
  • packages.sury.org
Forum: 
Jeremy Davis's picture

I just launched a TurnKey v15.0 Core appliance (the only v15.x LXC appliance I have handy - shouldn't matter for the purposes of this test) and couldn't reproduce?! I'm not sure how useful it will be, but here's the process I followed:

  • Launched new v15.0 (Debian 9/Stretch) Core LXC container on Proxmox.
  • Installed security updates.
  • Added sury.org repo (as per readme).
  • Installed php from sury.org.
  • I doubt that it will be that useful, but here's the full output of adding the sury.org repo and installing the 'php package (because this wasn't a LAMP-based appliance, it pulled in some Debian dependencies too, such as Apache):

root@jed-test-sury ~# apt-get -y install apt-transport-https lsb-release ca-certificates curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ca-certificates is already the newest version (20200601~deb9u2).
ca-certificates set to manually installed.
curl is already the newest version (7.52.1-5+deb9u13).
lsb-release is already the newest version (9.20161125).
The following NEW packages will be installed:
  apt-transport-https
0 upgraded, 1 newly installed, 0 to remove and 42 not upgraded.
Need to get 171 kB of archives.
After this operation, 243 kB of additional disk space will be used.
Get:1 http://security.debian.org stretch/updates/main amd64 apt-transport-https amd64 1.4.11 [171 kB]
Fetched 171 kB in 0s (1164 kB/s)        
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package apt-transport-https.
(Reading database ... 25728 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_1.4.11_amd64.deb ...
Unpacking apt-transport-https (1.4.11) ...
Setting up apt-transport-https (1.4.11) ...
Counting objects: 1378, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (862/862), done.
Writing objects: 100% (1378/1378), done.
Total 1378 (delta 80), reused 1378 (delta 80)
root@jed-test-sury ~# wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
--2021-05-08 23:29:22--  https://packages.sury.org/php/apt.gpg
Resolving packages.sury.org (packages.sury.org)... 172.67.182.150, 104.21.18.148, 2606:4700:3037::6815:1294, ...
Connecting to packages.sury.org (packages.sury.org)|172.67.182.150|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1769 (1.7K) [application/octet-stream]
Saving to: '/etc/apt/trusted.gpg.d/php.gpg'

/etc/apt/trusted.gpg.d/php.gpg              100%[===========================================================================================>]   1.73K  --.-KB/s    in 0s      

2021-05-08 23:29:23 (8.15 MB/s) - '/etc/apt/trusted.gpg.d/php.gpg' saved [1769/1769]

root@jed-test-sury ~# sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
root@jed-test-sury ~# apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org stretch/updates InRelease                      
Hit:3 http://deb.debian.org/debian stretch Release                              
Get:4 https://packages.sury.org/php stretch InRelease [6824 B]                       
Ign:6 http://archive.turnkeylinux.org/debian stretch-security InRelease                                            
Get:7 https://packages.sury.org/php stretch/main amd64 Packages [322 kB]
Ign:8 http://archive.turnkeylinux.org/debian stretch InRelease
Hit:9 http://archive.turnkeylinux.org/debian stretch-security Release
Hit:11 http://archive.turnkeylinux.org/debian stretch Release                       
Fetched 328 kB in 1s (189 kB/s)                           
Reading package lists... Done
root@jed-test-sury ~# apt policy php
php:
  Installed: (none)
  Candidate: 2:8.0+82+0~20210313.35+debian9~1.gbpa8195f
  Version table:
     2:8.0+82+0~20210313.35+debian9~1.gbpa8195f 500
        500 https://packages.sury.org/php stretch/main amd64 Packages
     1:7.0+49 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages
root@jed-test-sury ~# apt install php
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apache2-bin libapache2-mod-php8.0 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libargon2-1 liblua5.2-0 libpcre2-8-0 libsodium23 php-common php8.0 php8.0-cli
  php8.0-common php8.0-opcache php8.0-readline
Suggested packages:
  www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom php-pear
Recommended packages:
  apache2
The following NEW packages will be installed:
  apache2-bin libapache2-mod-php8.0 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libargon2-1 liblua5.2-0 libpcre2-8-0 libsodium23 php php-common php8.0
  php8.0-cli php8.0-common php8.0-opcache php8.0-readline
0 upgraded, 17 newly installed, 0 to remove and 45 not upgraded.
Need to get 5883 kB of archives.
After this operation, 25.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian stretch/main amd64 libapr1 amd64 1.5.2-5 [96.6 kB]
Get:2 http://deb.debian.org/debian stretch/main amd64 libaprutil1 amd64 1.5.4-3 [85.8 kB]
Get:3 http://deb.debian.org/debian stretch/main amd64 libaprutil1-dbd-sqlite3 amd64 1.5.4-3 [19.3 kB]
Get:4 http://deb.debian.org/debian stretch/main amd64 libaprutil1-ldap amd64 1.5.4-3 [17.4 kB]
Get:5 http://deb.debian.org/debian stretch/main amd64 liblua5.2-0 amd64 5.2.4-1.1+b2 [110 kB]
Get:6 https://packages.sury.org/php stretch/main amd64 php-common all 2:82+0~20210313.35+debian9~1.gbpa8195f [17.6 kB]
Get:7 http://security.debian.org stretch/updates/main amd64 apache2-bin amd64 2.4.25-3+deb9u9 [1185 kB]
Get:8 https://packages.sury.org/php stretch/main amd64 php8.0-common amd64 8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0 [645 kB]
Get:9 https://packages.sury.org/php stretch/main amd64 php8.0-opcache amd64 8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0 [441 kB]
Get:10 https://packages.sury.org/php stretch/main amd64 php8.0-readline amd64 8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0 [11.9 kB]                                              
Get:11 https://packages.sury.org/php stretch/main amd64 libargon2-1 amd64 0~20190702-0.1+0~20190710.3+debian9~1.gbp2fb167 [21.2 kB]                                            
Get:12 https://packages.sury.org/php stretch/main amd64 libpcre2-8-0 amd64 10.36-2+0~20210212.6+debian9~1.gbp6138a4 [235 kB]                                                   
Get:13 https://packages.sury.org/php stretch/main amd64 libsodium23 amd64 1.0.18-1+0~20191009.1+debian9~1.gbpb6823f [161 kB]                                                   
Get:14 https://packages.sury.org/php stretch/main amd64 php8.0-cli amd64 8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0 [1431 kB]                                                   
Get:15 https://packages.sury.org/php stretch/main amd64 libapache2-mod-php8.0 amd64 8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0 [1373 kB]                                        
Get:16 https://packages.sury.org/php stretch/main amd64 php8.0 all 8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0 [25.5 kB]                                                         
Get:17 https://packages.sury.org/php stretch/main amd64 php all 2:8.0+82+0~20210313.35+debian9~1.gbpa8195f [6918 B]                                                            
Fetched 5883 kB in 23s (254 kB/s)                                                                                                                                              
[master 75c42bf] saving uncommitted changes in /etc prior to apt run
 3 files changed, 3 insertions(+)
 create mode 100644 apt/sources.list.d/php.list
 create mode 100644 apt/trusted.gpg.d/php.gpg
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libapr1:amd64.
(Reading database ... 25734 files and directories currently installed.)
Preparing to unpack .../00-libapr1_1.5.2-5_amd64.deb ...
Unpacking libapr1:amd64 (1.5.2-5) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../01-libaprutil1_1.5.4-3_amd64.deb ...
Unpacking libaprutil1:amd64 (1.5.4-3) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../02-libaprutil1-dbd-sqlite3_1.5.4-3_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.5.4-3) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../03-libaprutil1-ldap_1.5.4-3_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.5.4-3) ...
Selecting previously unselected package liblua5.2-0:amd64.
Preparing to unpack .../04-liblua5.2-0_5.2.4-1.1+b2_amd64.deb ...
Unpacking liblua5.2-0:amd64 (5.2.4-1.1+b2) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../05-apache2-bin_2.4.25-3+deb9u9_amd64.deb ...
Unpacking apache2-bin (2.4.25-3+deb9u9) ...
Selecting previously unselected package php-common.
Preparing to unpack .../06-php-common_2%3a82+0~20210313.35+debian9~1.gbpa8195f_all.deb ...
Unpacking php-common (2:82+0~20210313.35+debian9~1.gbpa8195f) ...
Selecting previously unselected package php8.0-common.
Preparing to unpack .../07-php8.0-common_8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0_amd64.deb ...
Unpacking php8.0-common (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...
Selecting previously unselected package php8.0-opcache.
Preparing to unpack .../08-php8.0-opcache_8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0_amd64.deb ...
Unpacking php8.0-opcache (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...
Selecting previously unselected package php8.0-readline.
Preparing to unpack .../09-php8.0-readline_8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0_amd64.deb ...
Unpacking php8.0-readline (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...
Selecting previously unselected package libargon2-1:amd64.
Preparing to unpack .../10-libargon2-1_0~20190702-0.1+0~20190710.3+debian9~1.gbp2fb167_amd64.deb ...
Unpacking libargon2-1:amd64 (0~20190702-0.1+0~20190710.3+debian9~1.gbp2fb167) ...
Selecting previously unselected package libpcre2-8-0:amd64.
Preparing to unpack .../11-libpcre2-8-0_10.36-2+0~20210212.6+debian9~1.gbp6138a4_amd64.deb ...
Unpacking libpcre2-8-0:amd64 (10.36-2+0~20210212.6+debian9~1.gbp6138a4) ...
Selecting previously unselected package libsodium23:amd64.
Preparing to unpack .../12-libsodium23_1.0.18-1+0~20191009.1+debian9~1.gbpb6823f_amd64.deb ...
Unpacking libsodium23:amd64 (1.0.18-1+0~20191009.1+debian9~1.gbpb6823f) ...
Selecting previously unselected package php8.0-cli.
Preparing to unpack .../13-php8.0-cli_8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0_amd64.deb ...
Unpacking php8.0-cli (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...
Selecting previously unselected package libapache2-mod-php8.0.
Preparing to unpack .../14-libapache2-mod-php8.0_8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0_amd64.deb ...
Unpacking libapache2-mod-php8.0 (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...
Selecting previously unselected package php8.0.
Preparing to unpack .../15-php8.0_8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0_all.deb ...
Unpacking php8.0 (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...
Selecting previously unselected package php.
Preparing to unpack .../16-php_2%3a8.0+82+0~20210313.35+debian9~1.gbpa8195f_all.deb ...
Unpacking php (2:8.0+82+0~20210313.35+debian9~1.gbpa8195f) ...
Setting up libapr1:amd64 (1.5.2-5) ...
Setting up libsodium23:amd64 (1.0.18-1+0~20191009.1+debian9~1.gbpb6823f) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up libaprutil1:amd64 (1.5.4-3) ...
Setting up php-common (2:82+0~20210313.35+debian9~1.gbpa8195f) ...
Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer -> /lib/systemd/system/phpsessionclean.timer.
Setting up php8.0-common (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...

Creating config file /etc/php/8.0/mods-available/calendar.ini with new version

Creating config file /etc/php/8.0/mods-available/ctype.ini with new version

Creating config file /etc/php/8.0/mods-available/exif.ini with new version

Creating config file /etc/php/8.0/mods-available/fileinfo.ini with new version

Creating config file /etc/php/8.0/mods-available/ffi.ini with new version

Creating config file /etc/php/8.0/mods-available/ftp.ini with new version

Creating config file /etc/php/8.0/mods-available/gettext.ini with new version

Creating config file /etc/php/8.0/mods-available/iconv.ini with new version

Creating config file /etc/php/8.0/mods-available/pdo.ini with new version

Creating config file /etc/php/8.0/mods-available/phar.ini with new version

Creating config file /etc/php/8.0/mods-available/posix.ini with new version

Creating config file /etc/php/8.0/mods-available/shmop.ini with new version

Creating config file /etc/php/8.0/mods-available/sockets.ini with new version

Creating config file /etc/php/8.0/mods-available/sysvmsg.ini with new version

Creating config file /etc/php/8.0/mods-available/sysvsem.ini with new version

Creating config file /etc/php/8.0/mods-available/sysvshm.ini with new version

Creating config file /etc/php/8.0/mods-available/tokenizer.ini with new version
Processing triggers for man-db (2.7.6.1-2) ...
Setting up liblua5.2-0:amd64 (5.2.4-1.1+b2) ...
Setting up libargon2-1:amd64 (0~20190702-0.1+0~20190710.3+debian9~1.gbp2fb167) ...
Setting up libpcre2-8-0:amd64 (10.36-2+0~20210212.6+debian9~1.gbp6138a4) ...
Setting up php8.0-readline (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...

Creating config file /etc/php/8.0/mods-available/readline.ini with new version
Setting up libaprutil1-ldap:amd64 (1.5.4-3) ...
Setting up php8.0-opcache (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...

Creating config file /etc/php/8.0/mods-available/opcache.ini with new version
Setting up libaprutil1-dbd-sqlite3:amd64 (1.5.4-3) ...
Setting up apache2-bin (2.4.25-3+deb9u9) ...
Setting up php8.0-cli (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...
update-alternatives: using /usr/bin/php8.0 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar8.0 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar8.0 to provide /usr/bin/phar.phar (phar.phar) in auto mode

Creating config file /etc/php/8.0/cli/php.ini with new version
Setting up libapache2-mod-php8.0 (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...
Warning: Could not load Apache 2.4 maintainer script helper.

Creating config file /etc/php/8.0/apache2/php.ini with new version
Setting up php8.0 (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...
Setting up php (2:8.0+82+0~20210313.35+debian9~1.gbpa8195f) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for php8.0-cli (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...
Processing triggers for libapache2-mod-php8.0 (8.0.5-2+0~20210503.19+debian9~1.gbp3e4ad0) ...
Warning: Could not load Apache 2.4 maintainer script helper.
[master 0f1081b] committing changes in /etc after apt run
 71 files changed, 4574 insertions(+), 1 deletion(-)
 create mode 120000 alternatives/phar
 create mode 120000 alternatives/phar.1.gz
 create mode 120000 alternatives/phar.phar
 create mode 120000 alternatives/phar.phar.1.gz
 create mode 120000 alternatives/php
 create mode 120000 alternatives/php.1.gz
 create mode 100644 apache2/mods-available/php8.0.conf
 create mode 100644 apache2/mods-available/php8.0.load
 create mode 100644 apt/preferences.d/php-common.pref
 create mode 100644 cron.d/php
 create mode 120000 php/8.0/apache2/conf.d/10-opcache.ini
 create mode 120000 php/8.0/apache2/conf.d/10-pdo.ini
 create mode 120000 php/8.0/apache2/conf.d/20-calendar.ini
 create mode 120000 php/8.0/apache2/conf.d/20-ctype.ini
 create mode 120000 php/8.0/apache2/conf.d/20-exif.ini
 create mode 120000 php/8.0/apache2/conf.d/20-ffi.ini
 create mode 120000 php/8.0/apache2/conf.d/20-fileinfo.ini
 create mode 120000 php/8.0/apache2/conf.d/20-ftp.ini
 create mode 120000 php/8.0/apache2/conf.d/20-gettext.ini
 create mode 120000 php/8.0/apache2/conf.d/20-iconv.ini
 create mode 120000 php/8.0/apache2/conf.d/20-phar.ini
 create mode 120000 php/8.0/apache2/conf.d/20-posix.ini
 create mode 120000 php/8.0/apache2/conf.d/20-readline.ini
 create mode 120000 php/8.0/apache2/conf.d/20-shmop.ini
 create mode 120000 php/8.0/apache2/conf.d/20-sockets.ini
 create mode 120000 php/8.0/apache2/conf.d/20-sysvmsg.ini
 create mode 120000 php/8.0/apache2/conf.d/20-sysvsem.ini
 create mode 120000 php/8.0/apache2/conf.d/20-sysvshm.ini
 create mode 120000 php/8.0/apache2/conf.d/20-tokenizer.ini
 create mode 100644 php/8.0/apache2/php.ini
 create mode 120000 php/8.0/cli/conf.d/10-opcache.ini
 create mode 120000 php/8.0/cli/conf.d/10-pdo.ini
 create mode 120000 php/8.0/cli/conf.d/20-calendar.ini
 create mode 120000 php/8.0/cli/conf.d/20-ctype.ini
 create mode 120000 php/8.0/cli/conf.d/20-exif.ini
 create mode 120000 php/8.0/cli/conf.d/20-ffi.ini
 create mode 120000 php/8.0/cli/conf.d/20-fileinfo.ini
 create mode 120000 php/8.0/cli/conf.d/20-ftp.ini
 create mode 120000 php/8.0/cli/conf.d/20-gettext.ini
 create mode 120000 php/8.0/cli/conf.d/20-iconv.ini
 create mode 120000 php/8.0/cli/conf.d/20-phar.ini
 create mode 120000 php/8.0/cli/conf.d/20-posix.ini
 create mode 120000 php/8.0/cli/conf.d/20-readline.ini
 create mode 120000 php/8.0/cli/conf.d/20-shmop.ini
 create mode 120000 php/8.0/cli/conf.d/20-sockets.ini
 create mode 120000 php/8.0/cli/conf.d/20-sysvmsg.ini
 create mode 120000 php/8.0/cli/conf.d/20-sysvsem.ini
 create mode 120000 php/8.0/cli/conf.d/20-sysvshm.ini
 create mode 120000 php/8.0/cli/conf.d/20-tokenizer.ini
 create mode 100644 php/8.0/cli/php.ini
 create mode 100644 php/8.0/mods-available/calendar.ini
 create mode 100644 php/8.0/mods-available/ctype.ini
 create mode 100644 php/8.0/mods-available/exif.ini
 create mode 100644 php/8.0/mods-available/ffi.ini
 create mode 100644 php/8.0/mods-available/fileinfo.ini
 create mode 100644 php/8.0/mods-available/ftp.ini
 create mode 100644 php/8.0/mods-available/gettext.ini
 create mode 100644 php/8.0/mods-available/iconv.ini
 create mode 100644 php/8.0/mods-available/opcache.ini
 create mode 100644 php/8.0/mods-available/pdo.ini
 create mode 100644 php/8.0/mods-available/phar.ini
 create mode 100644 php/8.0/mods-available/posix.ini
 create mode 100644 php/8.0/mods-available/readline.ini
 create mode 100644 php/8.0/mods-available/shmop.ini
 create mode 100644 php/8.0/mods-available/sockets.ini
 create mode 100644 php/8.0/mods-available/sysvmsg.ini
 create mode 100644 php/8.0/mods-available/sysvsem.ini
 create mode 100644 php/8.0/mods-available/sysvshm.ini
 create mode 100644 php/8.0/mods-available/tokenizer.ini
 create mode 120000 systemd/system/timers.target.wants/phpsessionclean.timer
Counting objects: 1455, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (909/909), done.
Writing objects: 100% (1455/1455), done.
Total 1455 (delta 106), reused 1371 (delta 80)

So I'm not convinced that it has anything to do with Debian in general or TurnKey specifically.

Out of interest, have you tested the current TurnKey container? TBH, I doubt it will make any difference, but perhaps?

And regardless of whether it does, another way to go would be to transfer your data to an instance of the newer version. That has a newer PHP by default, so will support Nextcloud updates (you shouldn't need to upgrade PHP via the sury.org repo then).

Jeremy Davis's picture

In case you aren't aware, TurnKey v16.x containers need to be run as unprivileged. If you really need it to run privileged, be sure to enable nesting for the container or otherwise you will have problems with services not starting.

Sergio_L's picture

Thank you, clearly there must be something different in my servers/containers, I think I'll have no choice but to migrate everything, but that's a pita...

I'll post if I find a solution before migrating.

jk's picture

n/t
Jeremy Davis's picture

Are you getting the same error message? I mean this one:

E: Failed to fetch https://packages.sury.org/php/dists/stretch/main/binary-amd64/Packages Received HTTP code 403 from proxy after CONNECT

(The `stretch` in the path may be 'buster' or 'bullseye' depending on which base OS your system has).

If that's the case, then it's an issue with your proxy config. Please see this thread for more context.

jk's picture

to be honest it might have been a 404 (not found) although i am fairly sure i remember 403. in my case it turns out that stretch is no longer available on sury. upgraded system to buster, and my problem is solved.
Jeremy Davis's picture

Ah ha. If you were trying to use 'stretch' and that is no longer provided, then a 404 error would be expected. FYI '404' means 'not found' (usually because a URL doesn't exist - or the server isn't serving content); '403' means "forbidden" (meaning that the server found the URL but you don't have permission to access it).

Add new comment