Your message dated Mon, 8 Jan 2024 23:13:39 +0300
with message-id <[email protected]>
and subject line Re: Bug#932685: Samba package won't respect the -y switch of 
apt-get install command
has caused the Debian Bug report #932685,
regarding Samba package won't respect the -y switch of apt-get install command
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
932685: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932685
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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 <
[email protected]>
 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

--- End Message ---
--- Begin Message ---
Version: 2:4.19.1+dfsg-1

I removed all obsolete debconf questions in version 4.19.1+dfsg-1,
so this bug report might be closed now - there's no more questions
asked during samba install.

/mjt

--- End Message ---

Reply via email to