ulogd: Unable to create netlink socket
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raspbian |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
root@raspberrypi:~# uname -r
3.18.11+
root@raspberrypi:~# sudo apt-get install ulogd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
ulogd-mysql ulogd-pgsql ulogd-pcap ulogd-sqlite3
The following NEW packages will be installed:
ulogd
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/55.1 kB of archives.
After this operation, 181 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package ulogd.
(Reading database ... 78034 files and directories currently installed.)
Unpacking ulogd (from .../ulogd_
Processing triggers for man-db ...
Setting up ulogd (1.24-3.3) ...
Starting netfilter userspace log daemon: Mon May 25 14:04:40 2015 <8> ulogd.c:737 unable to create ipulogd handle
ERROR: Unable to create netlink socket: Bad file descriptor
invoke-rc.d: initscript ulogd, action "start" failed.
dpkg: error processing ulogd (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
ulogd
E: Sub-process /usr/bin/dpkg returned an error code (1)
I can confirm this issue on my Pi 1 running Raspbian wheezy:
root@rasppi- 1b:/home/ diederik# aptitude install ulogd mirrordirector. raspbian. org/raspbian/ wheezy/main ulogd armhf 1.24-3.3 [55,1 kB] 1.24-3. 3_armhf. deb) ...
The following NEW packages will be installed:
ulogd
0 packages upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 55,1 kB of archives. After unpacking 181 kB will be used.
Get: 1 http://
Fetched 55,1 kB in 0s (131 kB/s)
Preconfiguring packages ...
Selecting previously unselected package ulogd.
(Reading database ... 13640 files and directories currently installed.)
Unpacking ulogd (from .../ulogd_
Processing triggers for man-db ...
Setting up ulogd (1.24-3.3) ...
Starting netfilter userspace log daemon: Thu Jan 14 01:07:11 2016 <8> ulogd.c:737 unable to create ipulogd handle
ERROR: Unable to create netlink socket: Bad file descriptor
invoke-rc.d: initscript ulogd, action "start" failed.
dpkg: error processing ulogd (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
ulogd
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up ulogd (1.24-3.3) ...
Starting netfilter userspace log daemon: Thu Jan 14 01:07:16 2016 <8> ulogd.c:737 unable to create ipulogd handle
ERROR: Unable to create netlink socket: Bad file descriptor
invoke-rc.d: initscript ulogd, action "start" failed.
dpkg: error processing ulogd (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
ulogd
On my Pi 2 running Raspbian Jessie it succeeds though:
root@rasppi- 2b:/home/ diederik# aptitude install ulogd acct1{a} libnetfilter- conntrack3{ a} libnetfilter- log1{a} libnfnetlink0{a} ulogd ulogd2{a} mirrordirector. raspbian. org/raspbian/ jessie/main libmnl0 armhf 1.0.3-5 [10,9 kB] mirrordirector. raspbian. org/raspbian/ jessie/main libnfnetlink0 armhf 1.0.1-3 [12,1 kB] mirrordirector. raspbian. org/raspbian/ jessie/main libnetfilter- conntrack3 armhf 1.0.4-1 [40,0 kB] mirrordirector. raspbian. org/raspbian/ jessie/main libnetfilter-acct1 armhf 1.0.2-1.1 [6084 B] mirrordirector. raspbian. org/raspbian/ jessie/main libnetfilter-log1 armhf 1.0.1-1.1 [8356 B] mirrordirector. raspbian. org/raspbian/ jessie/main ulogd2 armhf 2.0.4-2+deb8u1 [104 kB] mirrordirector. raspbian. org/raspbian/ jessie/main ulogd armhf 2.0.4-2+deb8u1 [5102 B] 1.0.3-5_ armhf.deb ... armhf.
The following NEW packages will be installed:
libmnl0{a} libnetfilter-
0 packages upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 186 kB of archives. After unpacking 529 kB will be used.
Do you want to continue? [Y/n/?]
Get: 1 http://
Get: 2 http://
Get: 3 http://
Get: 4 http://
Get: 5 http://
Get: 6 http://
Get: 7 http://
Fetched 186 kB in 1s (127 kB/s)
Selecting previously unselected package libmnl0:armhf.
(Reading database ... 58880 files and directories currently installed.)
Preparing to unpack .../libmnl0_
Unpacking libmnl0:armhf (1.0.3-5) ...
Selecting previously unselected package libnfnetlink0:
Preparing to unpack .../lib...