Questions tagged [unattended-upgrades]

Automatic package upgrades on APT based systems

Filter by
Sorted by
Tagged with
0 votes
0 answers
114 views

unattended-upgrades not working on Ubuntu 20 LTS server

I have been trying to enable automatic security updates on Ubuntu 20 server, with no success. The service is running, but is waiting for signal? : root@u20s:~# sudo systemctl status unattended-...
user avatar
0 votes
0 answers
83 views

How to use s-nail with unattended-upgrades?

My ISP blocks port 25 and I want to send email after unattended-upgrades completes. I set things up so that I can successfully send mail with s-nail, but unattended-upgrades still isn't sending me ...
user avatar
  • 123
2 votes
3 answers
282 views

Verifying the running kernel matches the latest installed kernel in Ubuntu

unattended-upgrades in Ubuntu automatically installs security updates including the kernel but does not reboot automatically (and it's OK, I don't need/want automatic reboots). How can I find out ...
user avatar
1 vote
1 answer
192 views

Why does update-notifier say something different that unattended-upgrades?

I've a motd "message of the day" when I login that it seems come from file /var/lib/update-notifier/updates-available: root@ls:~# cat /var/lib/update-notifier/updates-available 95 updates ...
user avatar
  • 3,969
1 vote
1 answer
194 views

How is the unattended-upgrades notification email built?

I defined unattended-upgrade configuration in /etc/apt/apt.conf.d/50unattended-upgrades file. It works fine, I receive an email notification when an upgrade is applied. The notificatoin email shows ...
user avatar
0 votes
1 answer
167 views

How to easily abort unattended-upgrades or configure it so that it gets aborted automatically once apt-get is used to upgrade?

On Debian11/KDE when trying to upgrade packages (and earlier sudo apt-get update as well) it displays the following error message: Cannot get the exclusive lock on the package backend. Please close ...
user avatar
  • 3,500
2 votes
2 answers
921 views

Unattended Upgrades doesn't work anymore since Debian 10 to 11 upgrade

All seems to be correctly set up on my Debian 11 but I don't know why the unattended upgrade doesn't work any more since my upgrade to Debian 11. While I perform an apt update, I found packages that ...
user avatar
0 votes
0 answers
13 views

What exact setting does the "Updates" section of Systemsettings change?

Systemsettings has a setting to turn automatic updates on or off: What exactly does this setting do? It apparently doesn't change anything in /etc/apt.
user avatar
  • 2,538
0 votes
2 answers
376 views

How to solve "Invalid SCRIPTWHITELIST configuration option: Non-existent pathname: /bin/which" & blocking unattended-upgr during Debian10->11 upgrade?

