rabbitmq / erlang-debian-package

Fork of the official Debian package for Erlang
https://launchpad.net/~rabbitmq/+archive/ubuntu/rabbitmq-erlang
Apache License 2.0
12 stars 9 forks source link

`An error occurred during the signature verification` (both launchpad and techsmiths repos) #30

Closed Fuzzwah closed 2 years ago

Fuzzwah commented 2 years ago
 A fork of the official Erlang packages for Debian, produced to package most recent releases as they come out.
 More info: https://launchpad.net/~rabbitmq/+archive/ubuntu/rabbitmq-erlang
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Hit:1 http://azure.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:5 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Get:6 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu xenial InRelease [5173 B]
Get:7 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu bionic InRelease [5179 B]
Hit:8 http://ppa.launchpad.net/fish-shell/release-3/ubuntu focal InRelease
Get:9 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu bionic InRelease [5143 B]
Get:10 https://deb.goaccess.io focal InRelease [2345 B]
Err:10 https://deb.goaccess.io focal InRelease
  The following signatures were invalid: EXPKEYSIG 97BD1A0133449C3D Gerardo Orellana <goaccess@prosoftcorp.com>
Get:11 http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu focal InRelease [18.1 kB]
Get:12 http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu focal/main amd64 Packages [8556 B]
Get:13 http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu focal/main Translation-en [5220 B]
Fetched 386 kB in 2s (233 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://deb.goaccess.io focal InRelease: The following signatures were invalid: EXPKEYSIG 97BD1A0133449C3D Gerardo Orellana <goaccess@prosoftcorp.com>
W: Failed to fetch https://deb.goaccess.io/dists/focal/InRelease  The following signatures were invalid: EXPKEYSIG 97BD1A0133449C3D Gerardo Orellana <goaccess@prosoftcorp.com>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Hit:1 http://azure.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:4 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu xenial InRelease [5173 B]
Get:5 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu bionic InRelease [5179 B]
Get:6 https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu bionic InRelease [5143 B]
Hit:7 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Get:8 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:9 http://ppa.launchpad.net/fish-shell/release-3/ubuntu focal InRelease
Get:10 https://deb.goaccess.io focal InRelease [2345 B]
Err:10 https://deb.goaccess.io focal InRelease
  The following signatures were invalid: EXPKEYSIG 97BD1A0133449C3D Gerardo Orellana <goaccess@prosoftcorp.com>
Hit:11 http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu focal InRelease
Fetched 354 kB in 1s (381 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
17 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://deb.goaccess.io focal InRelease: The following signatures were invalid: EXPKEYSIG 97BD1A0133449C3D Gerardo Orellana <goaccess@prosoftcorp.com>
W: Failed to fetch https://deb.goaccess.io/dists/focal/InRelease  The following signatures were invalid: EXPKEYSIG 97BD1A0133449C3D Gerardo Orellana <goaccess@prosoftcorp.com>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Fuzzwah commented 2 years ago

The GPG key has expired:

/etc/apt/trusted.gpg.d/goaccess.gpg
-----------------------------------
pub   rsa3072 2020-05-17 [SC] [expired: 2022-05-17]
      C03B 4888 7D5E 56B0 4671  5D32 97BD 1A01 3344 9C3D
uid           [ expired] Gerardo Orellana <goaccess@prosoftcorp.com>

I worked around this using:

sudo apt-key del 97BD1A0133449C3D 
sudo rm -rf /usr/share/keyrings/goaccess.gpg 
wget -O - https://deb.goaccess.io/gnugpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/goaccess.gpg >/dev/null 
cd /usr/share/keyrings 
sudo apt-key add goaccess.gpg

However, now when I'm trying to get rabbitmq-server back up and working I'm getting the following errors:

The following packages have unmet dependencies:
 rabbitmq-server : Depends: erlang-base (< 1:25.0) but 1:25.0-1rmq1ppa1~ubuntu20.04.1 is to be installed or
                            erlang-base-hipe (< 1:25.0) or
                            esl-erlang (< 1:25.0) but it is not going to be installed
                   Depends: erlang-crypto (< 1:25.0) or
                            esl-erlang (< 1:25.0) but it is not going to be installed
                   Depends: erlang-eldap (< 1:25.0) but 1:25.0-1rmq1ppa1~ubuntu20.04.1 is to be installed or
                            esl-erlang (< 1:25.0) but it is not going to be installed
                   Depends: erlang-inets (< 1:25.0) or
                            esl-erlang (< 1:25.0) but it is not going to be installed
                   Depends: erlang-mnesia (< 1:25.0) or
                            esl-erlang (< 1:25.0) but it is not going to be installed
                   Depends: erlang-os-mon (< 1:25.0) or
                            esl-erlang (< 1:25.0) but it is not going to be installed
                   Depends: erlang-parsetools (< 1:25.0) or
                            esl-erlang (< 1:25.0) but it is not going to be installed
                   Depends: erlang-public-key (< 1:25.0) or
                            esl-erlang (< 1:25.0) but it is not going to be installed
                   Depends: erlang-runtime-tools (< 1:25.0) or
                            esl-erlang (< 1:25.0) but it is not going to be installed
                   Depends: erlang-ssl (< 1:25.0) or
                            esl-erlang (< 1:25.0) but it is not going to be installed
                   Depends: erlang-syntax-tools (< 1:25.0) or
                            esl-erlang (< 1:25.0) but it is not going to be installed
                   Depends: erlang-tools (< 1:25.0) or
                            esl-erlang (< 1:25.0) but it is not going to be installed
                   Depends: erlang-xmerl (< 1:25.0) or
                            esl-erlang (< 1:25.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I've attempted to install the esl-erlang package, was scared because it includes soooooooo much stuff that I clearly don't need (gnome libs, etc) but I gave it a shot anyway. Even with it installed, trying to install rabbitmq-server complained and won't progress.

Fuzzwah commented 2 years ago

I switched my brain on and realised that the errors are (and all this mess started) due to erlang being updated on my host to 25.0, which rabbitmq-server doesn't support.

So I removed the erlang packages and pinned them to 24.3:

sudo vi /etc/apt/preferences.d/erlang
Package: erlang*
Pin: version 1:24.3*
Pin-Priority: 501

Then installed them again, and now I'm able to reinstall rabbitmq-server,