#864640 synaptic: when modifying repository's a file named trusted.gpg is created in /etc/apt/

Package:
synaptic
Source:
synaptic
Description:
Graphical package manager
Submitter:
David Bentley
Date:
2017-10-27 06:57:02 UTC
Severity:
normal
#864640#5
Date:
2017-06-12 07:22:08 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

#864640#10
Date:
2017-07-31 10:47:07 UTC
From:
To:
Have this bug too, started from Jessie, now also on clean-insalled Stretch
(actually, had to clean install after screwing the system trying to resolve
this).

Error: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file
is not readable by user '_apt' executing apt-key.

Allegedly caused by adjusting the repositories vis Synaptic's "Settings ->
Repositories" menu.

More:

https://lists.debian.org/debian-user/2017/07/msg00219.html

https://www.reddit.com/r/debian/comments/6dwicb/apt_aptkey_on_stretch_broken/

https://www.reddit.com/r/debian/comments/5yxyp9/stretch_aptget_update_errors/

#864640#15
Date:
2017-10-27 06:44:14 UTC
From:
To:
I've tried to have a first look at it. So I've installed the nonfree
DVD-Image 9.2 within a VirtualBox container. All went fine, until I've
tried to update the APT database. Both, apt and Synaptics update fails.
In both cases the error reports, that /etc/apt/trusted.gpg is not
accessible by user "_apt".

The recommendation I've found was to delete trusted.gpg.

OK, this was a workaround for using apt. Both update and upgrade works
without errors. Trying Synaptic leads to the previous behavior. The file
trusted.gpg appears again and with this file, the error returns.

It is hard to believe that this bug is known since June and that there
is neither a fix nor a solution. Deleting the file has worked for me,
but I can't say that there are no side effects.

How should a newbie solve this? Without a work-around there are no
updates possible.