Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public Key issue? #1388

Closed
pedrom34 opened this issue Jan 12, 2018 · 11 comments
Closed

Public Key issue? #1388

pedrom34 opened this issue Jan 12, 2018 · 11 comments
Labels
Milestone

Comments

@pedrom34
Copy link

Creating a bug report/issue:

Required Information:

  • DietPi Version | 159
  • SBC Device | RPi 2 Model B (armv71)
  • Power supply used : 5v 2.5A
  • SD card used : Sandisk ultra 32Gb
  • Distro (EG: Jessie) | Linux DietPi 4.9.62-v7+ Fix for dumb or unset TERM #2 SMP Fri Nov 17 23:52:26 GMT 2017 armv7l GNU/Linux

Additional Information (if applicable):

Fresh install. Some dietpi software installed.
COPS installed according to the official HowTo, and working.
On the use of apt-get update

Expected behaviour:

update

Actual behaviour:

W: GPG error: http://download.mono-project.com/repo/debian stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A6A19B38D3D831EF
W: The repository 'http://download.mono-project.com/repo/debian stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Steps to reproduce:

just apt-get update

@Fourdee
Copy link
Collaborator

Fourdee commented Jan 12, 2018

@pedrom34

Thanks for the report 👍

We'll check the code, however, i'll flag this is low priority due to it being a warning, which will not effect the operation of repo.

@pedrom34
Copy link
Author

Thanks. ☺️

@Fourdee
Copy link
Collaborator

Fourdee commented Jan 12, 2018

@pedrom34

Lets check mono is installed via dietpi-software, please paste results:

dietpi-software list | grep mono

If it reports =2, or you installed mono outside of DietPi, try re-adding the key:

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
apt-get update

@pedrom34
Copy link
Author

pedrom34 commented Jan 12, 2018

id 150 | =2 | mono: runtime libraries and repo |

So I did:
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

and got:
Executing: /tmp/apt-key-gpghome.xr14d7xmGq/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory gpg: connecting dirmngr at '/run/user/0/gnupg/d.t8z1iyjmdadjsz5893iwrw5n/S.dirmngr' failed: No such file or directory gpg: keyserver receive failed: No dirmngr

@MichaIng
Copy link
Owner

MichaIng commented Jan 19, 2018

@pedrom34

  • First of all there seems to be a special Raspbian repo: https://download.mono-project.com/repo/debian/dists/raspbianstretch/
  • And it is available via https, as you can see.
  • I would suggest to add it to souces as: deb https://download.mono-project.com/repo/debian raspbianstretch main
  • Just found for verification: http://www.mono-project.com/download/#download-lin-raspbian
  • Just to sort out: The package gnupg is installed right? And as I see dirmngr is asked for, which is recommendation of (so by default installed together with) gnupg, so please also verify that it's installed.
  • To access the repo via https, also apt-transport-https and ca-certificates are needed.

@pedrom34
Copy link
Author

pedrom34 commented Jan 20, 2018

Hi @MichaIng

gnupg was installed, dirmngr was not. With:

apt-get install dirmngr
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian raspbianstretch main" | sudo tee /etc/apt/sources.list.d/mono-official.list
apt-get update

problem is solved. But why dirmngr wasn't installed?

@Fourdee
Copy link
Collaborator

Fourdee commented Jan 20, 2018

Notes:

Tried this on XU4 Jessie, seems fine without dirmngr:

root@DietPi:~# dpkg -l | grep dirmngr
root@DietPi:~#

root@DietPi:~# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.kPhYCtoJvW --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
gpg: requesting key D3D831EF from hkp server keyserver.ubuntu.com
gpg: key D3D831EF: public key "Xamarin Public Jenkins (auto-signing) <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

Fourdee referenced this issue Feb 28, 2018
+ General | Resolved multiple issues with failed GNU key management
during APT installs from non-standard repos. Dirmngr is now installed on
all DietPi systems by default:
https://github.com/Fourdee/DietPi/issues/1388
@Fourdee
Copy link
Collaborator

Fourdee commented Feb 28, 2018

General | Resolved multiple issues with failed GNU key management during APT installs from non-standard repos. Dirmngr is now installed on all DietPi systems by default: https://github.com/Fourdee/DietPi/issues/1388

