LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-07-2018, 01:36 AM   #1
boycottsystemd
Member
 
Registered: Aug 2014
Posts: 39

Rep: Reputation: Disabled
apt-get update error


Code:
W: http://security.debian.org/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://ftp.us.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://ftp.us.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
I have tried
Code:
apt-get install --reinstall debian-archive-keyring
apt-get autoclean
apt-get clean
but it didn't help.

Code:
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 9.4 (stretch)
Release:	9.4
Codename:	stretch
 
Old 04-07-2018, 03:33 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
at first, this is not an error message but a warning (or three).
Please post the exact steps you executed, not only a message.... (which user, which command, full output...).
Also did you check the permissions on that file?
 
Old 04-07-2018, 03:48 AM   #3
boycottsystemd
Member
 
Registered: Aug 2014
Posts: 39

Original Poster
Rep: Reputation: Disabled
Code:
rm /etc/apt/trusted.gpg
recommended here http://forums.debian.net/viewtopic.php?t=130558

has solved the issue.

So I hope it's correct solution.
 
Old 04-13-2018, 10:48 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
If you're working as root, but the keyring is not readable, that means no one can read it. So, have a look at the permissions. I really wonder how it got that way!
 
Old 04-21-2018, 12:54 AM   #5
boycottsystemd
Member
 
Registered: Aug 2014
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
So, have a look at the permissions. I really wonder how it got that way!
I'm sorry the file is deleted.

Maybe 8 --> 9 upgrade ?
 
Old 10-26-2018, 07:33 PM   #6
Joaquim
LQ Newbie
 
Registered: Oct 2018
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
at first, this is not an error message but a warning (or three).
Please post the exact steps you executed, not only a message.... (which user, which command, full output...).
Also did you check the permissions on that file?
sorry to reopen this tread but...
i have 2 diferent systems with the exact same problem, related to this one. In both i installed a debian system stretch with Lxde and gnome...
i tried to add debian multimedia but i keep getting the message saying
"The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key."
tired of reading and not geting nowhere.
I followed the sugestion on a brazilian forum (iḿ Portuguese...) to remove /etc/apt/trusted.gpg and to run apt-key update...

problem is console gives me the answer :
root@debiansala:/etc/apt# apt-key update
Warning: 'apt-key update' is deprecated and should not be used anymore!
Note: In your distribution this command is a no-op and can therefore be removed safely.

this one i dont see a solution... itś been two months (the system is funcional and i dont use them that often...) and some body else should had the same problem but i cant see the answer...

help apretiated
 
Old 10-26-2018, 08:51 PM   #7
Joaquim
LQ Newbie
 
Registered: Oct 2018
Posts: 2

Rep: Reputation: Disabled
answering my self...
i fixed some other issue reading the foruns... how to find and add the gpg keys.
apt-get and synaptic give the error but recognise the repository...
i find and extraxct the key "deb-multimedia-keyring_2016.8.1_all.deb" and placed it in the trusted.gpg.d folder...
never the less that behavior should be corrected and still don't know an alternaticve to do it manually...
 
Old 10-26-2018, 11:23 PM   #8
nodir
Member
 
Registered: May 2016
Posts: 222

Rep: Reputation: Disabled
I haven't heard of the multimedia repo in ages.
Anyway: most recommend very strongly against using it.

This way or that way: might be it should be corrected, but that is not a problem of debian.org, but the multimedia-repo.
 
Old 10-27-2018, 04:41 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
you don't need to use apt-get, but simply apt.
 
Old 11-22-2019, 08:53 AM   #10
Snoozyman
LQ Newbie
 
Registered: Nov 2019
Posts: 1

Rep: Reputation: Disabled
Sorry to necro this, but I found an workaround that seems to be working at least to me!

Modify the permissions of the .gpg file in question to 666 and then it run the apt/(-get) update again.

Like in my case:

Code:
Reading package lists... Done
W: //ftp.fi.debian.org/debian/dists/buster/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/microsoft.asc.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: //ftp.fi.debian.org/debian/dists/buster-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/microsoft.asc.gpg are ignored as the file is not readable by user '_apt' executing apt-key.

chmod 666 /etc/apt/trusted.gpg.d/microsoft.asc.gpg
apt-get update

Get:9 //packages.microsoft.com/debian/10/prod buster/main all Packages [556 B]
Fetched 18.3 kB in 1s (20.2 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
When I run apt-update, I get a /var/lib/apt/partial error kb2tfa Debian 1 10-24-2017 02:43 PM
Installing from apt-get fails often, apt-get update gives error, etc What should ido? mitchell7man Ubuntu 3 02-27-2012 02:55 AM
apt-update error madhattenNY Linux - Newbie 4 10-21-2009 04:30 PM
apt-get update error gnophear Debian 4 01-27-2009 12:18 AM
Error:apt-get update cafecheng Linux - Newbie 4 09-21-2007 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration