You are not logged in.

#1 2016-07-10 20:10:51

hughparker1
Member
Registered: 2016-05-05
Posts: 51

[SOLVED] Signing Keys Error running apt-get update

Today, I ran apt-get update and got several errors (see extract of output below)....

hugh@DELL-VOSTRO-BUNSENLABS:~$ sudo apt-get update
[sudo] password for hugh: 
Get:1 http://pkg.bunsenlabs.org jessie-backports InRelease [5,190 B]
Get:2 http://pkg.bunsenlabs.org bunsen-hydrogen InRelease [5,153 B]                
Get:3 http://www.deb-multimedia.org jessie InRelease [22.3 kB]                     
Err http://pkg.bunsenlabs.org jessie-backports InRelease                           
  
Get:4 http://security.debian.org jessie/updates InRelease [63.1 kB]                
Err http://pkg.bunsenlabs.org bunsen-hydrogen InRelease                            
  
Get:5 http://www.deb-multimedia.org jessie/main amd64 Packages [156 kB]            
Ign http://httpredir.debian.org jessie InRelease                                   

Get:105 http://httpredir.debian.org jessie-backports/non-free 2016-06-20-0308.44.pdiff [643 B]
Fetched 1,350 kB in 12s (109 kB/s)    
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://pkg.bunsenlabs.org jessie-backports InRelease: The following signatures were invalid: KEYEXPIRED 1468162041 KEYEXPIRED 1468162041 KEYEXPIRED 1468162041

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://pkg.bunsenlabs.org bunsen-hydrogen InRelease: The following signatures were invalid: KEYEXPIRED 1468162041 KEYEXPIRED 1468162041 KEYEXPIRED 1468162041

W: Failed to fetch http://pkg.bunsenlabs.org/debian/dists/jessie-backports/InRelease  

W: Failed to fetch http://pkg.bunsenlabs.org/debian/dists/bunsen-hydrogen/InRelease  

W: Some index files failed to download. They have been ignored, or old ones used instead.
hugh@DELL-VOSTRO-BUNSENLABS:~$

I notice a message here ... https://forums.bunsenlabs.org/viewtopic.php?id=2281
saying signing keys due to expire on 2016-07-10

So I ran the suggested command but there was an error....

hugh@DELL-VOSTRO-BUNSENLABS:~$ sudo apt-get --allow-unauthenticated install bunsen-keyring
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package bunsen-keyring
hugh@DELL-VOSTRO-BUNSENLABS:~$ 

Is there some step that I am missing?

I also saw some info about signing keys here... https://pkg.bunsenlabs.org/index.html

It mentions the preferred method for installing archive key on your system is using the provided keyring package. But it also mentions an alternative method... Fetch and verify the repository’s signing key.

I am not an expert in signing keys so now sure what to do next. If someone could help me out I would be grateful. Thanks.

Last edited by hughparker1 (2016-07-10 20:33:47)

Offline

#2 2016-07-10 20:17:52

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: [SOLVED] Signing Keys Error running apt-get update

Download this .deb file:
https://pkg.bunsenlabs.org/debian/pool/ … -1_all.deb

And try installing it with gdebi (right click on the file in the file manager to select this).

Then run:

sudo apt-get update
sudo apt-get dist-upgrade

Post back here with the full error message(s) if this does not work.

EDIT: the correct solution is https://wiki.debian.org/SecureApt#How_t … _add_a_key, but meh.

Last edited by Head_on_a_Stick (2016-07-10 20:24:54)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#3 2016-07-10 20:33:09

hughparker1
Member
Registered: 2016-05-05
Posts: 51

Re: [SOLVED] Signing Keys Error running apt-get update

Head_on_a_Stick wrote:

Download this .deb file:
https://pkg.bunsenlabs.org/debian/pool/ … -1_all.deb

And try installing it with gdebi (right click on the file in the file manager to select this).

Then run:

sudo apt-get update
sudo apt-get dist-upgrade

Post back here with the full error message(s) if this does not work.

Thanks for quick reply. It all worked perfectly. Your help is much appreciated.  The response from this forum is first class.


Head_on_a_Stick wrote:

EDIT: the correct solution is https://wiki.debian.org/SecureApt#How_t … _add_a_key, but meh.

