Universal Robots Forum

Errors were encountered while processing: runit

Hello everyone,

I am a newbie on URCap development. I am following the steps given in URCap document. I am using Ubuntu 16.04.

  1. The first thing I have tried to install JDK 8 using - sudo apt-get install openjdk-8-jdk
    I came across error - Errors were encountered while processing: runit

I am bit confuse on how to start working. Can you please tell me the full process and procedure on building a sample program of hello world.

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libice-dev libsm-dev libxt-dev openjdk-8-jdk-headless openjdk-8-jre
openjdk-8-jre-headless
Suggested packages:
libice-doc libsm-doc libxt-doc openjdk-8-demo openjdk-8-source visualvm
icedtea-8-plugin fonts-wqy-microhei fonts-wqy-zenhei fonts-indic
The following NEW packages will be installed:
libice-dev libsm-dev libxt-dev openjdk-8-jdk openjdk-8-jdk-headless
openjdk-8-jre openjdk-8-jre-headless
0 upgraded, 7 newly installed, 0 to remove and 179 not upgraded.
1 not fully installed or removed.
Need to get 36.2 MB of archives.
After this operation, 141 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libice-dev amd64 2:1.0.9-1 [44.9 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libsm-dev amd64 2:1.2.2-1 [16.2 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libxt-dev amd64 1:1.1.5-0ubuntu1 [394 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre-headless amd64 8u171-b11-0ubuntu0.16.04.1 [27.0 MB]
Get:5 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre amd64 8u171-b11-0ubuntu0.16.04.1 [69.4 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jdk-headless amd64 8u171-b11-0ubuntu0.16.04.1 [8,213 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jdk amd64 8u171-b11-0ubuntu0.16.04.1 [451 kB]
Fetched 36.2 MB in 34s (1,045 kB/s)
Selecting previously unselected package libice-dev:amd64.
(Reading database … 248457 files and directories currently installed.)
Preparing to unpack …/libice-dev_2%3a1.0.9-1_amd64.deb …
Unpacking libice-dev:amd64 (2:1.0.9-1) …
Selecting previously unselected package libsm-dev:amd64.
Preparing to unpack …/libsm-dev_2%3a1.2.2-1_amd64.deb …
Unpacking libsm-dev:amd64 (2:1.2.2-1) …
Selecting previously unselected package libxt-dev:amd64.
Preparing to unpack …/libxt-dev_1%3a1.1.5-0ubuntu1_amd64.deb …
Unpacking libxt-dev:amd64 (1:1.1.5-0ubuntu1) …
Selecting previously unselected package openjdk-8-jre-headless:amd64.
Preparing to unpack …/openjdk-8-jre-headless_8u171-b11-0ubuntu0.16.04.1_amd64.deb …
Unpacking openjdk-8-jre-headless:amd64 (8u171-b11-0ubuntu0.16.04.1) …
Selecting previously unselected package openjdk-8-jre:amd64.
Preparing to unpack …/openjdk-8-jre_8u171-b11-0ubuntu0.16.04.1_amd64.deb …
Unpacking openjdk-8-jre:amd64 (8u171-b11-0ubuntu0.16.04.1) …
Selecting previously unselected package openjdk-8-jdk-headless:amd64.
Preparing to unpack …/openjdk-8-jdk-headless_8u171-b11-0ubuntu0.16.04.1_amd64.deb …
Unpacking openjdk-8-jdk-headless:amd64 (8u171-b11-0ubuntu0.16.04.1) …
Selecting previously unselected package openjdk-8-jdk:amd64.
Preparing to unpack …/openjdk-8-jdk_8u171-b11-0ubuntu0.16.04.1_amd64.deb …
Unpacking openjdk-8-jdk:amd64 (8u171-b11-0ubuntu0.16.04.1) …
Processing triggers for man-db (2.7.5-1) …
Processing triggers for libc-bin (2.23-0ubuntu10) …
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) …
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) …
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) …
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for mime-support (3.59ubuntu1) …
Setting up runit (2.1.2-3ubuntu1) …
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
dpkg: error processing package runit (–configure):
subprocess installed post-installation script returned error exit status 1
Setting up libice-dev:amd64 (2:1.0.9-1) …
Setting up libsm-dev:amd64 (2:1.2.2-1) …
Setting up libxt-dev:amd64 (1:1.1.5-0ubuntu1) …
Setting up openjdk-8-jre-headless:amd64 (8u171-b11-0ubuntu0.16.04.1) …
Setting up openjdk-8-jre:amd64 (8u171-b11-0ubuntu0.16.04.1) …
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode
Setting up openjdk-8-jdk-headless:amd64 (8u171-b11-0ubuntu0.16.04.1) …
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/idlj to provide /usr/bin/idlj (idlj) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/wsimport to provide /usr/bin/wsimport (wsimport) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jsadebugd to provide /usr/bin/jsadebugd (jsadebugd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/native2ascii to provide /usr/bin/native2ascii (native2ascii) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/javah to provide /usr/bin/javah (javah) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/javap to provide /usr/bin/javap (javap) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jar to provide /usr/bin/jar (jar) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/xjc to provide /usr/bin/xjc (xjc) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/schemagen to provide /usr/bin/schemagen (schemagen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jps to provide /usr/bin/jps (jps) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/extcheck to provide /usr/bin/extcheck (extcheck) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jhat to provide /usr/bin/jhat (jhat) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/wsgen to provide /usr/bin/wsgen (wsgen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode
Setting up openjdk-8-jdk:amd64 (8u171-b11-0ubuntu0.16.04.1) …
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/appletviewer to provide /usr/bin/appletviewer (appletviewer) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
Processing triggers for libc-bin (2.23-0ubuntu10) …
Errors were encountered while processing:
runit

According to this answer:

  • Go to /var/lib/dpkg/info/runit.postinst
  • Comment the following lines:
    #if [ -x /sbin/start ]; then #provided by upstart 
    # /sbin/start runsvdir 
    #fi
  • Save the file and run sudo apt-get install -f

Hope it helps!

1 Like

Thank you Sir,
It started working…