Update rc d error unable to read

Hello Trying to install the latest available nprobe version on a RPI running stretch: # apt-get install nprobe Reading package lists... Done Building dependency tree Reading state information... Do...

The problem is the base image I am using from resin doesn’t have systemd enabled by default, and it seems the nprobe deb depends on a functional systemd. For dockerized images, it’s kind of moot to have systemd.

It’s possible to enable systemd on resin images using ENV INITSYSTEM on however that is activated at runtime only, which means there is no way to have nprobe installed in the image ahead of time. It also requires the container to run in privileged mode, which is not desirable.

I will probably look into alternatives using the source code or whatever, as it seems using the precompiled deb packages is a no-go.

Btw here is the full output of the installation including all dependencies.

Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
  bridge-utils cron ethtool fontconfig fontconfig-config fonts-dejavu-core libbsd0 libcairo2 libdatrie1 libdbi1 libexpat1 libfontconfig1 libfreetype6
  libgeoip1 libglib2.0-0 libgraphite2-3 libharfbuzz0b libhiredis0.13 libicu57 libjemalloc1 libmariadb2 libmariadbclient18 libmnl0 libnetfilter-conntrack3
  libnetfilter-queue1 libnfnetlink0 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpcap0.8 libpgm-5.2-0 libpixman-1-0 libpopt0 librrd8
  libsodium18 libthai-data libthai0 libx11-6 libx11-data libxau6 libxcb-render0 libxcb-shm0 libxcb1 libxdmcp6 libxext6 libxml2 libxrender1 libzmq5
  logrotate mysql-common redis-server redis-tools ucf
Suggested packages:
  ifupdown anacron checksecurity geoip-bin ruby-redis
Recommended packages:
  exim4 | postfix | mail-transport-agent geoip-database libglib2.0-data shared-mime-info xdg-user-dirs xml-core bsd-mailx | mailx ntopng-data
The following NEW packages will be installed:
  bridge-utils cron ethtool fontconfig fontconfig-config fonts-dejavu-core libbsd0 libcairo2 libdatrie1 libdbi1 libexpat1 libfontconfig1 libfreetype6
  libgeoip1 libglib2.0-0 libgraphite2-3 libharfbuzz0b libhiredis0.13 libicu57 libjemalloc1 libmariadb2 libmariadbclient18 libmnl0 libnetfilter-conntrack3
  libnetfilter-queue1 libnfnetlink0 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpcap0.8 libpgm-5.2-0 libpixman-1-0 libpopt0 librrd8
  libsodium18 libthai-data libthai0 libx11-6 libx11-data libxau6 libxcb-render0 libxcb-shm0 libxcb1 libxdmcp6 libxext6 libxml2 libxrender1 libzmq5
  logrotate mysql-common nprobe ntopng redis-server redis-tools ucf
