I have a whole bunch of remote locked down Debian boxes, I can not access them all ports are closed. They are quite numerous en spread all over the country, physical access would be a rather bothersome logistical operation.

These boxes are updated by local cron job that periodically runs apt-get upgrade -y against a dedicated repository.

I've found out that the singing key of the repository is about to expire. This would make it impossible to update these boxes any longer. I've updated the singing key on the publicly accessible key server but apt-get does not seem to update keys from the key server automatically if it finds them to be expired.

I can send out an update to add something to the update script to update the keys. But if a box is switched off until after the key expires the update to fix this can no longer be installed.

I've tried to re-upload all the packages in the repository to be unsigned, to get around this problem. But then the apt-get tells me:

WARNING: The following packages cannot be authenticated! E: There are problems and -y was used without --force-yes

Which essentially gives me the same problem, I can only mend the update script by sending out an update through the repository that soon will be ignored because of a expired signing key. And any box that misses out to get the update before the key expires will no longer be updated.

I'm getting a bit anxious now. Is there any way I can dig myself out of this situation without physical access to all these remote boxes?


No, you cannot if the box is not updated before the key is expired.

As you said, the boxes do not update the key automatically and they neither install unsigned packages nor packages signed with an expired key. If they would do so, the whole signing would be pointless.

So the best option seems to be to power them on as soon as possible and deploy the new key before the old one expires. For the other machines you will need to use ssh or local access or any other means to deploy the new key.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.