title: (Closed) Error on apt-get update (sury.org) [linux]
body: <p>I'm trying to <code>apt-get update</code> on my virtualmin (debian) but it fails with some package (packages.sury.org)</p>
  
  <p>then I check the package with:</p>
  
  <pre><code>curl --verbose -SLO https://packages.sury.org/php/pool/main/p/pcre3/libpcre3_8.41-1+0~20170825202309.5+jessie~1.gbp97d153_amd64.deb
  </code></pre>
  
  <p>And it throw:</p>
  
  <pre><code>HTTP/1.1 403 Forbidden
  &lt; Date: Thu, 14 May 2020 00:37:49 GMT
  &lt; Content-Type: text/plain; charset=UTF-8
  &lt; Content-Length: 16
  &lt; Connection: keep-alive
  &lt; Set-Cookie: __cfduid=df716884f5fd8ee4d658ae79b60f1589416669; expires=Sat, 13-Jun-20 00:37:49 GMT; path=/; domain=.sury.org; HttpOnly; SameSite=Lax; Secure
  &lt; Cache-Control: max-age=15
  &lt; Expires: Thu, 14 May 2020 00:38:04 GMT
  &lt; Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
  * Server cloudflare is not blacklisted
  &lt; Server: cloudflare
  &lt; CF-RAY: 59308d88e98bcd8f-CDG
  &lt; alt-svc: h3-27=":443"; ma=86400, h3-25=":443"; ma=86400, h3-24=":443"; ma=86400, h3-23=":443"; ma=86400
  &lt; cf-request-id: 02b236c9940000cd8fb3200000001
  &lt; 
  { [data not shown]
  
  </code></pre>
  
  <p>How can I solve it?</p>
  
  <hr>
  
  <blockquote>
    <p>Edit: Solution</p>
  </blockquote>
  
  <pre><code>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
  </code></pre>
  
  <p>then run: <code>apt-get update</code></p>
  
  <p>That works for me! hope it helps someone in the future :)</p>
  
  <p>Source: <a href="https://df.tips/t/topic/334" rel="nofollow noreferrer">https://df.tips/t/topic/334</a></p>