1

我正在尝试apt-get update使用我的 virtualmin(debian),但它因某些软件包而失败(packages.sury.org)

然后我检查包裹:

curl --verbose -SLO https://packages.sury.org/php/pool/main/p/pcre3/libpcre3_8.41-1+0~20170825202309.5+jessie~1.gbp97d153_amd64.deb

它抛出:

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]

我该如何解决?


编辑:解决方案

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

然后运行:apt-get update

这对我行得通!希望它对未来的人有所帮助:)

来源:https ://df.tips/t/topic/334

4

2 回答 2

1

我遇到了同样的问题,通过重新下载 gpg 密钥解决了这个问题:

wget https://packages.sury.org/php/apt.gpg

sudo apt-key add apt.gpg

在此之后,您可以更新或安装您的软件包。

于 2021-12-14T09:41:51.437 回答
0

如果您查看packages.sury.org/php/pool/main/p/pcre3/,您可以看到该包

libpcre3_8.41-1+0~20170825202309.5+jessie~1.gbp97d153_amd64.deb

不存在。

jessie 的Packages列表中的当前版本 (amd64, 13-May-2020 07:12) 是

libpcre3_8.43-1+0_20190710.6+debian8_1.gbpbfc49f_amd64.deb

于 2020-05-14T01:44:30.047 回答