I was trying to upgrade Debian 10/KDE to Debian 11 bullseye stable via sudo apt upgrade --without-new-pkgs The output was: Preparing to unpack .../dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (...
user avatar
  • 3,500
0 votes
0 answers
47 views

apt-daily.service seems to interfere with Unix sockets

We have an embedded device with Debian 9 that has been running for over a year without issues until recently. We have a process that acts as an aggregator and communicates every second with several ...
user avatar
  • 121
0 votes
0 answers
26 views

Keeping Debian machines up-to-date automatically via manual command with packages that don't require user input

I have a few Debian machines which are automatically started via scripts. They act as backup servers (e.g. turned on run daily, weekly or monthly). After I run backup scripts, I'd like to run a script ...
user avatar
  • 136
0 votes
1 answer
11 views

Python PyPI, asynchronous updates, reactionary requirements, avoid breaking distro - solution I came up with safe? How to automate?

Context Personal context: Inexperienced Linux user, learning Python, hoping to apply it to Natural Language Processing on NoSQL databases. Why GNU/Linux: My budget is small, my old gear ain't broke at ...
user avatar
1 vote
2 answers
206 views

Unattended upgrades calls my machine "localhost" instead of its hostname

On some of my machines, unattended upgrades sends an email to tell me a reboot is required, and says: [reboot required] unattended-upgrades result for localhost: SUCCESS While on others, it specifies ...
user avatar
1 vote
1 answer
439 views

Unattended-Upgrade::Origins-Pattern for repository without Origin, label etc

I'd like to use unattendedupgrades to keep Collabora Office updated on my Debian 10 Nextcloud server. However, the InRelease file for the repository doesn't contain any of the metadata I'd use in an ...
user avatar
2 votes
1 answer
379 views

What does it mean when unattended-upgrades reports [package on hold]?

I'm running a raspberry pi (Raspbian 10 -- buster) with unattended-upgrades installed and configured. Today I got a mail report with the following content: Unattended upgrade result: All upgrades ...
user avatar
  • 107
1 vote
1 answer
1k views

How to configure apt-listchanges to send a unique summary email when running unattended-upgrades

I'm currently on Debian 10, and updates are applied with the unattended-upgrades tool. I wish apt-listchanges to send me a unique summary mail per machine as it did with Debian 9; but it sends a ...
user avatar
  • 31
0 votes
2 answers
612 views

systemctl Persistent timer and service, when computer turned off

How do the systemctl timer works when the computer is turned off at the given trigger time? There is the option "Persistent", but when exactly is the command executed? In how far is it ...
user avatar
  • 13
0 votes
1 answer
4k views

Interrupted upgrade of Ubuntu from 18.04 to 20.04 gives - Problem executing scripts APT::Update::Post-Invoke-Success

I was upgrading Ubuntu 18.04 to Ubuntu 20.04 using do-release-upgrade -f DistUpgradeViewNonInteractive, but the upgrade halted due to a power cut and upon resuming the upgrade I was getting the ...
user avatar
1 vote
1 answer
266 views

Stop a reboot that was scheduled by apt unattended-upgrades

I've already looked at few answers on unattended-upgrades topic but none of them seem to help. When there is pending reboot and I am logged in to the server I keep getting these notifications to my ...
user avatar
  • 111
1 vote
0 answers
106 views

unattended-upgrades is not running

I have a Debian 10 server on which unattended upgrades do not work. The system timers are overwritten as follows: /etc/systemd/system/apt-daily.timer.d/override.conf: [Timer] OnCalendar= OnCalendar=*-*...
user avatar
0 votes
1 answer
94 views

rkhunter and unattended-upgrades

I have an Ubuntu 18.04 system running with rkhunter installed. I keep getting warnings in the rkhunter.log after unattended-upgrades has upgraded the system. The solution to this would be running ...
user avatar
  • 5,418
1 vote
1 answer
471 views

Debian 10: proper configuration for unattended-upgrades to update packages from unstable-repository

I have a Debian server (buster) with some packages from an unstable repository. Pin-Priority for unstable repository is 150. Now I want them to be updated by unattended-upgrades. Do I need this in /...
user avatar
1 vote
1 answer
401 views

Will reboot command wait for unattended upgrade to complete?

I'm running unattended upgrade at random times on a computer. I have a cron to reboot at a set time daily. If my reboot cron runs in the middle of an update, will it wait to reboot or will it force a ...
user avatar
  • 13
4 votes
0 answers
2k views

Can unattended-upgrades send a test email?

I've been tearing my hair out trying to figure out why running unattended-upgrade wouldn't result in an email in my inbox, only for one to turn up this morning. Is there a way to help debugging a new ...
user avatar
1 vote
0 answers
435 views

Comfortable way to keep Debian Buster up to date?

So far I have only used Debian (and other Linux distributions based on Debian) for testing purposes and on non-productive systems. On these systems, I occasionally carried out updates manually via the ...
user avatar
  • 217
4 votes
0 answers
250 views

Debian - unattended-upgrades: environment variables

I need to set environment variables for unattended-upgrades: Packages that attempted to upgrade: msodbcsql17 Package installation log: Log started: 2019-10-28 06:51:03 apt-listchanges: Reading ...
user avatar
  • 51
2 votes
1 answer
657 views

Can I see a GUI for and/or kill/interrupt (NOT disable) unattended-upgrades?

There are a gazillion threads about disabling unattended-upgrades. I know about them. My beef is that the user experience with unattended-upgrade leaves a lot to be desired. An item in the task-bar ...
user avatar
2 votes
1 answer
355 views

unattended-upgrades ignores priorities

I seems that unattended-upgrades do not follow the priorities sett up in /etc/apt/preferences. I am maintaining a Debian file server where unattended-upgrades are set up. The version of rclone from ...
user avatar
  • 33
0 votes
1 answer
254 views

Confusion between Xenial and Sylvia in Unattended-upgrades

I am trying to get Unattended-upgrades to work on my Linux Mint 18.3 (Sylvia) system, without success. My etc/apt/apt.conf.d/50unattended-upgrades is standard: Unattended-Upgrade::Allowed-Origins { ...
user avatar
1 vote
0 answers
330 views

unattended upgrades removes packages

I've got unattended upgrades configured on my system. Every so often emails come in that a reboot is required. Yesterday after I rebooted my system to complete an upgrade, only to find that mysql-...
user avatar
30 votes
1 answer
35k views

How do I stop/disable unattended upgrades from being launched automatically? [duplicate]

I recently installed Trisquel 8.0 LTS (Flidas) on my Desktop PC which was running on Trisquel 7.0 for 4 year. The system became very slow. When I check the RAM and CPU Usage, I found that CPU is ...
user avatar
  • 21.8k
1 vote
1 answer
2k views

How to configure unattended-upgrades to send mail, but not upgrade anything?

In the configs I see option To set up the informative mail about this (Unattended-Upgrade::Mail in /etc/apt/apt.conf.d/50-unattended-upgrades) I can also turn the automatic package update on or off, ...
user avatar
  • 8,544
8 votes
1 answer
16k views

Terminate and disable/remove unattended upgrade before command returns

I'm having an issue here where I try to automate a setup with Ansible. Some of the steps require interaction with apt, but occasionally I get an error because unattended-upgrade kicked off and locked ...
user avatar
  • 571
1 vote
1 answer
1k views

Changed locales to en_US.UTF-8 but program still tries to translate to other language

I change the systems locale settings to en_US.UTF-8 with dpkg-reconfigure locales. The locale command outputs: LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="...
user avatar
  • 2,301
4 votes
2 answers
2k views

Unattended upgrades won’t use mailx when run by Systemd

I have setup unattended-upgrades on servers running Raspbian (Raspbian GNU/Linux 9.4 (stretch)). Version of Unattended-upgrades: 0.93.1+nmu1 Updates work, but I am having problems with the email ...
user avatar
1 vote
1 answer
683 views

Prevent Unattented-upgrades from sending reboot notifications to shell

I am using Ubuntu 16.04 and have enabled automatic updates and reboots. Version of unattended-upgrades is 0.90ubuntu0.9. When there is pending reboot and I am logged in to the server I keep getting ...
user avatar
10 votes
1 answer
352 views

Why does this man page have today's date?

Why would a specific man page (in my case, for the nc command) have today's date without me doing any updates to the system ? Also, why doesn't the "unattended update" log show any specific activity ...
user avatar
  • 874
4 votes
1 answer
591 views

What does "adjusting candidate version" mean?

When running unattended-upgrades manually, there are no updates detected but some packages report "adjusting candidate version" (see below). They do this every time I run sudo unattended-upgrades -d, ...
user avatar
  • 2,555
6 votes
1 answer
4k views

What Unattended-Upgrade::Origins-Pattern matches "all"?

In addition to /etc/apt/sources.list I have a couple of origins defined in /etc/apt/sources.list.d/ How can I adjust /etc/apt/apt.conf.d/50unattended-upgrades so that all origins are allowed? I tried ...
user avatar
  • 2,555
0 votes
1 answer
3k views

Sending mail by unattended upgrade

Some people had met some similar problems but nothing solves my problem; my log file # tail -f /var/log/unattended-upgrades/unattended-upgrades.log 2018-02-18 13:25:37,656 DEBUG No conffiles in deb ...
user avatar
0 votes
1 answer
108 views

Debian agnostic, version agnostic way to configure update preferences in unattended-upgrades

I understand the the configuration files for unattended-upgrades in which you determine if you want only security upgrades or other upgrades as well, are located in a bit "dynamic" locations that ...
user avatar
  • 1,460
6 votes
2 answers
3k views

Unattended-upgrades not detecting Linux kernel security update by default

(N.B. in the below, I have replaced the domain of my VPS hosting provider with <my_hosting_provider>, for privacy.) My Debian 9.3 "Stretch" instance is showing a kernel update as being ...
user avatar
4 votes
0 answers
42 views

List service as failing only after a certain duration

My Debian systems have unattended-upgrades installed, which installs security upgrades automatically, once per day. I also have a Nagios check that reports whether upgrades need to be installed. In ...
user avatar
0 votes
0 answers
308 views

unattended-upgrades ignoring origins

I would like unattended-upgrades to upgrade security packages only, hence I configured /etc/apt/apt.conf.d/50unattended-upgrades as follows: Unattended-Upgrade::Allowed-Origins { "${...
user avatar
  • 131
17 votes
1 answer
17k views

How to check progress of unattended-upgr process? Should I kill it?

I've been getting the following after running a dpkg command: dpkg: error: dpkg status database is locked by another process After running (from here): sudo fuser -vki /var/lib/dpkg/lock I get: ...
user avatar
  • 339
6 votes
3 answers
8k views

Unattended Upgrades failing

I keep getting this error on apt-get upgrade: Installing unattended-upgrades (0.93.1+nmu1) ... Failed to start unattended-upgrades.service: Unit unattended-upgrades.service failed to load: Invalid ...
user avatar
1 vote
0 answers
180 views

debian unstable crash

Debian unstable, running in an nspawn container on Debian Jessie, crashed. On the host: $ sudo systemctl status systemd-nspawn@unstable-srv ● systemd-nspawn@unstable-srv.service - Container unstable-...
user avatar
  • 44.5k
1 vote
0 answers
777 views

Debian: Failed to stop unattended-upgrades.service

Running a Debian 9 (stretch). During every installation/removal of a package I get the following error thrown Failed to start unattended-upgrades.service: Unit unattended-> upgrades.service failed ...
user avatar
  • 328
1 vote
1 answer
788 views

ubuntu xenial unattended-upgrade not working anymore

I have xenial install in Virtualbox with Host Jessie. Since a few weeks unattended-upgrade is not longer working. As workaround I update over a little "Script". apt-config dump | egrep -i unatt APT:...
user avatar
1 vote
2 answers
265 views

Automatically upgrading certain packages despite different dependencies

Basically, I want to schedule upgrading ~100 workstations regularly. I only really need specific packages upgraded automatically (the rest can be done manually as required) but because the machines ...
user avatar