Marking as completed.

@Fourdee Fourdee closed this as completed Feb 28, 2018
@Fourdee Fourdee added this to the v6.3 milestone Feb 28, 2018
@Fourdee Fourdee mentioned this issue Mar 7, 2018
Fourdee referenced this issue Mar 7, 2018
**v6.3**
(07/03/18)

**Image Changes:**

Native PC BIOS | Image now available: http://dietpi.com/download

NanoPi Neo | Image now available (based on FriendlyARM official image): https://github.com/Fourdee/DietPi/issues/1588

**Changes / Improvements / Optimizations:**

General | DietPi now uses its own "dietpi-postboot.service" to initiate dietpi-services, instead of /etc/rc.local. The latter will be reset on update, but in case of manual adjustments, a backup is safed to dietpi_userdata. The initiating "rc-local.service" will stay in place as well, so /etc/rc.local can be used as before: https://github.com/Fourdee/DietPi/issues/1376

General | Additional getty's (2-6) are now disabled via mask. This reduces resource usage for unneeded screens: https://github.com/Fourdee/DietPi/issues/1541

General | APT: 'Disabled install recommends' is now standard and default across all DietPi images: https://github.com/Fourdee/DietPi/issues/1482#issuecomment-368031044

General | Sparky SBC kernel patches: Pro-Ject-S2 dac DSD native support on sparky, also other few dac ids. Thanks @sudeep.

General | /tmp tmpfs size is now automatically set to 50% of RAM+SWAP, (previously 50% RAM only). To prevent out of memory errors during certain software installations (eg: Mono), where the swapfile can be used only when needed: https://github.com/Fourdee/DietPi/issues/1027#issuecomment-369435049

DietPi-Automation | dietpi.txt entries and support added for WPA2 Enterprise (WPA-EAP). Many thanks to @Symo for implementing this feature!: https://github.com/Fourdee/DietPi/pull/1547

DietPi-Backup | Once backup is completed, you will be asked if you wish to view the log file, for the full rsync log.

DietPi-Banner | Improved notification when no network is detected: https://github.com/Fourdee/DietPi/issues/1576

DietPi-Globals | G_WHIP*: Further additions and improvements, including automatic scaling: https://github.com/Fourdee/DietPi/issues/1546 https://github.com/Fourdee/DietPi/issues/1546#issuecomment-370173876

DietPi-LetsEncrypt | Lighttpd: Added support for HSTS (HTTP Strict Transport Security): https://github.com/Fourdee/DietPi/pull/1553

DietPi-LetsEncrypt | Minor rework and cleaning, using now /etc/systemd/system/certbot.service.d/dietpi-script.conf for web server specific renewal hooks: https://github.com/Fourdee/DietPi/pull/1553

DietPi-Software | Shairport-sync: Updated to 3.1.7 for all devices. Also enabled for x86_64: https://github.com/Fourdee/DietPi/issues/1548

DietPi-Software | Proftp: Now defaults to dietpi user with root login off: https://github.com/Fourdee/DietPi/issues/1529#issuecomment-367644593

DietPi-Software | RPi Cam Web Interface (Previously DietPiCam): Updated to 6.4.17 and resolves previously failed installation. URL has also changed to http://ip/rpicam : https://github.com/Fourdee/DietPi/issues/1512

DietPi-Software | Sonarr: Now uses the develop repo branch, inline with our Radarr install: https://github.com/Fourdee/DietPi/issues/1566#issuecomment-369334473

DietPi-Software | Mono: Raspbian dist is now used for RPi devices: https://github.com/Fourdee/DietPi/issues/1566

DietPi-Software | FFmpeg: Fix backports dependency issues for all Odroids: https://github.com/Fourdee/DietPi/issues/1556

DietPi-Software | Improved UI options during NTPD failure. You will now be given multiple options that will assist in resolving NTPD time sync issues on your network: https://github.com/Fourdee/DietPi/issues/1580#issuecomment-370153882

DietPi-Software | NTPD check will now run after the internet connection test, to prevent unnecessary delay when network is not yet configured:

DietPi-Software | SubSonic 5: Replaced with Airsonic: https://github.com/Fourdee/DietPi/issues/1585

