Public key not available on update

I tried updating through apt-get update and been having these errors. This is a fairly new system and used v158 strech image.

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
 ───────────────────────────────────────
 DietPi     | 12:43 | Tue 02/01/18
 ───────────────────────────────────────
 V159       | RPi 3 Model B (armv7l)
 ───────────────────────────────────────
 IP Address | 192.168.0.127
 ───────────────────────────────────────

 Created by : Daniel Knight
 Web        : http://DietPi.com
 Twitter    : http://twitter.com/dietpi_
 Donate     : http://goo.gl/pzISt9
 DietPi's web hosting is powered by: MyVirtualServer.com

 dietpi-launcher  = All the DietPi programs in one place.
 dietpi-config    = Feature rich configuration tool for your device.
 dietpi-software  = Select optimized software for installation.
 htop             = Resource monitor.
 cpu              = Shows CPU information and stats.

        ^
       *#*
      *###*           Lightweight Xmas Justice Tips:
     *#####*          - Be good, Amazon do sell coal.
    *#######*         - Cherish every moment, even the awkward family gatherings                                                                                                                                                              ;)
   *#########*        - 'Ho Ho Ho, Green Giant' swaps his job!
  *Merry  Xmas*
 *#############*      All the best from everyone at DietPi =))


root@DietPi:~# apt-get update
Get:1 http://download.mono-project.com/repo/debian stretch InRelease [5,860 B]
Ign:1 http://download.mono-project.com/repo/debian stretch InRelease
Hit:2 http://dev2day.de/pms stretch InRelease
Hit:3 https://archive.raspberrypi.org/debian stretch InRelease
Get:4 https://apt.sonarr.tv master InRelease [13.3 kB]
Ign:4 https://apt.sonarr.tv master InRelease
Get:5 https://www.mirrorservice.org/sites/archive.raspbian.org/raspbian stretch                                                                                                                                                              InRelease [15.0 kB]
Fetched 34.2 kB in 3s (8,771 B/s)
Reading package lists... Done
W: GPG error: http://download.mono-project.com/repo/debian stretch InRelease: Th                                                                                                                                                             e following signatures couldn't be verified because the public key is not availa                                                                                                                                                             ble: NO_PUBKEY A6A19B38D3D831EF
W: The repository 'http://download.mono-project.com/repo/debian stretch InReleas                                                                                                                                                             e' is not signed.
N: Data from such a repository can't be authenticated and is therefore potential                                                                                                                                                             ly dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration deta                                                                                                                                                             ils.
W: GPG error: https://apt.sonarr.tv master InRelease: The following signatures c                                                                                                                                                             ouldn't be verified because the public key is not available: NO_PUBKEY EBFF6B99D                                                                                                                                                             9B78493
W: The repository 'https://apt.sonarr.tv master InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potential                                                                                                                                                             ly dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration deta                                                                                                                                                             ils.

Not sure if I did the right way but it seemed to fix the issue.

sudo apt-get install dirmngr

Then followed installing the keys from:
http://www.mono-project.com/download/#download-lin-raspbian
https://github.com/Sonarr/Sonarr/wiki/Installation