Debian Bug report logs - #1004233
warning: unable to delete old directory '/usr/lib/systemd/system/sound.target.wants'

version graph

Package: alsa-utils; Maintainer for alsa-utils is Debian ALSA Maintainers <[email protected]>; Source for alsa-utils is src:alsa-utils (PTS, buildd, popcon).

Reported by: Nicolas Le Cam <[email protected]>

Date: Sun, 23 Jan 2022 09:57:02 UTC

Severity: normal

Found in version alsa-utils/1.2.6-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], [email protected], Debian ALSA Maintainers <[email protected]>:
Bug#1004233; Package alsa-utils. (Sun, 23 Jan 2022 09:57:03 GMT) (full text, mbox, link).


Acknowledgement sent to Nicolas Le Cam <[email protected]>:
New Bug report received and forwarded. Copy sent to [email protected], Debian ALSA Maintainers <[email protected]>. (Sun, 23 Jan 2022 09:57:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Nicolas Le Cam <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: warning: unable to delete old directory '/usr/lib/systemd/system/sound.target.wants'
Date: Sun, 23 Jan 2022 10:54:07 +0100
Package: alsa-utils
Version: 1.2.6-1
Severity: normal
X-Debbugs-Cc: [email protected]

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

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (600, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages alsa-utils depends on:
ii  kmod              29-1
ii  libasound2        1.2.6.1-1
ii  libatopology2     1.2.6.1-1
ii  libc6             2.33-2
ii  libfftw3-single3  3.3.8-2
ii  libncursesw6      6.3-2
ii  libsamplerate0    0.2.2-1
ii  libtinfo6         6.3-2
ii  lsb-base          11.1.0

alsa-utils recommends no packages.

Versions of packages alsa-utils suggests:
pn  dialog  <none>

-- no debconf information

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 19:30:05 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.