I’m trying to apt-get update
on my virtualmin (debian) but it fails with some package (packages.sury.org)
then I check the package with:
curl --verbose -SLO https://packages.sury.org/php/pool/main/p/pcre3/libpcre3_8.41-1+0~20170825202309.5+jessie~1.gbp97d153_amd64.deb
And it throw:
HTTP/1.1 403 Forbidden
< Date: Thu, 14 May 2020 00:37:49 GMT
< Content-Type: text/plain; charset=UTF-8
< Content-Length: 16
< Connection: keep-alive
< Set-Cookie: __cfduid=df716884f5fd8ee4d658ae79b60f1589416669; expires=Sat, 13-Jun-20 00:37:49 GMT; path=/; domain=.sury.org; HttpOnly; SameSite=Lax; Secure
< Cache-Control: max-age=15
< Expires: Thu, 14 May 2020 00:38:04 GMT
< Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
* Server cloudflare is not blacklisted
< Server: cloudflare
< CF-RAY: 59308d88e98bcd8f-CDG
< alt-svc: h3-27=":443"; ma=86400, h3-25=":443"; ma=86400, h3-24=":443"; ma=86400, h3-23=":443"; ma=86400
< cf-request-id: 02b236c9940000cd8fb3200000001
<
{ [data not shown]
How can I solve it?
Edit: Solution
apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
then run: apt-get update
That works for me! hope it helps someone in the future 🙂
Source: https://df.tips/t/topic/334
3
Answers
If you have a look at packages.sury.org/php/pool/main/p/pcre3/, you can see that package
doesn’t exist.
The current version in jessie’s Packages list (amd64, 13-May-2020 07:12) is
libpcre3_8.43-1+0_20190710.6+debian8_1.gbpbfc49f_amd64.deb
I had the same issue which was fixed by redownloading the gpg key:
After this you can update or install your packages.
For older Debian version like stretch, I solved it by adding this repository
in the following file
Then added the repository key