[Pkg-samba-maint] Bug#932685: Samba package won't respect the -y switch of apt-get install command
Mikael Hartzell
mikael.hartzell at gmail.com
Sun Jul 21 21:03:46 BST 2019
Package: samba-common
Version: 2:4.9.5+dfsg-5
I maintain a software package (freelcs.sourceforge.net) that runs on
Debian. My software needs samba and installs this among other packages it
needs with apt-get. The user runs my GUI installer which uses apt-get in
the background to install needed Debian packages unattended. This has
worked fine before in Debian releases 7, 8 and 9, but now in Debian 10 the
installer fails because the samba-common package won't respect the -q=2 -y
swithces on apt-get commandline. The exact commandline I use is:
apt-get -q=2 --reinstall -y install samba
another commandline I tried is:
sudo apt-get --reinstall -y --no-install-recommends install samba
The expected behavior is that samba package is installed without prompting
the user for anything. However both of these commands now always open up a
prompt asking:
"If your computer gets IP address information from a DHCP server on the
network, the DHCP server may also provide information about WINS servers
("NetBIOS name servers") present on the network. This requires a change to
your smb.conf file so
that DHCP-provided WINS settings will automatically be read from
/var/lib/samba/dhcp.conf.
The dhcp-client package must be installed to take advantage of this feature.
Modify smb.conf to use WINS settings from DHCP?"
IMHO this seems like a bug in the samba package, since the behavior has
changed from earlier samba - versions and the apt-get switches -q=2 -y and
--no-install-recommends should provide default answers for the packages
questions and the installation should proceed without any prompts.
My architecure is:
uname -a
Linux debian10 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u1 (2019-07-19)
x86_64 GNU/Linux
My CPU is AMD Threadripper 2950X
Here is info about the package that I think is responsible for the faulty
behavior:
dpkg -I samba-common_2%3a4.9.5+dfsg-5_all.deb
new Debian package, version 2.0.
size 169456 bytes: control archive=35656 bytes.
79 bytes, 3 lines conffiles
2221 bytes, 97 lines * config #!/bin/sh
688 bytes, 19 lines control
725 bytes, 10 lines md5sums
3190 bytes, 117 lines * postinst #!/bin/sh
734 bytes, 30 lines * postrm #!/bin/sh
101214 bytes, 557 lines templates
Package: samba-common
Source: samba
Version: 2:4.9.5+dfsg-5
Architecture: all
Maintainer: Debian Samba Maintainers <
pkg-samba-maint at lists.alioth.debian.org>
Installed-Size: 281
Pre-Depends: dpkg (>= 1.15.6~)
Depends: ucf, debconf (>= 0.5) | debconf-2.0
Recommends: samba-common-bin
Section: net
Priority: optional
Multi-Arch: foreign
Homepage: http://www.samba.org
Description: common files used by both the Samba server and client
Samba is an implementation of the SMB/CIFS protocol for Unix systems,
providing support for cross-platform file and printer sharing with
Microsoft Windows, OS X, and other Unix systems.
.
This package contains common files used by all parts of Samba.
Mikael Hartzell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20190721/50072a12/attachment.html>
More information about the Pkg-samba-maint
mailing list