Questions tagged [unattended-upgrades]

Automatic package upgrades on APT based systems

Filter by
Sorted by
Tagged with
3 votes
1 answer
53 views

Possible to validate unattended-upgrades configuration?

I edited the /etc/apt/apt.conf.d/50unattended-upgrades file (on Ubuntu 22.04.3) and intentionally introduced an error: Unattended-Upgrade::Automatic-Reboot-WithUsers "Falsed"; // instead of ...
AJP's user avatar
  • 234
0 votes
1 answer
94 views

Upgrade every enabled repository using unattended-upgrades

Is there a way to configure unattended-upgrades to upgrade all enabled repositories (including third parties)?
td211's user avatar
  • 374
0 votes
1 answer
206 views

Unattended upgrades stuck

I have a VM running Ubuntu 20.04. I noticed that unattended upgrades were stuck due to the error: Could not figure out development release: Distribution data outdated. Please check for an update for ...
pkaramol's user avatar
  • 2,799
0 votes
0 answers
151 views

Blacklisting a specific packages from updating using UnattendedUpgrades in Debian

I am trying to prevent updates of few packages from updating automatically by unattended upgrades in Debian 12: The part of /etc/apt/apt.conf.d/50unattended-upgrades for blacklisting by default is ...
rocky_alpine's user avatar
1 vote
1 answer
259 views

Unattended-Upgrades configuration for custom repo only

OS: LMDE 5 (based on Debian 11 Bullseye) To keep the system tidy, I use separate files to overrides the original distribution/developer configuration files wherever possible. This also prevents ...
DarekH's user avatar
  • 77
0 votes
0 answers
61 views

Debian: Run unattended upgrades without the risk to destroy boot due to full boot partition

When running a Debian system with GPT and UEFI, I often run into the problem that an update fails due to the boot partition filling up with too many kernels. While apt autoremove --purge solves that ...
Kalsan's user avatar
  • 173
1 vote
0 answers
342 views

unattended-upgrade of only security fixes for Sury PHP?

I installed PHP 8.1 on a Debian 10 server by adding the PHP Sury repository as an apt source at /etc/apt/sources.list.d/php-sury.list. That all works fine. I have unattended-upgrades installed and ...
Don't Panic's user avatar
0 votes
1 answer
251 views

unattended-upgrades: everything except new major versions

I want unattended-upgrades to upgrade everything automatically on my Debian bullyseye system, except for new major version (i.e. not bookworm, when it's released). I couldn't find anything describing ...
Gabe W's user avatar
  • 3
3 votes
1 answer
854 views

Why are old kernel images not removed automatically to free required space on boot partition on Debian?

I do have unattended-upgrades (2.8) installed and the process is running. Yet it frequently happens that I get this error when trying to install upgrades: Processing triggers for initramfs-tools (0....
mYnDstrEAm's user avatar
  • 4,207
0 votes
1 answer
1k views

APT unattended upgrade with no user interaction [duplicate]

I am setting up a cron job to update my Debian server box, and there is a potential problem. If I try upgrading from the terminal using apt -y upgrade, even though there is the -y option, when APT ...
lorinet3's user avatar
  • 111
3 votes
0 answers
464 views

What does "Marking not allowed" mean in the context of unattended upgrades / apt?

Got this line of output when running sudo unattended-upgrade -d --dry-run. Not sure what to make of it. Marking not allowed <apt_pkg.PackageFile object: filename:'/var/lib/apt/lists/mirrors....
Kevin Wheeler's user avatar
4 votes
1 answer
3k 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 ...
Erasmus's user avatar
  • 163
4 votes
3 answers
3k 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 ...
Artem S. Tashkinov's user avatar
1 vote
1 answer
1k 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 ...
sebelk's user avatar
  • 4,399
1 vote
1 answer
971 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 ...
user1185081's user avatar
0 votes
1 answer
2k 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 ...
mYnDstrEAm's user avatar
  • 4,207
3 votes
1 answer
3k 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 ...
Victor Leclerc's user avatar
0 votes
3 answers
2k 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 (...
mYnDstrEAm's user avatar
  • 4,207
0 votes
1 answer
16 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 ...
 aarek-eng's user avatar
4 votes
3 answers
711 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 ...
The Quantum Physicist's user avatar
2 votes
1 answer
1k 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 ...
sandyscott's user avatar
2 votes
1 answer
1k 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 ...
Philipp A.'s user avatar
2 votes
1 answer
3k 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
0 votes
2 answers
5k 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 ...
camel's user avatar
  • 11
1 vote
1 answer
8k 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 ...
thepunitsingh's user avatar
2 votes
1 answer
1k 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 ...
mpprdev's user avatar
  • 121
1 vote
0 answers
269 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=*-*...
qwertbert23's user avatar
2 votes
1 answer
261 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 ...
Panki's user avatar
  • 6,664
1 vote
1 answer
643 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 /...
Rechnungstore's user avatar
2 votes
1 answer
816 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 ...
Unixman's user avatar
  • 23
5 votes
1 answer
4k 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 ...
sandyscott's user avatar
1 vote
0 answers
529 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 ...
Simon's user avatar
  • 227
4 votes
0 answers
462 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 ...
Kevin's user avatar
  • 51
2 votes
1 answer
857 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 ...
Peter V. Mørch's user avatar
2 votes
1 answer
524 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 ...
gkaf's user avatar
  • 35
0 votes
1 answer
268 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 { ...
Peter bill's user avatar
2 votes
0 answers
443 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-...
Daniël van den Berg's user avatar
36 votes
1 answer
46k 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 ...
Pandya's user avatar
  • 24.6k
2 votes
1 answer
3k 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, ...
peterh's user avatar
  • 9,731
9 votes
1 answer
19k 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 ...
Daniel F's user avatar
  • 867
1 vote
1 answer
2k 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="...
manifestor's user avatar
  • 2,473
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 ...
Madoc Comadrin's user avatar
1 vote
1 answer
1k 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 ...
Madoc Comadrin's user avatar
10 votes
1 answer
383 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 ...
ychaouche's user avatar
  • 998
4 votes
1 answer
749 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, ...
lofidevops's user avatar
  • 3,159
7 votes
1 answer
6k 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 ...
lofidevops's user avatar
  • 3,159
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 ...
user3371854's user avatar
0 votes
1 answer
141 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 ...
Arcticooling's user avatar
7 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 ...
Joachim Breitner's user avatar