Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #965754 > unrolled thread
| Started by | Mikael Hartzell <mikael.hartzell@gmail.com> |
|---|---|
| First post | 2019-07-21 22:10 +0200 |
| Last post | 2019-07-23 23:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.bugs.dist
Bug#932685: Samba package won't respect the -y switch of apt-get install command Mikael Hartzell <mikael.hartzell@gmail.com> - 2019-07-21 22:10 +0200
Bug#932685: [Pkg-samba-maint] Bug#932685: Samba package won't respect the -y switch of apt-get install command Mathieu Parent <math.parent@gmail.com> - 2019-07-23 23:40 +0200
| From | Mikael Hartzell <mikael.hartzell@gmail.com> |
|---|---|
| Date | 2019-07-21 22:10 +0200 |
| Subject | Bug#932685: Samba package won't respect the -y switch of apt-get install command |
| Message-ID | <ymqjE-6yh-27@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
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@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
[toc] | [next] | [standalone]
| From | Mathieu Parent <math.parent@gmail.com> |
|---|---|
| Date | 2019-07-23 23:40 +0200 |
| Subject | Bug#932685: [Pkg-samba-maint] Bug#932685: Samba package won't respect the -y switch of apt-get install command |
| Message-ID | <ynaFQ-1Ap-3@gated-at.bofh.it> |
| In reply to | #965754 |
Control; retitle -1 samba-common: DHCP debconf question shouldn't be critical
Control: severity -1 wishlist
Le dim. 21 juil. 2019 à 22:09, Mikael Hartzell
<mikael.hartzell@gmail.com> a écrit :
>
> 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
-q is not related to debconf questions.
> another commandline I tried is:
>
> sudo apt-get --reinstall -y --no-install-recommends install samba
Those options neither.
> 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.
This was actually fixed by samba 2:4.8.1+dfsg-1 [1]. And was broken by
the upload of isc-dhcp (4.1.1-P1-7) in 2010.
[1]: https://salsa.debian.org/samba-team/samba/commit/04bfc02107845ed941cf7cfd5003a56736d78d54
What you want is something like:
DEBIAN_FRONTEND=noninteractive apt-get -y install samba
So, the behavior is as expected.
However, I agree that asking for wins options today should not be that
"critical".
I'm keeping this bug to track either:
- the lowering of the option, or
- the complete removal of dhcp/wins support
Regards
--
Mathieu Parent
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web