I'll have a read at this and save for future reference. Thanks for sharing the info.

Offline

#4 2016-07-10 20:49:59

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: [SOLVED] Signing Keys Error running apt-get update

Yay! Dirty hacks ftw! devil

I hope twoion doesn't tell me off... hmm

hughparker1 wrote:

Thanks for quick reply.

You're welcome smile


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#5 2016-07-10 22:08:21

hhh
Meep!
Registered: 2015-09-17
Posts: 9,290
Website

Re: [SOLVED] Signing Keys Error running apt-get update

hughparker1 wrote:

Is there some step that I am missing?

You needed do dist-upgrade first. No harm, you fixed it.

Online

#6 2016-07-10 22:58:43

hughparker1
Member
Registered: 2016-05-05
Posts: 51

Re: [SOLVED] Signing Keys Error running apt-get update

hhh wrote:
hughparker1 wrote:

Is there some step that I am missing?

You needed do dist-upgrade first. No harm, you fixed it.

Thanks for feedback, when I looked at the instructions on this link... https://forums.bunsenlabs.org/viewtopic.php?id=2281
It says to run the four commands below...

If you do not do this until 2016-07-10, you will see a warning from apt that our repository cannot be authenticated. In that case, do

sudo apt-get update
sudo apt-get --allow-unauthenticated install bunsen-keyring
sudo apt-get update
sudo apt-get dist-upgrade

I ran the first and second commands and got the error. It didn't mention 'dist-upgrade' till the end so I thought there was a fault in my setup somehow. I'm happy that it's all good now, but wondered why I got the error.

Offline

#7 2016-07-10 23:40:40

hhh
Meep!
Registered: 2015-09-17
Posts: 9,290
Website

Re: [SOLVED] Signing Keys Error running apt-get update

hughparker1 wrote:

It says to run the four commands below...

It says this before that! smile

twoion wrote:

BL users should dist-upgrade their system in order to install a new package bunsen-keyring.

sudo apt-get update
sudo apt-get dist-upgrade

I guess it's not quite crystal clear, but @twoion will have to edit the post, I don't have permission.

Thanks for posting, I'm sure this will be helpful to others in the next week.

Online

#8 2016-07-11 08:30:35

hughparker1
Member
Registered: 2016-05-05
Posts: 51

Re: [SOLVED] Signing Keys Error running apt-get update

hhh wrote:
hughparker1 wrote:

It says to run the four commands below...

It says this before that! smile

twoion wrote:

BL users should dist-upgrade their system in order to install a new package bunsen-keyring.

sudo apt-get update
sudo apt-get dist-upgrade

I guess it's not quite crystal clear, but @twoion will have to edit the post, I don't have permission.

Thanks for posting, I'm sure this will be helpful to others in the next week.

It's no problem. I am very impressed with BunsenLabs so far, boots in under 10 seconds on my 6 years old DELL Vostro 1520 fitted with SSD. Also very grateful for the support I have received on this forum.  The quality of expertise is really impressive.

Offline

#9 2016-10-24 21:14:51

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: [SOLVED] Signing Keys Error running apt-get update

Did anyone had the following error message before:

W: GPG error: http://httpredir.debian.orgjessie Release: The following signatures were invalid: BADSIG 8B48AD6246925553 Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>

Replacing the httpredir line with "http://ftp.uk.debian.org/debian" solves the issue but I don't know how or why this happened.

Offline

#10 2017-02-24 10:30:24

sw2090
New Member
Registered: 2017-02-24
Posts: 1

Re: [SOLVED] Signing Keys Error running apt-get update

@hugh and all others:

You just forgot one command Hugh and that's why it did not work for you.

You have to do this like mnentionend in the link you posted:

wget -O- https://pkg.bunsenlabs.org/BunsenLabs-RELEASE.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install bunsen-keyring
sudo apt-get update

there is absolutely no need in doing a dist-upgrade or something like that.

The Error just means (like mentionend in the link) that the key of the Bunsen Repo has expired. This was also the case in an Bunsen Install I did from a CD I bought with a magazine somehwere in 2016/08.

So you have to get and install the new key which is done by the first line.
Then update your package listes (2nd line)
and so on.

Worked fine here and its now installing literally tons of upgrades smile

hth
Sebastian

Offline

Board footer

Powered by FluxBB