Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Issue with apt-update

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
neonl
Posts: 27
Joined: 2007-08-30 11:11

Issue with apt-update

#1 Post by neonl »

Hi.

I have a new installation of Debian Stretch on my machine. I used the first DVD to do the standard installation with GNOME as the desktop environment. During the installation, I configured a mirror to use with APT. On the booted system, I commented the CD-ROM sources on /etc/apt/sources.list, leaving only the following repositories:

deb http://ftp.pt.debian.org/debian/ stretch main
deb-src http://ftp.pt.debian.org/debian/ stretch main

deb http://security.debian.org/debian-security stretch/updates main contrib
deb-src http://security.debian.org/debian-security stretch/updates main contrib

However, when I run 'apt-get update' or 'apt update', I get the following warning:

Code: Select all

W: http://ftp.pt.debian.org/debian/dists/stretch/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.
What does this mean? I haven't add keys for third-party repositories or something like that. This is an almost fresh installation.
YOU! ARE! A! TOYYYYY! You're not the real Buzz Lightyear! You're - you are an action figure! - Toy Story

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Issue with apt-update

#2 Post by Head_on_a_Stick »

Try the Debian redirector instead:

http://httpredir.debian.org/
deadbang

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Issue with apt-update

#3 Post by pylkko »

Maybe because you are using testing and apt changed recently so that it now considers sha1 unsafe? Maybe that mirror hasn't updated?

wmittz
Posts: 59
Joined: 2010-06-03 16:18

Re: Issue with apt-update

#4 Post by wmittz »

"Try the Debian redirector instead:"

I got the same message. been trying to figure it out for three weeks.

W: http://httpredir.debian.org/debian/dist ... /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.
It started when I updated to kernel 4.8.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Issue with apt-update

#5 Post by Head_on_a_Stick »

Try:

Code: Select all

# apt-get clean
# cd /var/lib/apt && mv lists lists.old
# mkdir -p lists/partial
# apt-get clean && apt-get update
More ideas here:

http://forums.debian.net/viewtopic.php?f=5&t=130558
deadbang

wmittz
Posts: 59
Joined: 2010-06-03 16:18

Re: Issue with apt-update

#6 Post by wmittz »

Head, thanks. Still the same, like I had mentioned in the other thread, I believe it is a permission / security change on how the file is read. It updates fine, but always get the same message.

lrnk
Posts: 1
Joined: 2017-02-15 13:44

Re: Issue with apt-update

#7 Post by lrnk »

I had the same issue and solved it by renaming /etc/apt/trusted.gpg to /etc/apt/trusted.gpg.bak.

Code: Select all

cd /etc/apt
sudo mv trusted.gpg trusted.gpg.bak
I think all keys are now in trusted.gpg.d. You can check this with:

Code: Select all

 apt-key list
I have 7 keys listed, all are in /etc/apt/trusted.gpg.d/

qubitz
Posts: 2
Joined: 2017-06-18 08:38

Re: Issue with apt-update

#8 Post by qubitz »

lrnk wrote:I had the same issue and solved it by renaming /etc/apt/trusted.gpg to /etc/apt/trusted.gpg.bak.

Code: Select all

cd /etc/apt
sudo mv trusted.gpg trusted.gpg.bak
I think all keys are now in trusted.gpg.d. You can check this with:

Code: Select all

 apt-key list
I have 7 keys listed, all are in /etc/apt/trusted.gpg.d/
Genius! Thank you very much!
Last edited by emariz on 2017-06-19 23:45, edited 1 time in total.
Reason: Please use quote tags.

Post Reply