[Pkg-freeipa-devel] Bug#1012593: freeipa-client-samba: "ipa-client-samba --uninstall" fails: No such file or directory: '/var/lib/samba/lock'

Jochen Kellner jochen at jochen.org
Thu Jun 9 21:48:45 BST 2022


Package: freeipa-client-samba
Version: 4.9.8-1~bpo11+1
Severity: minor

Dear Maintainer,

I had to clean up a broken run of ipa-client-samba so I could
try again.  Calling "ipa-client-samba --uninstall" yields:

:/etc/samba# ipa-client-samba --uninstall
Traceback (most recent call last):
  File "/usr/sbin/ipa-client-samba", line 15, in <module>
    sys.exit(ipa_client_samba.run())
  File "/usr/lib/python3/dist-packages/ipaclient/install/ipa_client_samba.py", line 537, in run
    uninstall(fstore, statestore, options)
  File "/usr/lib/python3/dist-packages/ipaclient/install/ipa_client_samba.py", line 455, in uninstall
    for tdb_file in os.listdir(smbpath)
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/samba/lock'

On fedora that directory is part of samba-common - but the debian packages
don't have that directory.

I've just created that directory and "ipa-client-samba --uninstall"
finished ok (and leaves the manually created directory alone).

That looks like the packages needs different paths on Debian.


-- System Information:
Debian Release: 11.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

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

Versions of packages freeipa-client-samba depends on:
ii  cifs-utils        2:6.11-3.1+deb11u1
ii  freeipa-client    4.9.8-1~bpo11+1
ii  python3           3.9.2-3
ii  python3-samba     2:4.13.13+dfsg-1~deb11u3
ii  samba-common-bin  2:4.13.13+dfsg-1~deb11u3
ii  smbclient         2:4.13.13+dfsg-1~deb11u3
ii  tdb-tools         1.4.3-1+b1
ii  winbind           2:4.13.13+dfsg-1~deb11u3

freeipa-client-samba recommends no packages.

freeipa-client-samba suggests no packages.

-- no debconf information



More information about the Pkg-freeipa-devel mailing list