snort install unattended doesn't like non-ethX interface names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snort (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
1) Ubuntu version: 16.04.1 (server)
2) Package version: 2.9.7.0-5 (amd64)
3) What I expected to happen: Successful installation. More details below.
4) What I got: Failed installation. More details below.
To summarize, if the interface name isn't ethX, snort will fail installing due to the fact that eth0 will be in /etc/snort/
Also, make the script not start snort automatically and leave that to the user. A failure to start snort shouldn't prevent the package from a successful installation
As a workaround to fix the installation, fix the value in snort.debian.conf then do an apt-get -f install.
Notes:
- Even pre-answering using debconf-
- That bug is present since 2008 based on searches (giving lots of results) in snort bugs.
root@ubuntu:~# DEBIAN_
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libauthen-
libhttp-
libnet-http-perl libnet-
snort-
Suggested packages:
libdigest-
The following NEW packages will be installed:
libauthen-
libhttp-
libnet-http-perl libnet-
snort-
0 upgraded, 23 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,504 kB of archives.
After this operation, 11.1 MB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Fetched 2,504 kB in 3s (764 kB/s)
Preconfiguring packages ...
Selecting previously unselected package snort-common-
(Reading database ... 90125 files and directories currently installed.)
Preparing to unpack .../snort-
Unpacking snort-common-
Selecting previously unselected package snort-rules-
Preparing to unpack .../snort-
Unpacking snort-rules-default (2.9.7.0-5) ...
Selecting previously unselected package snort-common.
Preparing to unpack .../snort-
Unpacking snort-common (2.9.7.0-5) ...
Selecting previously unselected package libdaq2.
Preparing to unpack .../libdaq2_
Unpacking libdaq2 (2.0.4-3) ...
Selecting previously unselected package snort.
Preparing to unpack .../snort_
Unpacking snort (2.9.7.0-5) ...
Selecting previously unselected package libfile-
Preparing to unpack .../libfile-
Unpacking libfile-
Selecting previously unselected package libfont-afm-perl.
Preparing to unpack .../libfont-
Unpacking libfont-afm-perl (1.20-1) ...
Selecting previously unselected package libhtml-form-perl.
Preparing to unpack .../libhtml-
Unpacking libhtml-form-perl (6.03-1) ...
Selecting previously unselected package libhtml-tree-perl.
Preparing to unpack .../libhtml-
Unpacking libhtml-tree-perl (5.03-2) ...
Selecting previously unselected package libhtml-
Preparing to unpack .../libhtml-
Unpacking libhtml-format-perl (2.11-2) ...
Selecting previously unselected package libhttp-
Preparing to unpack .../libhttp-
Unpacking libhttp-
Selecting previously unselected package libhttp-
Preparing to unpack .../libhttp-
Unpacking libhttp-daemon-perl (6.01-1) ...
Selecting previously unselected package libhttp-
Preparing to unpack .../libhttp-
Unpacking libhttp-
Selecting previously unselected package libnet-ssleay-perl.
Preparing to unpack .../libnet-
Unpacking libnet-ssleay-perl (1.72-1build1) ...
Selecting previously unselected package libio-socket-
Preparing to unpack .../libio-
Unpacking libio-socket-
Selecting previously unselected package libnet-http-perl.
Preparing to unpack .../libnet-
Unpacking libnet-http-perl (6.09-1) ...
Selecting previously unselected package libwww-
Preparing to unpack .../libwww-
Unpacking libwww-
Selecting previously unselected package libwww-perl.
Preparing to unpack .../libwww-
Unpacking libwww-perl (6.15-1) ...
Selecting previously unselected package liblwp-
Preparing to unpack .../liblwp-
Unpacking liblwp-
Selecting previously unselected package libnet-
Preparing to unpack .../libnet-
Unpacking libnet-
Selecting previously unselected package libmailtools-perl.
Preparing to unpack .../libmailtool
Unpacking libmailtools-perl (2.13-1) ...
Selecting previously unselected package oinkmaster.
Preparing to unpack .../oinkmaster_
Unpacking oinkmaster (2.0-4) ...
Selecting previously unselected package libauthen-
Preparing to unpack .../libauthen-
Unpacking libauthen-sasl-perl (2.1600-1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up snort-common-
Setting up snort-rules-default (2.9.7.0-5) ...
Setting up snort-common (2.9.7.0-5) ...
Setting up libdaq2 (2.0.4-3) ...
Setting up snort (2.9.7.0-5) ...
Job for snort.service failed because the control process exited with error code. See "systemctl status snort.service" and "journalctl -xe" for details.
invoke-rc.d: initscript snort, action "start" failed.
dpkg: error processing package snort (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libfile-
Setting up libfont-afm-perl (1.20-1) ...
Setting up libhtml-form-perl (6.03-1) ...
Setting up libhtml-tree-perl (5.03-2) ...
Setting up libhtml-format-perl (2.11-2) ...
Setting up libhttp-
Setting up libhttp-daemon-perl (6.01-1) ...
Setting up libhttp-
Setting up libnet-ssleay-perl (1.72-1build1) ...
Setting up libio-socket-
Setting up libnet-http-perl (6.09-1) ...
Setting up libwww-
Setting up libnet-
Setting up libmailtools-perl (2.13-1) ...
Setting up libauthen-sasl-perl (2.1600-1) ...
Setting up libwww-perl (6.15-1) ...
Setting up liblwp-
Setting up oinkmaster (2.0-4) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
snort
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ubuntu:~# ifconfig
ens33 Link encap:Ethernet HWaddr 00:0c:29:af:85:8f
inet addr:192.
inet6 addr: fe80::20c:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2117 errors:0 dropped:0 overruns:0 frame:0
TX packets:668 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:2637814 (2.6 MB) TX bytes:93663 (93.6 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:160 errors:0 dropped:0 overruns:0 frame:0
TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:11840 (11.8 KB) TX bytes:11840 (11.8 KB)
Changed in snort (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
I can duplicate this error.
I am running 16.04 LTS on Oracle Virtual Box Version 5.1.18r114002 (Qt 5.6.2)
Its configured as a 64 bit OS, 4096 MB Ram 30 GB HDD.
Michael N. Jones.