DietPi-Software | Aria2: Optimized installation and connection settings based on hardware. Now uses a configuration file '/var/lib/dietpi/dietpi-software/installed/aria2.conf', which will allow users to change aria2 settings permanently. Please note, the aria2-webui does not support saving settings after session shutdown, this is a known limitation with the software, please use the aria2.conf to make changes: https://github.com/Fourdee/DietPi/issues/1575

DietPi-Sync | Once sync is completed, you will be asked if you wish to view the log file, for the full rsync log.

DietPi-Update | G_AGUP/G_AGUG: Now runs prior to our patch system. Ensuring APT is upto date during our updates: http://dietpi.com/phpbb/viewtopic.php?f=11&t=2894&p=11150#p11149

**Bug Fixes:**

General | G_AGUG: --allow-unauthenticated added for Stretch+ by default (inline with other G_AG commands)

General | Resolved POSIX issues with dropbear (limitation) and SSH sessions. We now detect for presence of POSIX and set user selected locale during session load: https://github.com/Fourdee/DietPi/issues/1540

General | Resolved multiple issues with failed GNU key management during APT installs from non-standard repos. Dirmngr is now installed on all DietPi systems by default: https://github.com/Fourdee/DietPi/issues/1388

General | Resolved basic APT issues with Meveric's repo and failing dependencies. Debian repo is now used in the first instance: https://github.com/Fourdee/DietPi/pull/1571#issuecomment-369973745

General | DietPi-Globals are now loaded prior to login script. Ensures aliases are functional during exit of 1st run setup: https://github.com/Fourdee/DietPi/issues/1580#issuecomment-370149636

DietPi-Config | Resolved an issue with NTPD mode #4 (systemd) reporting dbus errors, dbus is now installed on demand: https://github.com/Fourdee/DietPi/issues/1580#issuecomment-370173703

DietPi-LetsEncrypt | Lighttpd/Minio: Fixed auto renewal: https://github.com/Fourdee/DietPi/pull/1553

DietPi-LetsEncrypt | Minio: Fixed an issue, where port 443 listening would fail due to missing libcap2-bin/setcap package: https://github.com/Fourdee/DietPi/pull/1553#issuecomment-368261474

DietPi-Software | Radarr/Sonarr: Reinstall patch, to bring binaries upto date, which resolves issues with the latest mono lib version: https://github.com/Fourdee/DietPi/issues/1566

DietPi-Software | Desktops: USB drive removed from .gtk-bookmarks as no longer used in DietPi.

DietPi-Software | Shairport-Sync: Resolved ARMv6 binary Illegal instruction: https://github.com/Fourdee/DietPi/issues/1548
DietPi-Software | Lighttpd: Resolved an issue with failed enable of php module, due to perl being a undocumented pre-req for 'lighttpd-enable-mod'.

DietPi-Software | MotionEye: Resolved failed installation due to missing build-essential pre-req: https://github.com/Fourdee/DietPi/issues/1564

DietPi-Software | SubSonic6: Resolved broken URL link. Binary now hosted on dietpi.com: https://github.com/Fourdee/DietPi/issues/1582

DietPi-Services | Service stop order is now reversed: https://github.com/Fourdee/DietPi/issues/1462#issue-294140894

DietPi-Set_Hardware | Resolved issues with serial consoles not be disabled without dbus installed. Serial consoles are now masked/unmasked (previously disabled): https://github.com/Fourdee/DietPi/issues/1482

DietPi-Update | Resolved an issue where .update_available would exist during reboot, causing banner to display update available incorrectly: https://github.com/Fourdee/DietPi/issues/1535
@clarky0000
Copy link

Im having this issue while trying to install Sonarr. I'm running Dietpi version 159 also. I see you say
Dirmngr is now installed on all DietPi systems by default
Can I update my existing version? If so how? Or do I have to rebuild from a new image?
Thanks in advance
clarky

@pedrom34
Copy link
Author

pedrom34 commented May 1, 2018

You have go from scratch to switch from v159 to v6.X.

@Fourdee
Copy link
Collaborator

Fourdee commented May 1, 2018

@clarky0000

Please see the v6.x FAQ for more information:
https://github.com/Fourdee/DietPi/issues/1355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants