Apt-Get Update: Keyring not Readable by '_apt'

Asked by Robby Sangha

When I run "sudo apt-get update", the following is returned:

Hit:1 http://download.nus.edu.sg/mirror/ubuntu xenial InRelease
Ign:2 http://dl.google.com/linux/talkplugin/deb stable InRelease
Hit:3 http://download.nus.edu.sg/mirror/ubuntu xenial-updates InRelease
Hit:4 http://download.nus.edu.sg/mirror/ubuntu xenial-backports InRelease
Hit:5 http://dl.google.com/linux/talkplugin/deb stable Release
Hit:6 http://archive.canonical.com/ubuntu xenial InRelease
Hit:7 http://download.nus.edu.sg/mirror/ubuntu xenial-security InRelease
Hit:8 http://archive.canonical.com/ubuntu saucy InRelease
Hit:9 http://archive.canonical.com xenial InRelease
Reading package lists... Done
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/chris-lea-node_js.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/claudiocn-slm.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/texworks-stable.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/webupd8team-sublime-text-2.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/chris-lea-node_js.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/claudiocn-slm.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/texworks-stable.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/webupd8team-sublime-text-2.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/chris-lea-node_js.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/claudiocn-slm.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/texworks-stable.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/webupd8team-sublime-text-2.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://dl.google.com/linux/talkplugin/deb/dists/stable/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg.d/chris-lea-node_js.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://dl.google.com/linux/talkplugin/deb/dists/stable/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg.d/claudiocn-slm.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://dl.google.com/linux/talkplugin/deb/dists/stable/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg.d/texworks-stable.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://dl.google.com/linux/talkplugin/deb/dists/stable/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg.d/webupd8team-sublime-text-2.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.canonical.com/ubuntu/dists/xenial/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/chris-lea-node_js.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.canonical.com/ubuntu/dists/xenial/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/claudiocn-slm.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.canonical.com/ubuntu/dists/xenial/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/texworks-stable.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.canonical.com/ubuntu/dists/xenial/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/webupd8team-sublime-text-2.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/chris-lea-node_js.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/claudiocn-slm.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/texworks-stable.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://download.nus.edu.sg/mirror/ubuntu/dists/xenial-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/webupd8team-sublime-text-2.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.canonical.com/ubuntu/dists/saucy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/chris-lea-node_js.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.canonical.com/ubuntu/dists/saucy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/claudiocn-slm.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.canonical.com/ubuntu/dists/saucy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/texworks-stable.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.canonical.com/ubuntu/dists/saucy/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/webupd8team-sublime-text-2.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.canonical.com/dists/xenial/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/chris-lea-node_js.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.canonical.com/dists/xenial/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/claudiocn-slm.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.canonical.com/dists/xenial/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/texworks-stable.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://archive.canonical.com/dists/xenial/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/webupd8team-sublime-text-2.gpg are ignored as the file is not readable by user '_apt' executing apt-key.

I don't know if I need to change the permissions of the individual files so that '_apt' is able to read it. I'm not super familiar with Ubuntu and what settings should not be meddled with. Please offer any advice on the issue.

I am running 16.04 Xenial.
I also recently moved to a different country and changed the mirror that I get updates from (in case that is relevant).

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Please provide the outptu that you receive fir the commands

uname -a
lsb_release -crid
ls -la /etc/apt/trusted.gpg
ls -la /etc/apt/trusted.gpg.d/

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Have you been messing with chown or chmod recently?

Revision history for this message
Robby Sangha (robby.san) said :
#3

Here are the outputs to the commands requested;

uname -a:
Linux pacificus 4.4.0-112-generic #135-Ubuntu SMP Fri Jan 19 11:48:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -crid:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial

ls -la /etc/apt/trusted.gpg:
-rw-r--r-- 1 root root 20434 Jun 5 2016 /etc/apt/trusted.gpg

