#1004233 warning: unable to delete old directory '/usr/lib/systemd/system/sound.target.wants'

Package:
alsa-utils
Source:
alsa-utils
Description:
Utilities for configuring and using ALSA
Submitter:
Nicolas Le Cam
Date:
2022-01-23 09:57:04 UTC
Severity:
normal
#1004233#5
Date:
2022-01-23 09:54:07 UTC
From:
To:
Dear Maintainer,

alsa-utils show a warning during upgrade from 1.2.5.1-1 to 1.2.6-1:

Unpacking alsa-utils (1.2.6-1) over (1.2.5.1-1) ...
dpkg: warning: unable to delete old directory '/usr/lib/systemd/system/sound.target.wants': Directory not empty

But it seems files in this directory are already from alsa-utils :

$ ls -la /usr/lib/systemd/system/sound.target.wants
total 40
drwxr-xr-x  2 root root  4096 Jan 23 10:24 .
drwxr-xr-x 27 root root 36864 Jan 23 10:25 ..
lrwxrwxrwx  1 root root    23 Jan 12 10:42 alsa-restore.service -> ../alsa-restore.service
lrwxrwxrwx  1 root root    21 Jan 12 10:42 alsa-state.service -> ../alsa-state.service

$ dpkg -S /lib/systemd/system/sound.target.wants/{alsa-restore.service,alsa-state.service}
alsa-utils: /lib/systemd/system/sound.target.wants/alsa-restore.service
alsa-utils: /lib/systemd/system/sound.target.wants/alsa-state.service

As a workaround I did rm this dir and reinsall alsa-utils. sound.target.wants state after reinstall hasn't change

Regards,
Nicolas