DietPi icon indicating copy to clipboard operation
DietPi copied to clipboard

E: The repository 'http://repo.mysql.com/apt/debian bookworm InRelease' is not signed.

Open oespinozai opened this issue 3 years ago • 5 comments

reference code

4acdea54-5089-40e4-93d5-84a53255cab6

oespinozai avatar Nov 21 '23 13:11 oespinozai

You added the 3rd party repo repo.mysql.com to your system, without adding the key. I am not sure for what reason you need a more recent MySQL than provided by Debian Bookworm, and instead of MariaDB (which I would usually prefer), but if this was intentional, review whichever guide you used to add this repo, and check for a step which adds the related GPG key.

MichaIng avatar Nov 21 '23 13:11 MichaIng

Hi thanks for the swift reply. I installed that because I ran out of ideas reading guides on how to sort this:

Err:1 http://repo.mysql.com/apt/debian bookworm InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4ndsvknsdkjvndkjsvsd  (redacted)

oespinozai avatar Nov 21 '23 14:11 oespinozai

You should remove this repository if not needed.

Joulinar avatar Nov 21 '23 14:11 Joulinar

I installed that because I ran out of ideas reading guides on how to sort this:

The repository is the reason for the error, so there must have been another reason you installed it in the first place 😄.

If you hence need it for a particular reason, this should do it:

curl -sSf 'https://repo.mysql.com/RPM-GPG-KEY-mysql-2022' | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/mysql.gpg

But if you do not actually need (a very recent) MySQL, I would remove it. To check which file contains it:

grep -l 'repo.mysql.com' /etc/apt/sources.list.d/*.list

MichaIng avatar Nov 21 '23 14:11 MichaIng

thank you all that solved it, im a complete noob

oespinozai avatar Nov 21 '23 14:11 oespinozai