0 upgraded, 55 newly installed, 0 to remove and 3 not upgraded.
Need to get 26.6 MB of archives.
After this operation, 93.5 MB of additional disk space will be used.
Get:1 http://archive.raspbian.org/raspbian stretch/main armhf cron armhf 3.0pl1-128 [90.3 kB]
Get:2 http://archive.raspbian.org/raspbian stretch/main armhf libpopt0 armhf 1.16-10 [46.2 kB]
Get:3 http://archive.raspbian.org/raspbian stretch/main armhf libexpat1 armhf 2.2.0-2+deb9u1 [62.2 kB]
Get:5 http://archive.raspbian.org/raspbian stretch/main armhf libfreetype6 armhf 2.6.3-3.2 [384 kB]
Get:7 http://archive.raspbian.org/raspbian stretch/main armhf ucf all 3.0036 [70.2 kB]
Get:8 http://archive.raspbian.org/raspbian stretch/main armhf fonts-dejavu-core all 2.37-1 [1068 kB]
Get:9 http://archive.raspbian.org/raspbian stretch/main armhf fontconfig-config all 2.11.0-6.7 [271 kB]
Get:10 http://archive.raspbian.org/raspbian stretch/main armhf libfontconfig1 armhf 2.11.0-6.7 [313 kB]
Get:11 http://archive.raspbian.org/raspbian stretch/main armhf fontconfig armhf 2.11.0-6.7 [402 kB]
Get:12 http://archive.raspbian.org/raspbian stretch/main armhf libxau6 armhf 1:1.0.8-1 [19.9 kB]
Get:13 http://archive.raspbian.org/raspbian stretch/main armhf libbsd0 armhf 0.8.3-1 [89.0 kB]
Get:14 http://archive.raspbian.org/raspbian stretch/main armhf libxdmcp6 armhf 1:1.1.2-3 [25.0 kB]
Get:15 http://archive.raspbian.org/raspbian stretch/main armhf libxcb1 armhf 1.12-1 [129 kB]
Get:16 http://archive.raspbian.org/raspbian stretch/main armhf libx11-data all 2:1.6.4-3 [290 kB]
Get:17 http://archive.raspbian.org/raspbian stretch/main armhf libx11-6 armhf 2:1.6.4-3 [683 kB]
Get:4 http://apt.ntop.org/stretch_pi armhf/ nprobe 8.3.171203-5974 [663 kB]
Get:18 http://archive.raspbian.org/raspbian stretch/main armhf libxext6 armhf 2:1.3.3-1 [48.1 kB]
Get:19 http://archive.raspbian.org/raspbian stretch/main armhf libnfnetlink0 armhf 1.0.1-3 [12.1 kB]
Get:20 http://archive.raspbian.org/raspbian stretch/main armhf libmnl0 armhf 1.0.4-2 [11.3 kB]
Get:21 http://archive.raspbian.org/raspbian stretch/main armhf logrotate armhf 3.11.0-0.1 [54.5 kB]
Get:22 http://archive.raspbian.org/raspbian stretch/main armhf libicu57 armhf 57.1-6+deb9u1 [7426 kB]
Get:23 http://archive.raspbian.org/raspbian stretch/main armhf libxml2 armhf 2.9.4+dfsg1-2.2+deb9u1 [805 kB]
Get:24 http://archive.raspbian.org/raspbian stretch/main armhf bridge-utils armhf 1.5-13+deb9u1 [32.2 kB]
Get:25 http://archive.raspbian.org/raspbian stretch/main armhf ethtool armhf 1:4.8-1 [96.4 kB]
Get:26 http://archive.raspbian.org/raspbian stretch/main armhf libpixman-1-0 armhf 0.34.0-1 [451 kB]
Get:27 http://archive.raspbian.org/raspbian stretch/main armhf libxcb-render0 armhf 1.12-1 [104 kB]
Get:28 http://archive.raspbian.org/raspbian stretch/main armhf libxcb-shm0 armhf 1.12-1 [95.9 kB]
Get:29 http://archive.raspbian.org/raspbian stretch/main armhf libxrender1 armhf 1:0.9.10-1 [29.9 kB]
Get:30 http://archive.raspbian.org/raspbian stretch/main armhf libcairo2 armhf 1.14.8-1 [688 kB]
Get:31 http://archive.raspbian.org/raspbian stretch/main armhf libdatrie1 armhf 0.2.10-4 [32.8 kB]
Get:32 http://archive.raspbian.org/raspbian stretch/main armhf libdbi1 armhf 0.9.0-4+deb9u1 [27.1 kB]
Get:33 http://archive.raspbian.org/raspbian stretch/main armhf libgeoip1 armhf 1.6.9-4 [85.3 kB]
Get:34 http://archive.raspbian.org/raspbian stretch/main armhf libglib2.0-0 armhf 2.50.3-2 [2527 kB]
Get:35 http://archive.raspbian.org/raspbian stretch/main armhf libgraphite2-3 armhf 1.3.10-1 [71.7 kB]
Get:36 http://archive.raspbian.org/raspbian stretch/main armhf libharfbuzz0b armhf 1.4.2-1 [640 kB]
Get:37 http://archive.raspbian.org/raspbian stretch/main armhf libhiredis0.13 armhf 0.13.3-2 [23.4 kB]
Get:38 http://archive.raspbian.org/raspbian stretch/main armhf libmariadb2 armhf 2.3.2-2 [111 kB]
Get:39 http://archive.raspbian.org/raspbian stretch/main armhf mysql-common all 5.8+1.0.2 [5608 B]
Get:40 http://archive.raspbian.org/raspbian stretch/main armhf libmariadbclient18 armhf 10.1.23-9+deb9u1 [710 kB]
Get:41 http://archive.raspbian.org/raspbian stretch/main armhf libnetfilter-conntrack3 armhf 1.0.6-2 [31.4 kB]
Get:42 http://archive.raspbian.org/raspbian stretch/main armhf libthai-data all 0.1.26-1 [166 kB]
Get:43 http://archive.raspbian.org/raspbian stretch/main armhf libthai0 armhf 0.1.26-1 [49.3 kB]
Get:44 http://archive.raspbian.org/raspbian stretch/main armhf libpango-1.0-0 armhf 1.40.5-1 [305 kB]
Get:45 http://archive.raspbian.org/raspbian stretch/main armhf libpangoft2-1.0-0 armhf 1.40.5-1 [201 kB]
Get:46 http://archive.raspbian.org/raspbian stretch/main armhf libpangocairo-1.0-0 armhf 1.40.5-1 [190 kB]
Get:47 http://archive.raspbian.org/raspbian stretch/main armhf libpcap0.8 armhf 1.8.1-3 [123 kB]
Get:48 http://archive.raspbian.org/raspbian stretch/main armhf libpgm-5.2-0 armhf 5.2.122~dfsg-2 [153 kB]
Get:49 http://archive.raspbian.org/raspbian stretch/main armhf librrd8 armhf 1.6.0-1+b1 [227 kB]
Get:50 http://archive.raspbian.org/raspbian stretch/main armhf libsodium18 armhf 1.0.11-2 [146 kB]
Get:51 http://archive.raspbian.org/raspbian stretch/main armhf libzmq5 armhf 4.2.1-4 [169 kB]
Get:52 http://archive.raspbian.org/raspbian stretch/main armhf libjemalloc1 armhf 3.6.0-9.1 [81.1 kB]
Get:53 http://archive.raspbian.org/raspbian stretch/main armhf redis-tools armhf 3:3.2.6-1 [381 kB]
Get:54 http://archive.raspbian.org/raspbian stretch/main armhf redis-server armhf 3:3.2.6-1 [341 kB]
Get:55 http://archive.raspbian.org/raspbian stretch/main armhf libnetfilter-queue1 armhf 1.0.2-2 [9786 B]
Get:6 http://apt.ntop.org/stretch_pi armhf/ ntopng 3.3.171203-3841 [5325 kB]                                                                               
Fetched 26.6 MB in 1min 13s (361 kB/s)                                                                                                                     
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package cron.
(Reading database ... 8530 files and directories currently installed.)
Preparing to unpack .../00-cron_3.0pl1-128_armhf.deb ...
Unpacking cron (3.0pl1-128) ...
Selecting previously unselected package libpopt0:armhf.
Preparing to unpack .../01-libpopt0_1.16-10_armhf.deb ...
Unpacking libpopt0:armhf (1.16-10) ...
Selecting previously unselected package libexpat1:armhf.
Preparing to unpack .../02-libexpat1_2.2.0-2+deb9u1_armhf.deb ...
Unpacking libexpat1:armhf (2.2.0-2+deb9u1) ...
Selecting previously unselected package libfreetype6:armhf.
Preparing to unpack .../03-libfreetype6_2.6.3-3.2_armhf.deb ...
Unpacking libfreetype6:armhf (2.6.3-3.2) ...
Selecting previously unselected package ucf.
Preparing to unpack .../04-ucf_3.0036_all.deb ...
Moving old data out of the way
Unpacking ucf (3.0036) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../05-fonts-dejavu-core_2.37-1_all.deb ...
Unpacking fonts-dejavu-core (2.37-1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../06-fontconfig-config_2.11.0-6.7_all.deb ...
Unpacking fontconfig-config (2.11.0-6.7) ...
Selecting previously unselected package libfontconfig1:armhf.
Preparing to unpack .../07-libfontconfig1_2.11.0-6.7_armhf.deb ...
Unpacking libfontconfig1:armhf (2.11.0-6.7) ...
Selecting previously unselected package fontconfig.
Preparing to unpack .../08-fontconfig_2.11.0-6.7_armhf.deb ...
Unpacking fontconfig (2.11.0-6.7) ...
Selecting previously unselected package libxau6:armhf.
Preparing to unpack .../09-libxau6_1%3a1.0.8-1_armhf.deb ...
Unpacking libxau6:armhf (1:1.0.8-1) ...
Selecting previously unselected package libbsd0:armhf.
Preparing to unpack .../10-libbsd0_0.8.3-1_armhf.deb ...
Unpacking libbsd0:armhf (0.8.3-1) ...
Selecting previously unselected package libxdmcp6:armhf.
Preparing to unpack .../11-libxdmcp6_1%3a1.1.2-3_armhf.deb ...
Unpacking libxdmcp6:armhf (1:1.1.2-3) ...
Selecting previously unselected package libxcb1:armhf.
Preparing to unpack .../12-libxcb1_1.12-1_armhf.deb ...
Unpacking libxcb1:armhf (1.12-1) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../13-libx11-data_2%3a1.6.4-3_all.deb ...
Unpacking libx11-data (2:1.6.4-3) ...
Selecting previously unselected package libx11-6:armhf.
Preparing to unpack .../14-libx11-6_2%3a1.6.4-3_armhf.deb ...
Unpacking libx11-6:armhf (2:1.6.4-3) ...
Selecting previously unselected package libxext6:armhf.
Preparing to unpack .../15-libxext6_2%3a1.3.3-1_armhf.deb ...
Unpacking libxext6:armhf (2:1.3.3-1) ...
Selecting previously unselected package libnfnetlink0:armhf.
Preparing to unpack .../16-libnfnetlink0_1.0.1-3_armhf.deb ...
Unpacking libnfnetlink0:armhf (1.0.1-3) ...
Selecting previously unselected package libmnl0:armhf.
Preparing to unpack .../17-libmnl0_1.0.4-2_armhf.deb ...
Unpacking libmnl0:armhf (1.0.4-2) ...
Selecting previously unselected package logrotate.
Preparing to unpack .../18-logrotate_3.11.0-0.1_armhf.deb ...
Unpacking logrotate (3.11.0-0.1) ...
Selecting previously unselected package libicu57:armhf.
Preparing to unpack .../19-libicu57_57.1-6+deb9u1_armhf.deb ...
Unpacking libicu57:armhf (57.1-6+deb9u1) ...
Selecting previously unselected package libxml2:armhf.
Preparing to unpack .../20-libxml2_2.9.4+dfsg1-2.2+deb9u1_armhf.deb ...
Unpacking libxml2:armhf (2.9.4+dfsg1-2.2+deb9u1) ...
Selecting previously unselected package bridge-utils.
Preparing to unpack .../21-bridge-utils_1.5-13+deb9u1_armhf.deb ...
Unpacking bridge-utils (1.5-13+deb9u1) ...
Selecting previously unselected package ethtool.
Preparing to unpack .../22-ethtool_1%3a4.8-1_armhf.deb ...
Unpacking ethtool (1:4.8-1) ...
Selecting previously unselected package libpixman-1-0:armhf.
Preparing to unpack .../23-libpixman-1-0_0.34.0-1_armhf.deb ...
Unpacking libpixman-1-0:armhf (0.34.0-1) ...
Selecting previously unselected package libxcb-render0:armhf.
Preparing to unpack .../24-libxcb-render0_1.12-1_armhf.deb ...
Unpacking libxcb-render0:armhf (1.12-1) ...
Selecting previously unselected package libxcb-shm0:armhf.
Preparing to unpack .../25-libxcb-shm0_1.12-1_armhf.deb ...
Unpacking libxcb-shm0:armhf (1.12-1) ...
Selecting previously unselected package libxrender1:armhf.
Preparing to unpack .../26-libxrender1_1%3a0.9.10-1_armhf.deb ...
Unpacking libxrender1:armhf (1:0.9.10-1) ...
Selecting previously unselected package libcairo2:armhf.
Preparing to unpack .../27-libcairo2_1.14.8-1_armhf.deb ...
Unpacking libcairo2:armhf (1.14.8-1) ...
Selecting previously unselected package libdatrie1:armhf.
Preparing to unpack .../28-libdatrie1_0.2.10-4_armhf.deb ...
Unpacking libdatrie1:armhf (0.2.10-4) ...
Selecting previously unselected package libdbi1:armhf.
Preparing to unpack .../29-libdbi1_0.9.0-4+deb9u1_armhf.deb ...
Unpacking libdbi1:armhf (0.9.0-4+deb9u1) ...
Selecting previously unselected package libgeoip1:armhf.
Preparing to unpack .../30-libgeoip1_1.6.9-4_armhf.deb ...
Unpacking libgeoip1:armhf (1.6.9-4) ...
Selecting previously unselected package libglib2.0-0:armhf.
Preparing to unpack .../31-libglib2.0-0_2.50.3-2_armhf.deb ...
Unpacking libglib2.0-0:armhf (2.50.3-2) ...
Selecting previously unselected package libgraphite2-3:armhf.
Preparing to unpack .../32-libgraphite2-3_1.3.10-1_armhf.deb ...
Unpacking libgraphite2-3:armhf (1.3.10-1) ...
Selecting previously unselected package libharfbuzz0b:armhf.
Preparing to unpack .../33-libharfbuzz0b_1.4.2-1_armhf.deb ...
Unpacking libharfbuzz0b:armhf (1.4.2-1) ...
Selecting previously unselected package libhiredis0.13:armhf.
Preparing to unpack .../34-libhiredis0.13_0.13.3-2_armhf.deb ...
Unpacking libhiredis0.13:armhf (0.13.3-2) ...
Selecting previously unselected package libmariadb2:armhf.
Preparing to unpack .../35-libmariadb2_2.3.2-2_armhf.deb ...
Unpacking libmariadb2:armhf (2.3.2-2) ...
Selecting previously unselected package mysql-common.
Preparing to unpack .../36-mysql-common_5.8+1.0.2_all.deb ...
Unpacking mysql-common (5.8+1.0.2) ...
Selecting previously unselected package libmariadbclient18:armhf.
Preparing to unpack .../37-libmariadbclient18_10.1.23-9+deb9u1_armhf.deb ...
Unpacking libmariadbclient18:armhf (10.1.23-9+deb9u1) ...
Selecting previously unselected package libnetfilter-conntrack3:armhf.
Preparing to unpack .../38-libnetfilter-conntrack3_1.0.6-2_armhf.deb ...
Unpacking libnetfilter-conntrack3:armhf (1.0.6-2) ...
Selecting previously unselected package libthai-data.
Preparing to unpack .../39-libthai-data_0.1.26-1_all.deb ...
Unpacking libthai-data (0.1.26-1) ...
Selecting previously unselected package libthai0:armhf.
Preparing to unpack .../40-libthai0_0.1.26-1_armhf.deb ...
Unpacking libthai0:armhf (0.1.26-1) ...
Selecting previously unselected package libpango-1.0-0:armhf.
Preparing to unpack .../41-libpango-1.0-0_1.40.5-1_armhf.deb ...
Unpacking libpango-1.0-0:armhf (1.40.5-1) ...
Selecting previously unselected package libpangoft2-1.0-0:armhf.
Preparing to unpack .../42-libpangoft2-1.0-0_1.40.5-1_armhf.deb ...
Unpacking libpangoft2-1.0-0:armhf (1.40.5-1) ...
Selecting previously unselected package libpangocairo-1.0-0:armhf.
Preparing to unpack .../43-libpangocairo-1.0-0_1.40.5-1_armhf.deb ...
Unpacking libpangocairo-1.0-0:armhf (1.40.5-1) ...
Selecting previously unselected package libpcap0.8:armhf.
Preparing to unpack .../44-libpcap0.8_1.8.1-3_armhf.deb ...
Unpacking libpcap0.8:armhf (1.8.1-3) ...
Selecting previously unselected package libpgm-5.2-0:armhf.
Preparing to unpack .../45-libpgm-5.2-0_5.2.122~dfsg-2_armhf.deb ...
Unpacking libpgm-5.2-0:armhf (5.2.122~dfsg-2) ...
Selecting previously unselected package librrd8:armhf.
Preparing to unpack .../46-librrd8_1.6.0-1+b1_armhf.deb ...
Unpacking librrd8:armhf (1.6.0-1+b1) ...
Selecting previously unselected package libsodium18:armhf.
Preparing to unpack .../47-libsodium18_1.0.11-2_armhf.deb ...
Unpacking libsodium18:armhf (1.0.11-2) ...
Selecting previously unselected package libzmq5:armhf.
Preparing to unpack .../48-libzmq5_4.2.1-4_armhf.deb ...
Unpacking libzmq5:armhf (4.2.1-4) ...
Selecting previously unselected package nprobe.
Preparing to unpack .../49-nprobe_8.3.171203-5974_armhf.deb ...
Unpacking nprobe (8.3.171203-5974) ...
Selecting previously unselected package libjemalloc1.
Preparing to unpack .../50-libjemalloc1_3.6.0-9.1_armhf.deb ...
Unpacking libjemalloc1 (3.6.0-9.1) ...
Selecting previously unselected package redis-tools.
Preparing to unpack .../51-redis-tools_3%3a3.2.6-1_armhf.deb ...
Unpacking redis-tools (3:3.2.6-1) ...
Selecting previously unselected package redis-server.
Preparing to unpack .../52-redis-server_3%3a3.2.6-1_armhf.deb ...
Unpacking redis-server (3:3.2.6-1) ...
Selecting previously unselected package libnetfilter-queue1.
Preparing to unpack .../53-libnetfilter-queue1_1.0.2-2_armhf.deb ...
Unpacking libnetfilter-queue1 (1.0.2-2) ...
Selecting previously unselected package ntopng.
Preparing to unpack .../54-ntopng_3.3.171203-3841_armhf.deb ...
Unpacking ntopng (3.3.171203-3841) ...
Setting up libhiredis0.13:armhf (0.13.3-2) ...
Setting up libpgm-5.2-0:armhf (5.2.122~dfsg-2) ...
Setting up libpopt0:armhf (1.16-10) ...
Setting up libexpat1:armhf (2.2.0-2+deb9u1) ...
Setting up libdbi1:armhf (0.9.0-4+deb9u1) ...
Setting up libjemalloc1 (3.6.0-9.1) ...
Setting up fonts-dejavu-core (2.37-1) ...
Setting up libglib2.0-0:armhf (2.50.3-2) ...
No schema files found: doing nothing.
Setting up mysql-common (5.8+1.0.2) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up libdatrie1:armhf (0.2.10-4) ...
Setting up libmariadbclient18:armhf (10.1.23-9+deb9u1) ...
Setting up libgeoip1:armhf (1.6.9-4) ...
Setting up libicu57:armhf (57.1-6+deb9u1) ...
Setting up libbsd0:armhf (0.8.3-1) ...
Setting up ucf (3.0036) ...
Setting up libxml2:armhf (2.9.4+dfsg1-2.2+deb9u1) ...
Setting up bridge-utils (1.5-13+deb9u1) ...
Setting up libfreetype6:armhf (2.6.3-3.2) ...
Setting up libgraphite2-3:armhf (1.3.10-1) ...
Setting up libpixman-1-0:armhf (0.34.0-1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for systemd (232-25+deb9u1) ...
Setting up libmariadb2:armhf (2.3.2-2) ...
Setting up libnfnetlink0:armhf (1.0.1-3) ...
Setting up libthai-data (0.1.26-1) ...
Setting up libsodium18:armhf (1.0.11-2) ...
Setting up libxdmcp6:armhf (1:1.1.2-3) ...
Setting up ethtool (1:4.8-1) ...
Setting up cron (3.0pl1-128) ...
Adding group `crontab' (GID 107) ...
Done.
Created symlink /etc/systemd/system/multi-user.target.wants/cron.service → /lib/systemd/system/cron.service.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up libmnl0:armhf (1.0.4-2) ...
Setting up logrotate (3.11.0-0.1) ...
Setting up libx11-data (2:1.6.4-3) ...
Setting up libxau6:armhf (1:1.0.8-1) ...
Setting up libpcap0.8:armhf (1.8.1-3) ...
Setting up fontconfig-config (2.11.0-6.7) ...
Setting up libzmq5:armhf (4.2.1-4) ...
Setting up redis-tools (3:3.2.6-1) ...
Setting up libnetfilter-conntrack3:armhf (1.0.6-2) ...
Setting up libharfbuzz0b:armhf (1.4.2-1) ...
Setting up libthai0:armhf (0.1.26-1) ...
Setting up libnetfilter-queue1 (1.0.2-2) ...
Setting up nprobe (8.3.171203-5974) ...
Rebuilding ld cache...
Making the /var/log/nprobe directory...
(Re)Starting nprobe services...
update-rc.d: error: unable to read /etc/init.d/nprobe
dpkg: error processing package nprobe (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up redis-server (3:3.2.6-1) ...
Created symlink /etc/systemd/system/redis.service → /lib/systemd/system/redis-server.service.
Created symlink /etc/systemd/system/multi-user.target.wants/redis-server.service → /lib/systemd/system/redis-server.service.
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up libxcb1:armhf (1.12-1) ...
Setting up libfontconfig1:armhf (2.11.0-6.7) ...
Setting up libxcb-render0:armhf (1.12-1) ...
Setting up libx11-6:armhf (2:1.6.4-3) ...
Setting up libxcb-shm0:armhf (1.12-1) ...
Setting up libxrender1:armhf (1:0.9.10-1) ...
Setting up fontconfig (2.11.0-6.7) ...
Regenerating fonts cache... done.
Setting up libxext6:armhf (2:1.3.3-1) ...
Setting up libpango-1.0-0:armhf (1.40.5-1) ...
Setting up libcairo2:armhf (1.14.8-1) ...
Setting up libpangoft2-1.0-0:armhf (1.40.5-1) ...
Setting up libpangocairo-1.0-0:armhf (1.40.5-1) ...
Setting up librrd8:armhf (1.6.0-1+b1) ...
Setting up ntopng (3.3.171203-3841) ...
Rebuilding ld cache...
(Re)Starting ntopng...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for systemd (232-25+deb9u1) ...
Errors were encountered while processing:
 nprobe
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@5e0b74cb9fad:/data# ```

Think I saw a note that this only works with debian 10, and debian 11 is not supported/experimental currently. I have a fresh install that failed once, then I started again and it seemed to almost finish right but errored. I have logs of the whole install, but thought if I shared the errors here maybe it would help future development.

1st run errors:

E: Failed to fetch http://mirror.myhostdatacenter.com/debian/pool/main/m/mc/mc-data_4.8.26-1.1_all.deb Undetermined Error [IP: 107.107.77.77 77]
E: Unable to fetch some archives, maybe run apt-get update or try with —fix-missing?
Error: apt-get install failed

=-=-=-=-
So.. I did some ip checks and they show up, so I did the restart apache2.. then I tried to run the install script again.. I think it did better the second time.. but it got janky and now I think the server can’t get out to the internet / curl, apt-get and such fails now..

=-=-=-===-

here are some errors from the second run:

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/run/mysqld/mysqld.sock’ (2).
unable to connect to mysql server.
error encountered creating user:
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/run/mysqld/mysqld.sock’ (2)
dbconfig-common: phpmyadmin configure: noninteractive fail.
dbconfig-common: phpmyadmin configure: ignoring errors from here forwards
populating database via sql… done.

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/run/mysqld/mysqld.sock’ (2).
unable to connect to mysql server.
error encountered creating user:
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/run/mysqld/mysqld.sock’ (2)
dbconfig-common: roundcube configure: noninteractive fail.

update-rc.d: error: unable to read /etc/init.d/mysql
2022-01-10 23:43:48 URL:http://c.myvestacp.com/debian/11/pma/pma.sh [6790/6790] -> «/root/phpmyadmin/pma.sh» [1]
2022-01-10 23:43:48 URL:http://c.myvestacp.com/debian/11/pma/create_tables.sql [11911/11911] -> «/root/phpmyadmin/create_tables.sql» [1]
ALTER ROLE
update-rc.d: error: unable to read /etc/init.d/bind9

at the end I got:

=== Blocking executable files inside zip/rar/tar archives in ClamAV
2022-01-10 23:44:27 URL:http://c.myvestacp.com/tools/clamav/foxhole_all.cdb [10477/10477] -> «/var/lib/clamav/foxhole_all.cdb» [1]
Synchronizing state of spamassassin.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable spamassassin
Created symlink /etc/systemd/system/multi-user.target.wants/spamassassin.service → /lib/systemd/system/spamassassin.service.
Error: invalid interface format :: enp2s0
Usage: v-change-sys-ip-nat IP NAT_IP [RESTART]
Enabling module remoteip.
To activate the new configuration, you need to run:
systemctl restart apache2
grep: /usr/local/vesta/data/ips/*: No such file or directory
grep: /usr/local/vesta/data/ips/*: No such file or directory
Error: no IP is available
Error: can’t create myactualwebsitename.click domain

=-=-=-=-=-==-=-=
This is what I can now:
sudo bash vst-install-debian.sh —apache yes —nginx yes —p[27m[7mh[27m[7mpfpm no —vsftpd no —proftpd yes —named yes —mysql yes —postgresql yes —ex[27m[7mi[27m[7mm yes —dovecot yes —clamav yes —spamassassin yes —iptables yes —fail2ban y[27m[7me[27m[7ms —quota no —force no —interactive yes —port 8083 —lang en [27m[A[A[A
[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C sudo bash vst-install-debian.sh —apache yes —nginx yes —phpfpm no —vsftpd no —proftpd yes —named yes —mysql yes —postgresql yes —exim yes —dovecot yes —clamav yes —spamassassin yes —iptables yes —fail2ban yes —quota no —force no —interactive yes —port 8083 —lang en
[?2004l
Updating apt, please wait…
Error: No access to Vesta repository

=-=-=-==-=-=-

I can post the full logs on a pass protected page or something if the main dev would find it useful.

should I just reinstall deb 11 and do something different or should I just wipe it and switch to debian 10 ?

any ideas? help appreciated.

Steve

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Specialised Support
  • Ubuntu Servers, Cloud and Juju
  • Server Platforms
  • Unable to start my Startup Script

  1. Question Unable to start my Startup Script

    Hello
    I’m deploying a django app with daphne and nginx in a Ubuntu Server
    I follow this two tutorial, mainly the first:

    1. Tutorial 1
    2. Tutorial 2

    Before all, I get working everything in dev mode and expose it through an open port 8000.

    Code:

    python manage.py runserver 0.0.0.0:8000
    #or
    daphne -b 0.0.0.0 -p 8000 myapp.asgi:application

    Then in my first step I installed redis-server

    Code:

    sudo apt-get install redis-server

    I created my startup script (following the second tutorial).
    My cnf in: /etc/init/

    sudo nano /etc/init/myapp.cnf


    Code:

    
    
    start on runlevel [2345]
    stop on runlevel [016]
    
    respawn
    
    script
        cd /home/mypath/myapp
        export DJANGO_SETTINGS_MODULE="myapp.settings"
        exec daphne -b 0.0.0.0 -p 8000 myapp.asgi:application
    end script

    The symbolic link

    Code:

    ln -fs /lib/init/upstart-job /etc/init/myapp

    But here it throw me the following error:

    Code:

    update-rc.d ferreyrostimecontrol defaults

    update-rc.d: error: unable to read /etc/init.d/myapp

    Then I decide to delete the previously symbolic link created and create my conf in init.d.


    sudo nano /etc/init.d/myapp.cnf


    Code:

    
    start on runlevel [2345]
    stop on runlevel [016]
    
    respawn
    
    script
        cd /home/mypath/myapp
        export DJANGO_SETTINGS_MODULE="myapp.settings"
        exec daphne -b 0.0.0.0 -p 8000 myapp.asgi:application
    end script


    Again the symbolic link

    Code:

    ln -fs /lib/init/upstart-job /etc/init.d/myapp

    But also fails

    Code:

    update-rc.d ferreyrostimecontrol defaults

    update-rc.d: error: unable to read /etc/init.d/myappWhere is the problem?


  2. Re: Unable to start my Startup Script

    Can’t tell. The way thing start is different depending on the release used. There are no more «runlevels» since before 16.04, so that doesn’t make sense.

    Inside your scripts, always use the full path to every program, never trust the PATH environment variable.

    When I setup Redis, there was more configuration needed than you are showing, but I don’t do python.


Bookmarks

Bookmarks


Posting Permissions

User avatar

grynnan

Posts: 15
Joined: Mon May 14, 2012 3:53 pm

update-rc.d script defaults

Code: Select all

$sudo update-rc.d script defaults
update-rc.d: using dependency based boot sequencing
update-rc.d: error: unable to read /etc/init.d/script

Doh!
Hard to read anything that doesn’t exist. Where did script go? =P

Was trying to K some services out, but I think I wait.
Is it debian, or raspian that has an unstable update-rc? Can’t remember seeing this last line in debian:

Code: Select all

sudo update-rc.d
update-rc.d: using dependency based boot sequencing
update-rc.d: error: not enough arguments
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> defaults [NN | SS KK]
       update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
       update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
		-n: not really
		-f: force

The disable|enable API is not stable and might change in the future.

The disable|enable API is not stable and might change in the future.


User avatar

jojopi

Posts: 3693
Joined: Tue Oct 11, 2011 8:38 pm

Re: update-rc.d script defaults

Tue Jul 31, 2012 3:58 am

If «script» is the name of a real init script, what does it do? Have you installed all the packages associated with doing that thing?

To me, «script» sounds more like a meta-syntactic name for a script. As though you are following instructions that suggested «update-rc.d script defaults», but you were supposed to change the word «script» to the name of the script you wanted.



ylafont

Posts: 16
Joined: Wed Sep 26, 2012 1:13 am

Re: update-rc.d script defaults

Fri Feb 06, 2015 3:50 pm

Forgive me, I think i also needed my cup of coffee this morning. I copied the incorrect portion of my screen.

here is the correct one.

Code: Select all

pi@PiScanner /etc/init.d $ sudo update-rc.d scanbd defaults
update-rc.d: using dependency based boot sequencing
pi@PiScanner /etc/init.d $

It is at startup script for scanbd — http://scanbd.sourceforge.net/ which uses sane and monitors scanner buttons.

The app is installed and I can start it manually.

I get nothing in syslog or message log stating the script was executed.


Return to “Raspberry Pi OS”

Понравилась статья? Поделить с друзьями:
  • Update rc d error no runlevel symlinks to modify aborting
  • Update rc d error drbd default start contains no runlevels aborting
  • Unrecoverable playback error device invalidated
  • Unrecoverable playback error could not query sample rate
  • Unrecoverable playback error could not locate the specified virtual asio device