ls -la /etc/apt/trusted.gpg.d/:
total 72
drwxr-xr-x 2 root root 4096 Jun 3 2017 .
drwxr-xr-x 6 root root 4096 Jun 5 2016 ..
-rw------- 1 root root 351 Aug 12 2013 chris-lea-node_js.gpg
-rw------- 1 root root 0 Aug 12 2013 chris-lea-node_js.gpg~
-rw------- 1 root root 367 Jul 9 2013 claudiocn-slm.gpg
-rw------- 1 root root 0 Jul 9 2013 claudiocn-slm.gpg~
-rw-r--r-- 1 root root 5138 Dec 1 2014 debian-archive-jessie-automatic.gpg
-rw-r--r-- 1 root root 5147 Dec 1 2014 debian-archive-jessie-security-automatic.gpg
-rw-r--r-- 1 root root 2775 Dec 1 2014 debian-archive-jessie-stable.gpg
-rw-r--r-- 1 root root 4084 Dec 1 2014 debian-archive-squeeze-automatic.gpg
-rw-r--r-- 1 root root 2853 Dec 1 2014 debian-archive-squeeze-stable.gpg
-rw-r--r-- 1 root root 3780 Dec 1 2014 debian-archive-wheezy-automatic.gpg
-rw-r--r-- 1 root root 2851 Dec 1 2014 debian-archive-wheezy-stable.gpg
-rw-r--r-- 1 root root 360 Jan 31 2014 linrunner-tlp.gpg
-rw-r--r-- 1 root root 0 Jan 31 2014 linrunner-tlp.gpg~
-rw------- 1 root root 356 Sep 18 2013 texworks-stable.gpg
-rw------- 1 root root 0 Sep 18 2013 texworks-stable.gpg~
-rw-r--r-- 1 root root 1654 Jun 8 2014 tualatrix-next.gpg
-rw-r--r-- 1 root root 0 Jun 8 2014 tualatrix-next.gpg~
-rw-r--r-- 1 root root 371 Jan 31 2014 videolan-master-daily.gpg
-rw-r--r-- 1 root root 0 Jan 31 2014 videolan-master-daily.gpg~
-rw------- 1 root root 346 Jul 8 2013 webupd8team-sublime-text-2.gpg
-rw------- 1 root root 0 Jul 8 2013 webupd8team-sublime-text-2.gpg~

Thank you guys for the responses.
I haven't ever used chown or chmod commands since I'm not super familiar with Ubuntu.

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#4

It seems that several gpg files have wrong protection settings - for whatever reason.

The commands

sudo chmod a+r /etc/apt/trusted.gpg.d/c*
sudo chmod a+r /etc/apt/trusted.gpg.d/te*
sudo chmod a+r /etc/apt/trusted.gpg.d/w*

are supposed to correct that.

Revision history for this message
Robby Sangha (robby.san) said :
#5

Thanks Manfred Hampl, that solved my question.

Revision history for this message
Prabhudatt Agrawal (prabhudatt) said :
#6

I have the same problem, these are my outputs:

$ uname -a
Linux prabhudatt-d 5.0.0-27-generic #28~18.04.1-Ubuntu SMP Thu Aug 22 03:00:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic

$ ls -la /etc/apt/trusted.gpg
-rw-r--r-- 1 root root 30545 Sep 16 17:17 /etc/apt/trusted.gpg

$ ls -la /etc/apt/trusted.gpg.d/
total 36
drwxr-xr-x 2 root root 4096 Sep 10 18:47 .
drwxr-xr-x 7 root root 4096 Sep 16 17:20 ..
-rw-r--r-- 1 root root 1125 Sep 10 15:51 daniruiz_ubuntu_flat-remix.gpg
-rw-r--r-- 1 root root 356 Sep 10 18:17 linrunner_ubuntu_tlp.gpg
-rw-r--r-- 1 root root 1133 Sep 10 18:47 linuxuprising_ubuntu_apps.gpg
-rw-r--r-- 1 root root 356 Sep 6 23:20 morphis_ubuntu_anbox-support.gpg
-rw-r--r-- 1 root root 2796 Sep 18 2018 ubuntu-keyring-2012-archive.gpg
-rw-r--r-- 1 root root 2794 Sep 18 2018 ubuntu-keyring-2012-cdimage.gpg
-rw-r--r-- 1 root root 1733 Sep 18 2018 ubuntu-keyring-2018-archive.gpg

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

@Prabhudatt Agrawal: Please do not piggyback on somebody else's question, but create a questio of your own.
There is no possibility to track the status of your problem in a question document of somebody else that has already been marked as solved.