Also in Ubuntu 24.10 Oracular installed from ISO, not upgraded from Noble:
corrado@corrado-n8-oo-0509:~$ sudo apt update && sudo apt upgrade
[sudo] password for corrado:
Warning: The unit file, source configuration file or drop-ins of
apt-news.service changed on disk. Run 'systemctl
I'm sorry if this comment isn't helpful but I'm only seeing this on a
new noble installation but never on another installation which was
upgraded from mantic some time but early on during the noble development
period.
--
You received this bug notification because you are a member of Ubuntu
Bugs,
It looks like the global need-reload state that Christian investigated
that is being set by a snapd operation was added recently in systemd.
https://github.com/systemd/systemd/commit/a82b8b3dc80619c3275ad8180069289b411206d0
That is likely why we're only seeing this issue in noble.
From reading
Happened to me after clearing out games,then apt purge hexchat.
my cli error is:
sudo apt update
[sudo] password for xx:
Sorry, try again.
[sudo] password for xx:
Warning: The unit file, source configuration file or drop-ins of
apt-news.service changed on disk. Run 'systemctl
Hello. I'm also running into this problem:
sudo apt update && sudo apt upgrade
Warning: The unit file, source configuration file or drop-ins of
apt-news.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Warning: The unit file, source configuration file or drop-ins of
TL;DR:
As many I've gone deeper, but none of the times in `stat` nor the
checksums of /usr/lib/systemd/system/hello.service did change.
Turns out this wasn't even about their file states.
And additionally my understanding was wrong, and potentially yours as well.
The state if this is outdated
Same thing on 24.04 and rebooting doesn't fix it.
Seems those unit files belongs to: ubuntu-pro-client
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2055239
Title:
Warning: The unit file, source
I am seeing this message on Ubuntu 24.04 Beta x64. I did an apt update
and apt upgrade yesterday without any issues, and got this message out
of the blue today.
Sorry, I might not have been able to follow this entire discussion, but
if you need any logs/info from me and can guide me on providing
Today I saw the warning on an riscv64 Ubuntu 24.04 system booted from
https://cdimage.ubuntu.com/ubuntu-server/daily-
preinstalled/pending/noble-preinstalled-server-riscv64+icicle.img.xz
after executing apt-get update.
--
You received this bug notification because you are a member of Ubuntu
Yes, I think we may be enumerating a directory / statting files. I don't
believe we open anything unless we want to have a look but I _could_ be
wrong and I'm still investigating things (with interruptions to attend
calls).
I don't believe it is related to ubuntu-pro-client, the only reason it
is
Thanks for all the investigation and discussion!
Just to close out the ubuntu-pro-client related questions:
ubuntu-pro-client does run daemon-reload in postinst.
and here is a reproducer that doesn't involve ubuntu-pro-client services
```
lxc launch ubuntu-daily:noble test
lxc shell test
# now
Both before and after daemon-reload the units have the same definition:
$ systemctl cat apt-news.service esm-cache.service
# /usr/lib/systemd/system/apt-news.service
# APT News is hosted at https://motd.ubuntu.com/aptnews.json and can include
# timely information related to apt updates available
With a closer look I ended up running this loop while looking at systemd
debug logs:
sudo snap remove --purge snapd && sudo systemctl daemon-reload && sudo
systemctl restart snapd && snap version && sudo apt update && echo
"ALOHA: installing snapd" | systemd-cat && sudo snap install snapd &&
echo
> It's not the apt-news nor esm-cache service that was modified.
> It looks like systemd warns about daemon-reload in any cases if any of the
> systemd unit files are
> modified and daemon-reload wasn't called after that.
I understand, but in comment #14 the warning is very specific about the
It's not the apt-news nor esm-cache service that was modified.
It looks like systemd warns about daemon-reload in any cases if any of the
systemd unit files are modified and daemon-reload wasn't called after that.
Check the postinst script of the binary packages produced by src:ubuntu-
advantage-tools. The binary packages that install systemd units must
call daemon-reload at some point after the new unit file was installed.
--
You received this bug notification because you are a member of Ubuntu
Bugs,
Removing ubuntu-pro-client silences this, so that installation of snapd
snap no longer causes any side-effects. While I can see that
installation of snapd has some impact on ubuntu-pro-client, I cannot yet
understand how.
--
You received this bug notification because you are a member of Ubuntu
Snapd touches neither apt-news.service nor esm-cache.service.
On my system the only mention of esm-cache.service is in
uaclient/actions.py:
zyga@ciri:/$ grep -FR esm-cache.service usr/ 2>/dev/null
usr/lib/python3/dist-packages/uaclient/actions.py:"esm-cache.service",
I've increased systemd
I've reproduced this and collected forkstat logs from installation of
snapd snap on an otherwise pristine "noble" system. I think what is
going on is that systemd stays in a mode where it knows that units on
disk have changed vs units in memory and will print the warning until
re-loaded. The fact
** Changed in: snapd
Assignee: (unassigned) => Zygmunt Krynicki (zyga)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2055239
Title:
Warning: The unit file, source configuration file or
I get the same warnings after editing 3 files /etc/apt/sources.list.d/
Warning: The unit file, source configuration file or drop-ins of
apt-news.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Warning: The unit file, source configuration file or drop-ins of
Seeing this myself:
| $ sudo apt-get update
| Warning: The unit file, source configuration file or drop-ins of
apt-news.service changed on disk. Run 'systemctl daemon-reload' to reload units.
| Warning: The unit file, source configuration file or drop-ins of
esm-cache.service changed on disk.
Thank you nobuto! With that I was able to reproduce the issue.
lxc launch ubuntu-daily:noble test
lxc exec test -- apt update # this one works as expected
lxc exec test -- snap install snapd
lxc exec test -- apt update # this one has the warnings in the bug report
assigning this bug to snapd
Hmm, it happened again between those two `apt update`. It might be snapd
related.
2024-03-05T10:49:54.513356+09:00 t14 sudo: nobuto : TTY=pts/0 ;
PWD=/home/nobuto ; USER=root ; COMMAND=/usr/bin/apt update
2024-03-05T11:00:47.422897+09:00 t14 sudo: nobuto : TTY=pts/0 ;
PWD=/home/nobuto ;
The list of files modified in the last two hours (if I increase the
range to the last 2 days, it lists almost everything).
$ find /etc/systemd /lib/systemd/ -mmin -7200
/etc/systemd/system
/etc/systemd/system/snap-chromium-2768.mount
/etc/systemd/system/snap-hugo-18726.mount
Just for completeness.
$ sudo apt update
Warning: The unit file, source configuration file or drop-ins of
apt-news.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Warning: The unit file, source configuration file or drop-ins of
esm-cache.service changed on disk. Run
> @nobotu - was yours really an empty file or did you not copy more than
one?
Are you referring to the `systemctl cat apt-news.service` in the bug
description? If so, my apologies. I just pasted the file line of the
content on purpose just for confirming the full path of the service. The
flie
** Description changed:
I recently started seeing the following warning messages when I run `apt
update`.
$ sudo apt update
Warning: The unit file, source configuration file or drop-ins of
apt-news.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Warning: The
Whoever hits this please help us to spot the difference that happened as
we still lack a reproducer.
# check if it has been changed
dpkg --verify ubuntu-advantage-tools
# check if there are drop ins that got added
systemctl cat apt-news.service
@nobotu - was yours really an empty file or did
Now I remember one relevant thing that happened in the past 48h: I
rebooted the affected system.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2055239
Title:
Warning: The unit file, source
Interestingly this is now happening on my Noble system:
$ sudo apt update
Warning: The unit file, source configuration file or drop-ins of
apt-news.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Warning: The unit file, source configuration file or drop-ins of
I tried to minimize the test case but no luck so far. I will report it
back whenever I find something additional.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2055239
Title:
Warning: The unit
Hello Nobutu. Thanks again for reporting this.
I have been trying to reproduce the error with no success. I tried some
combinations of:
- In lxd container with [jammy, noble]
- [pro downgrade / upgrade targeting 31.1]
- pro enable / disable
- [pro downgrade / upgrade targeting 31.1]
- apt
It was puzzling indeed, but now I have a reproduction step.
$ sudo apt update
-> no warning
$ sudo apt upgrade
-> to install something to invoke the rsyslog trigger.
Processing triggers for rsyslog (8.2312.0-3ubuntu3) ...
Warning: The unit file, source configuration file or drop-ins of
Hello, Nobuto,
First of all, thanks for reporting this issue.
We did changes to the apt news service file - we added the apparmor
profiles and systemd security config there - and no, we didn't reload it
by default, which may be causing those warnings.
However, I could not reproduce this
** Tags removed: need-amd64-retrace
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2055239
Title:
Warning: The unit file, source configuration file or drop-ins of {apt-
news,esm-cache}.service
36 matches
Mail list logo