nginx/1.10.3
我正在尝试在(lightsail 实例上)运行的服务器上设置 brotly 压缩Debian 9.5 Stretch / Linux 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u5
。我使用以下命令尝试安装它:
$ sudo apt-add-repository -y ppa:hda-me/nginx-stable
$ sudo apt-get update
$ sudo apt-get install brotli nginx nginx-module-brotli
不幸的是第一个失败了:
gpg: keybox '/tmp/tmpwhmks25f/pubring.gpg' created
gpg: /tmp/tmpwhmks25f/trustdb.gpg: trustdb created
gpg: key 1F5EB010C5341279: public key "Launchpad PPA for hda_launchpad" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: no valid OpenPGP data found.
这导致无法安装该包,因此运行最后一条命令(之后suto apt-get update
)会导致无法找到该包:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nginx-module-brotli
我查阅了几份文档,但只有关于在 CentOS 或 ubuntu 上安装它的信息。