Vm: ondrej's PPA is not signed

Created on 2 Apr 2018  Â·  8Comments  Â·  Source: nextcloud/vm

Steps to reproduce

  1. Run the script.

Installation log (command output)

[\] W: GPG error: http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4F4EA0AAE5267A6C
E: The repository 'http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial InRelease' is not signed.

This causes errors further down the line.

Most helpful comment

Please try: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E5267A6C && sudo apt update

All 8 comments

Please try: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E5267A6C && sudo apt update

Or, come up with a better way of adding the PPA than this: https://github.com/nextcloud/vm/blob/master/nextcloud_install_production.sh#L464-L467

Are there any drawbacks to replacing add-apt-repository ppa:ondrej/apache2 -y with apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E5267A6C ?

You should not replace, rather add it before you add the PPA.

Should we add the apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E5267A6C line to master branch?

Needs to be tested first. So, if you can add it to the script and test it on localhost that would be awesome!

Just installed it running the scripts and it is signed.

`` Do you want to enable HTTP/2 system wide? ([y]es or [N]o): y gpg: keyring/tmp/tmpc1y2muvh/secring.gpg' created
gpg: keyring /tmp/tmpc1y2muvh/pubring.gpg' created gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com gpg: /tmp/tmpc1y2muvh/trustdb.gpg: trustdb created gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) OK Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following package was automatically installed and is no longer required: liblua5.1-0 Use 'sudo apt autoremove' to remove it. The following NEW packages will be installed: libbrotli1 liblua5.2-0 libnghttp2-14 libssl1.1 The following packages will be upgraded: apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libgeoip1 openssl 10 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 4 421 kB of archives. After this operation, 5 801 kB of additional disk space will be used. Get:1 http://se.archive.ubuntu.com/ubuntu xenial/main amd64 liblua5.2-0 amd64 5.2.4-1ubuntu1 [106 kB] Get:2 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libssl1.1 amd64 1.1.0h-2+ubuntu16.04.1+deb.sury.org+2 [1 341 kB] Get:3 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.0-2+ubuntu16.04.1+deb.sury.org+2 [16,9 kB] Get:4 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libaprutil1-ldap amd64 1.6.0-2+ubuntu16.04.1+deb.sury.org+2 [15,0 kB] Get:5 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libaprutil1 amd64 1.6.0-2+ubuntu16.04.1+deb.sury.org+2 [89,6 kB] Get:6 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libapr1 amd64 1.6.2-1+ubuntu16.04.1+deb.sury.org+2 [96,3 kB] Get:7 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libbrotli1 amd64 1.0.2-2+ubuntu16.04.1+deb.sury.org+1 [265 kB] Get:8 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libnghttp2-14 amd64 1.29.0-1+ubuntu16.04.1+deb.sury.org+1 [79,8 kB] Get:9 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 apache2 amd64 2.4.33-1+ubuntu16.04.1+deb.sury.org+1 [159 kB] Get:10 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 apache2-bin amd64 2.4.33-1+ubuntu16.04.1+deb.sury.org+1 [1 137 kB] Get:11 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 apache2-data all 2.4.33-1+ubuntu16.04.1+deb.sury.org+1 [163 kB] Get:12 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 apache2-utils amd64 2.4.33-1+ubuntu16.04.1+deb.sury.org+1 [143 kB] Get:13 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libgeoip1 amd64 1.6.9-4+deb.sury.org~xenial+1 [77,2 kB] Get:14 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 openssl amd64 1.1.0h-2+ubuntu16.04.1+deb.sury.org+2 [732 kB] Fetched 4 421 kB in 7s (606 kB/s) Preconfiguring packages ... Selecting previously unselected package libssl1.1:amd64. (Reading database ... 97192 files and directories currently installed.) Preparing to unpack .../libssl1.1_1.1.0h-2+ubuntu16.04.1+deb.sury.org+2_amd64.deb ... Unpacking libssl1.1:amd64 (1.1.0h-2+ubuntu16.04.1+deb.sury.org+2) ... Preparing to unpack .../libaprutil1-dbd-sqlite3_1.6.0-2+ubuntu16.04.1+deb.sury.org+2_amd64.deb ... Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.0-2+ubuntu16.04.1+deb.sury.org+2) over (1.5.4-1build1) ... Preparing to unpack .../libaprutil1-ldap_1.6.0-2+ubuntu16.04.1+deb.sury.org+2_amd64.deb ... Unpacking libaprutil1-ldap:amd64 (1.6.0-2+ubuntu16.04.1+deb.sury.org+2) over (1.5.4-1build1) ... Preparing to unpack .../libaprutil1_1.6.0-2+ubuntu16.04.1+deb.sury.org+2_amd64.deb ... Unpacking libaprutil1:amd64 (1.6.0-2+ubuntu16.04.1+deb.sury.org+2) over (1.5.4-1build1) ... Preparing to unpack .../libapr1_1.6.2-1+ubuntu16.04.1+deb.sury.org+2_amd64.deb ... Unpacking libapr1:amd64 (1.6.2-1+ubuntu16.04.1+deb.sury.org+2) over (1.5.2-3) ... Selecting previously unselected package libbrotli1:amd64. Preparing to unpack .../libbrotli1_1.0.2-2+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking libbrotli1:amd64 (1.0.2-2+ubuntu16.04.1+deb.sury.org+1) ... Selecting previously unselected package liblua5.2-0:amd64. Preparing to unpack .../liblua5.2-0_5.2.4-1ubuntu1_amd64.deb ... Unpacking liblua5.2-0:amd64 (5.2.4-1ubuntu1) ... Selecting previously unselected package libnghttp2-14:amd64. Preparing to unpack .../libnghttp2-14_1.29.0-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking libnghttp2-14:amd64 (1.29.0-1+ubuntu16.04.1+deb.sury.org+1) ... Preparing to unpack .../apache2_2.4.33-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Restoring lost conffile /etc/apache2/mods-available/cern_meta.load. Restoring lost conffile /etc/apache2/mods-available/imagemap.load. Unpacking apache2 (2.4.33-1+ubuntu16.04.1+deb.sury.org+1) over (2.4.18-2ubuntu3.5) ... Preparing to unpack .../apache2-bin_2.4.33-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking apache2-bin (2.4.33-1+ubuntu16.04.1+deb.sury.org+1) over (2.4.18-2ubuntu3.5) ... Preparing to unpack .../apache2-data_2.4.33-1+ubuntu16.04.1+deb.sury.org+1_all.deb ... Unpacking apache2-data (2.4.33-1+ubuntu16.04.1+deb.sury.org+1) over (2.4.18-2ubuntu3.5) ... Preparing to unpack .../apache2-utils_2.4.33-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ... Unpacking apache2-utils (2.4.33-1+ubuntu16.04.1+deb.sury.org+1) over (2.4.18-2ubuntu3.5) ... Preparing to unpack .../libgeoip1_1.6.9-4+deb.sury.org~xenial+1_amd64.deb ... Unpacking libgeoip1:amd64 (1.6.9-4+deb.sury.org~xenial+1) over (1.6.9-1) ... Preparing to unpack .../openssl_1.1.0h-2+ubuntu16.04.1+deb.sury.org+2_amd64.deb ... Unpacking openssl (1.1.0h-2+ubuntu16.04.1+deb.sury.org+2) over (1.0.2g-1ubuntu4.11) ... Processing triggers for libc-bin (2.23-0ubuntu10) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for systemd (229-4ubuntu21.2) ... Processing triggers for ureadahead (0.100.0-19) ... Processing triggers for ufw (0.35-0ubuntu2) ... Setting up libssl1.1:amd64 (1.1.0h-2+ubuntu16.04.1+deb.sury.org+2) ... Setting up libapr1:amd64 (1.6.2-1+ubuntu16.04.1+deb.sury.org+2) ... Setting up libaprutil1:amd64 (1.6.0-2+ubuntu16.04.1+deb.sury.org+2) ... Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.0-2+ubuntu16.04.1+deb.sury.org+2) ... Setting up libaprutil1-ldap:amd64 (1.6.0-2+ubuntu16.04.1+deb.sury.org+2) ... Setting up libbrotli1:amd64 (1.0.2-2+ubuntu16.04.1+deb.sury.org+1) ... Setting up liblua5.2-0:amd64 (5.2.4-1ubuntu1) ... Setting up libnghttp2-14:amd64 (1.29.0-1+ubuntu16.04.1+deb.sury.org+1) ... Setting up apache2-bin (2.4.33-1+ubuntu16.04.1+deb.sury.org+1) ... Setting up apache2-data (2.4.33-1+ubuntu16.04.1+deb.sury.org+1) ... Setting up apache2-utils (2.4.33-1+ubuntu16.04.1+deb.sury.org+1) ... Setting up apache2 (2.4.33-1+ubuntu16.04.1+deb.sury.org+1) ... Installing new version of config file /etc/apache2/apache2.conf ... Installing new version of config file /etc/apache2/envvars ... Installing new version of config file /etc/apache2/mods-available/deflate.conf ... Installing new version of config file /etc/apache2/mods-available/mime.conf ... Installing new version of config file /etc/apache2/mods-available/proxy_html.load ... Installing new version of config file /etc/apache2/mods-available/userdir.conf ... Installing new version of config file /etc/init.d/apache-htcacheclean ... Installing new version of config file /etc/init.d/apache2 ... Installing new version of config file /etc/logrotate.d/apache2 ... Enabling module reqtimeout. insserv: warning: current start runlevel(s) (empty) of scriptapache-htcacheclean' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `apache-htcacheclean' overrides LSB defaults (0 1 6).
Setting up libgeoip1:amd64 (1.6.9-4+deb.sury.org~xenial+1) ...
Setting up openssl (1.1.0h-2+ubuntu16.04.1+deb.sury.org+2) ...
Installing new version of config file /etc/ssl/openssl.cnf ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.2) ...
Processing triggers for ureadahead (0.100.0-19) ...
/etc/apache2/mods-available/http2.conf was successfully created
Enabling module http2.

Cool thank you. If I get the same issue I'll let you know. Thanks Daniel!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EasyCompZLD picture EasyCompZLD  Â·  4Comments

szaimen picture szaimen  Â·  6Comments

unamundan picture unamundan  Â·  6Comments

wouterVE picture wouterVE  Â·  4Comments

rakekniven picture rakekniven  Â·  7Comments