Very Siberian's picture

Hello! I am unable to install security updates for some reason. If anyone has suggestions based on the following error messages, I would appreciate it!

Best regards,


Timmy's picture

The second image appears to be an error regarding the display of the error in the first image - so I think you can set that aside as not germane to the problem of installing security updates.

How are you kicking off these security updates? Is this on a first-time install?

Very Siberian's picture

Thanks for your reply. This is a clone of a TKL hub instance. Since launched, the clone is running adequately in terms of the application, but I can neither install security updates (or any updates) nor can I re-initialize backups.

Jeremy Davis's picture

Thanks for reporting and sorry for slow response. I've had a crazy amount going on lately - both TurnKey related and otherwise.

Thanks too Timmy for jumping in. It's so awesome to have someone respond while I've been tied up!

Timmy is on point and the sec updates are failing...

Bottom line, it looks like the backend cli command is failing!? Unfortunately, that stacktrace doesn't really give me any clear idea of what exactly went wrong.

When you say "the clone is running adequately in terms of the application" does that mean that everything else appears to be working?

Here are some commands from the CLI - that should hopefully help me diagnose the issue. Please post the output of these (each line is a separate command - in case that's not obvious):

apt list confconsole
apt update

I'll watch this thread and once you share that info I'll as get back to you ASAP.

Hopefully speak more soon.

Very Siberian's picture

root@theaacn ~# turnkey-install-security-updates
+ /usr/lib/inithooks/firstboot.d/95secupdates
Traceback (most recent call last):
  File "/usr/bin/hubclient-status", line 37, in <module>
  File "/usr/bin/hubclient-status", line 33, in main
    hubapi.Server().status(serverid, boot_status, comment)
  File "/usr/lib/python3.9/dist-packages/hubclient_lib/", line 59, in status
    response = self.api.request('PUT', url, attrs)
  File "/usr/lib/python3.9/dist-packages/", line 190, in request
    raise self.Error(response.code, name, description)
pycurl_wrapper.Error: 404 - b'HubServer.NotFound (Hub Server ID does not exist')

root@theaacn ~# apt list confconsole
Listing... Done
confconsole/bullseye,now 2.0.5 all [installed]

root@theaacn ~# apt update
Hit:1 bullseye InRelease
Get:2 bullseye-security InRelease [48.4 kB]
Ign:3 bullseye-security InRelease
Ign:4 bullseye InRelease
Hit:5 bullseye-security Release
Hit:6 bullseye Release
Get:7 bullseye InRelease [7551 B]
Get:8 bullseye-security/main amd64 Packages [275 kB]
Err:7 bullseye InRelease                         
  The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <>
Ign:11 stable InRelease
Hit:12 stable Release
Fetched 331 kB in 1s (515 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
93 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: bullseye InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <>
W: Failed to fetch  The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <>
W: Some index files failed to download. They have been ignored, or old ones used instead.

root@theaacn ~# turnkey-version

Best regards,


Jeremy Davis's picture

Ok it looks like there are 2 issues. They may be related, but I don't think so.

The initial issue you hit appears to be Hub related. To look at that closer, please message me via Hub support so I can have a closer look and see what might be going on over there.

The second one is that the "" apt signing key has expired. Try this:

wget -O $keyfile

The rerun 'apt update' and hopefully the error message is gone.

Also, while we'll need to have a look at the Confconsole security updates issue via the Hub, in the meantime a workaround would be to manually install all updates. TBH that's probably worth doing regardless. Your server is quite old and beyond security updates, there are likely lots of other updates that include bugfixes and/or improvements. It's at least well worth updating the PHP packages from They aren't included in the security updates as his repo doesn't have security specific updates. FWIW it is possible to just update the PHP related packages, but it's a bit of a PITA. It should be easier in v18.x, but still not as easy as I hope to make it when I get a chance.

Chat soon regardless

Very Siberian's picture

Thanks for your help! That did the trick. 

Add new comment