Ohhai
Posts: 2
Joined: Fri Jul 08, 2016 8:41 am

Mono on Raspberry Pi Zero

Fri Jul 08, 2016 9:22 am

I have recently been trying to run a discord bot on my Pi Zero; https://github.com/Kwoth/NadekoBot/wiki, and it requires me to install monodevelop using

Code: Select all

apt-get install mono-devel
However I am unable to install it as it always results in this:

Code: Select all

Setting up libglib2.0-cil (2.12.26-0xamarin1) ...
Illegal instruction
W: removing assembly:  failed!
Illegal instruction
Use of uninitialized value $_ in scalar chomp at /usr/share/cli-common/runtimes.d/mono line 275.
Use of uninitialized value $fullname in concatenation (.) or string at /usr/share/cli-common/runtimes.d/mono line 225.
Illegal instruction
E: installing Assembly /usr/share/cli-common/policies.d/libglib2.0-cil/policy.2.6.glib-sharp.dll failed
E: Installation of policy.2.6.glib-sharp with /usr/share/cli-common/runtimes.d/mono failed
dpkg: error processing package libglib2.0-cil (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libgtk2.0-cil:
 libgtk2.0-cil depends on libglib2.0-cil (= 2.12.26-0xamarin1); however:
  Package libglib2.0-cil is not configured yet.

dpkg: error processing package libgtk2.0-cil (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libglade2.0-cil:
 libglade2.0-cil depends on libglib2.0-cil (>= 2.12.10-1ubuntu1); however:
  Package libglib2.0-cil is not configured yet.
 libglade2.0-cil depends on libgtk2.0-cil (>= 2.12.10-1ubuntu1); however:
  Package libgtk2.0-cil is not configured yet.

dpkg: error processing package libglade2.0-cil (--configure):
 dependency problems - leaving unconfigured
Setting up libnunit-core-interfaces2.6.3-cil (2.6.3+dfsg-1) ...
* Installing 1 assembly from libnunit-core-interfaces2.6.3-cil into Mono
Illegal instruction
Use of uninitialized value $_ in scalar chomp at /usr/share/cli-common/runtimes.d/mono line 275.
Use of uninitialized value $fullname in concatenation (.) or string at /usr/share/cli-common/runtimes.d/mono line 225.
Illegal instruction
E: installing Assembly /usr/lib/cli/nunit.core.interfaces-2.6.3/nunit.core.interfaces.dll failed
E: Installation of libnunit-core-interfaces2.6.3-cil with /usr/share/cli-common/runtimes.d/mono failed
dpkg: error processing package libnunit-core-interfaces2.6.3-cil (--configure):
 subprocess installed post-installation script returned error exit status 132
dpkg: dependency problems prevent configuration of libnunit-core2.6.3-cil:
 libnunit-core2.6.3-cil depends on libnunit-core-interfaces2.6.3-cil; however:
  Package libnunit-core-interfaces2.6.3-cil is not configured yet.

dpkg: error processing package libnunit-core2.6.3-cil (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnunit-util2.6.3-cil:
 libnunit-util2.6.3-cil depends on libnunit-core-interfaces2.6.3-cil; however:
  Package libnunit-core-interfaces2.6.3-cil is not configured yet.
 libnunit-util2.6.3-cil depends on libnunit-core2.6.3-cil; however:
  Package libnunit-core2.6.3-cil is not configured yet.

dpkg: error processing package libnunit-util2.6.3-cil (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnunit-console-runner2.6.3-cil:
 libnunit-console-runner2.6.3-cil depends on libnunit-core-interfaces2.6.3-cil; however:
  Package libnunit-core-interfaces2.6.3-cil is not configured yet.
 libnunit-console-runner2.6.3-cil depends on libnunit-core2.6.3-cil; however:
  Package libnunit-core2.6.3-cil is not configured yet.
 libnunit-console-runner2.6.3-cil depends on libnunit-util2.6.3-cil; however:
  Package libnunit-util2.6.3-cil is not configured yet.

dpkg: error processing package libnunit-console-runner2.6.3-cil (--configure):
 dependency problems - leaving unconfigured
Setting up libnunit-framework2.6.3-cil (2.6.3+dfsg-1) ...
* Installing 1 assembly from libnunit-framework2.6.3-cil into Mono
Illegal instruction
Use of uninitialized value $_ in scalar chomp at /usr/share/cli-common/runtimes.d/mono line 275.
Use of uninitialized value $fullname in concatenation (.) or string at /usr/share/cli-common/runtimes.d/mono line 225.
Illegal instruction
E: installing Assembly /usr/lib/cli/nunit.framework-2.6.3/nunit.framework.dll failed
E: Installation of libnunit-framework2.6.3-cil with /usr/share/cli-common/runtimes.d/mono failed
dpkg: error processing package libnunit-framework2.6.3-cil (--configure):
 subprocess installed post-installation script returned error exit status 132
dpkg: dependency problems prevent configuration of libnunit-mocks2.6.3-cil:
 libnunit-mocks2.6.3-cil depends on libnunit-framework2.6.3-cil; however:
  Package libnunit-framework2.6.3-cil is not configured yet.

dpkg: error processing package libnunit-mocks2.6.3-cil (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnunit-cil-dev:
 libnunit-cil-dev depends on libnunit-console-runner2.6.3-cil (= 2.6.3+dfsg-1); however:
  Package libnunit-console-runner2.6.3-cil is not configured yet.
 libnunit-cil-dev depends on libnunit-core2.6.3-cil (= 2.6.3+dfsg-1); however:
  Package libnunit-core2.6.3-cil is not configured yet.
 libnunit-cil-dev depends on libnunit-core-interfaces2.6.3-cil (= 2.6.3+dfsg-1); however:
  Package libnunit-core-interfaces2.6.3-cil is not configured yet.
 libnunit-cil-dev depends on libnunit-framework2.6.3-cil (= 2.6.3+dfsg-1); however:
  Package libnunit-framework2.6.3-cil is not configured yet.
 libnunit-cil-dev depends on libnunit-mocks2.6.3-cil (= 2.6.3+dfsg-1); however:
  Package libnunit-mocks2.6.3-cil is not configured yet.
 libnunit-cil-dev depends on libnunit-util2.6.3-cil (= 2.6.3+dfsg-1); however:
  Package libnunit-util2.6.3-cil is not configured yet.

dpkg: error processing package libnunit-cil-dev (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmono-cil-dev:
 libmono-cil-dev depends on libnunit-cil-dev (>= 2.4); however:
  Package libnunit-cil-dev is not configured yet.

dpkg: error processing package libmono-cil-dev (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libwebkit1.1-cil:
 libwebkit1.1-cil depends on libglib2.0-cil (>= 2.12.10); however:
  Package libglib2.0-cil is not configured yet.
 libwebkit1.1-cil depends on libgtk2.0-cil (>= 2.12.10); however:
  Package libgtk2.0-cil is not configured yet.

dpkg: error processing package libwebkit1.1-cil (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mono-devel:
 mono-devel depends on libmono-cil-dev (= 4.4.1.0-0xamarin1); however:
  Package libmono-cil-dev is not configured yet.

dpkg: error processing package mono-devel (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mono-complete:
 mono-complete depends on mono-devel (= 4.4.1.0-0xamarin1); however:
  Package mono-devel is not configured yet.
 mono-complete depends on libmono-cil-dev (= 4.4.1.0-0xamarin1); however:
  Package libmono-cil-dev is not configured yet.

dpkg: error processing package mono-complete (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of monodoc-browser:
 monodoc-browser depends on libglade2.0-cil (>= 2.12.10-1ubuntu1); however:
  Package libglade2.0-cil is not configured yet.
 monodoc-browser depends on libglib2.0-cil (>= 2.12.10-1ubuntu1); however:
  Package libglib2.0-cil is not configured yet.
 monodoc-browser depends on libgtk2.0-cil (>= 2.12.10-1ubuntu1); however:
  Package libgtk2.0-cil is not configured yet.
 monodoc-browser depends on libwebkit1.1-cil (>= 0.3); however:
  Package libwebkit1.1-cil is not configured yet.

dpkg: error processing package monodoc-browser (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libglib2.0-cil
 libgtk2.0-cil
 libglade2.0-cil
 libnunit-core-interfaces2.6.3-cil
 libnunit-core2.6.3-cil
 libnunit-util2.6.3-cil
 libnunit-console-runner2.6.3-cil
 libnunit-framework2.6.3-cil
 libnunit-mocks2.6.3-cil
 libnunit-cil-dev
 libmono-cil-dev
 libwebkit1.1-cil
 mono-devel
 mono-complete
 monodoc-browser
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've read pretty much everything google throws at me regarding the issue, I've tried installing mono using the developer's instructions, I've tried wiping the sd card and trying to reinstall on a fresh raspbian image, but to no avail.

If anyone has any idea of what is going wrong, or know if what I'm trying to do is even possible, your input would be highly appreciated.

Thanks in advance.

SonOfAMotherlessGoat
Posts: 690
Joined: Tue Jun 16, 2015 6:01 am

Re: Mono on Raspberry Pi Zero

Fri Jul 08, 2016 7:25 pm

Hi there. Did a quick google of the first 'Use of uninitialized value $_ in scalar chomp' and came up with this. Looks like the ARM6 will not work with the package you are trying to install. It requires the ARM7 (Pi2) for a hard float feature. The 6 used soft float.

Sorry.

http://mono.1490590.n4.nabble.com/Segme ... 65466.html
Account Inactive

Ohhai
Posts: 2
Joined: Fri Jul 08, 2016 8:41 am

Re: Mono on Raspberry Pi Zero

Sat Jul 09, 2016 11:18 am

Thanks, guess I have an excuse to get a Pi 3 now :)

Return to “Troubleshooting”