![]() ![]() W: GPG error: all/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3D84C955924F7599Į: The repository ' all/ InRelease' is not signed. N: See apt-secure(8) manpage for repository creation and user configuration details. N: Updating from such a repository can't be done securely, and is therefore disabled by default. W: GPG error: armhf/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3D84C955924F7599Į: The repository ' armhf/ InRelease' is not signed. ![]() They have been ignored, or old ones used instead. ![]() W: Failed to fetch The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3D84C955924F7599 GPG error: all/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3D84C955924F7599 The repository is not updated and the previous index files will be used. W: An error occurred during the signature verification. GPG error: armhf/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3D84C955924F7599 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3D84C955924F7599 When I run apt-get update I get the following error $ sudo apt-get update PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" If you have any problems, leave a comment.Linux ntopng 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40: aarch64 GNU/Linux ![]() If you want to chek it’s working, you can check the log file tomorrow: cat /var/log/unattended-upgrades/unattended-upgrades.log Next we must create the /etc/apt//20auto-upgrades file to instruct the updater what to do: # You could also create this file by running "dpkg-reconfigure -plow unattended-upgrades" sudo tee /etc/apt//20auto-upgrades > /dev/null << EOFĪnd that’s all there is to it! Every day your Pi will now check for updates and you’ll receive an email like this if there were: I have a Pi4 with Raspberry Pi Os Buster, running TVHeadend so it works as a personal video recorder. Sudo sed -i 's/^\/\/Unattended-Upgrade::Automatic-Reboot-Time "02:00" /Unattended-Upgrade::Automatic-Reboot-Time "02:00" /g' /etc/apt//50unattended-upgradesĪnd if if you want unused packages to be removed (like when you run apt-get autoremove: sudo sed -i 's/^\/\/Unattended-Upgrade::Remove-Unused-Dependencies "false" /Unattended-Upgrade::Remove-Unused-Dependencies "true" /g' /etc/apt//50unattended-upgrades sudo sed -i 's/^\/\/Unattended-Upgrade::Mail "root" /Unattended-Upgrade::Mail "root" /g' /etc/apt//50unattended-upgradesīy default your Pi won’t be rebooted if required, so if you want it to (and want to set the time) you can do that like this: sudo sed -i 's/^\/\/Unattended-Upgrade::Automatic-Reboot "false" /Unattended-Upgrade::Automatic-Reboot "true" /g' /etc/apt//50unattended-upgrades Again, this is already in the config file so it’s just a case of uncommenting it (you may wish to tweak the user, but I’ve already set root mail to be forwarded on to my user). Next we want to instruct the updater to send emails. To upgrade all packages on your Raspberry Pi, enter this command: sudo apt full-upgrade. sudo sed -i 's/^\/\/ "o=Raspbian,n=jessie"/ "o=Raspbian,n=jessie"/g' /etc/apt//50unattended-upgrades This config lives in /etc/apt//50unattended-upgrades and you can use this script to uncomment the line for Jessie. I’ve decided to stick with Jessie for now. Next we should configure where the updates are allowed to come from.If you choose to stick with Stable then when the next version of Raspbian goes stable (Stretch) it’ll automatically update. apt-listchanges also requires a mailx program so if you don’t already have one you can grab bsd-mailx: sudo apt-get install unattended-upgrades apt-listchanges bsd-mailx -y Next we need to install the unattended-upgrades package and to ensure it sends emails the apt-listchanges package. My previous blog post covers how to do this with Postfix.Īs always, start off by making sure your apt list and existing packages are up-to-date: # Update the package list, update all packages and remove any packages that are no longer required sudo apt-get update -y & sudo apt-get dist-upgrade -y & sudo apt-get autoremove -y You’ll want to know when updates are being installed (or if they fail). The first thing to do before setting up automatic updates is to ensure your Raspberry Pi can send email. Any device that’s on your home network has the possibility of being a stepping stone for attackers if it can be easily breached. Logging into machines and installing security updates periodically isn’t fun but for internet-exposed devices it’s important. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |