Page 1 of 1

how to install old mono (3.2.8 or 4.0.5) on Raspian Jessie?

Posted: Wed 01 Jun 2016 9:22 pm
by theweissguy
Subject says it all - Raspian 1.92 installs Mono 4.23. How can I install an older version which will work with MX?

Re: how to install old mono (3.2.8 or 4.0.5) on Raspian Jess

Posted: Thu 02 Jun 2016 2:37 am
by f4phlyer
Not sure if you need to be concerned, the requirement for the older mono is for USB stations. I have two Davis Vantage Pro's, one weather link ip and another a serial usb dongle. Both running on the latest mono, 4.2.1.102

I'm guessing you've checked out https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13587

Re: how to install old mono (3.2.8 or 4.0.5) on Raspian Jess

Posted: Thu 02 Jun 2016 5:00 am
by theweissguy
f4phlyer wrote:Not sure if you need to be concerned, the requirement for the older mono is for USB stations. I have two Davis Vantage Pro's, one weather link ip and another a serial usb dongle. Both running on the latest mono, 4.2.1.102

I'm guessing you've checked out https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13587
To clarify, I'm running a Fine Offset USB station on a PI3 which ran great under 4.0.2. Re-installed a new Raspian 1.92 NOOB system and am trying to get back to 4.0.2 or 4.0.5 from 4.2.3.4. The referenced sources.list change doesn't help.

Re: how to install old mono (3.2.8 or 4.0.5) on Raspian Jess

Posted: Thu 02 Jun 2016 7:30 pm
by f4phlyer
Ok, then ow about this thread

I'm a real novice on a lot of this stuff but I love the Pi because the ultimate solution is just a re-image away.

Anyway, this link has several different instances.

https://cumulus.hosiene.co.uk/viewtopic.p ... 5&p=113229

Re: how to install old mono (3.2.8 or 4.0.5) on Raspian Jess

Posted: Thu 02 Jun 2016 10:59 pm
by theweissguy
f4phlyer wrote:Ok, then ow about this thread

I'm a real novice on a lot of this stuff but I love the Pi because the ultimate solution is just a re-image away.

Anyway, this link has several different instances.

https://cumulus.hosiene.co.uk/viewtopic.p ... 5&p=113229
Thanks for the tip - it should have worked but didn't - here's the problem: update errors out with
W: Conflicting distribution: http://download.mono-project.com wheezy/snapshots/4.0.5 InRelease (expected wheezy/snapshots but got wheezy)
W: Failed to fetch http://download.mono-project.com/repo/d ... /InRelease Unable to find expected entry 'snapshots/4.0.5/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)

I'm no linux guru but the packages file does exist (http://download.mono-project.com/repo/d ... ary-amd64/) and I can't find a problem with the sources list.

Re: how to install old mono (3.2.8 or 4.0.5) on Raspian Jess

Posted: Fri 03 Jun 2016 3:52 am
by f4phlyer
I'm a noob myself, but I'v found Raspian so forgiving I keep bashing away till it works.

Anyway, the thread I posted addresses many issues. I'm guessing you "uninstalled" your current version first.

A ways down the thread is this quote below. Then on page 2 there is another post where the gent had a difficult time uninstalling mono so there are several alternate commands to remove mono.
Matt2E0MDJ wrote:for those having the problem here is a fix that worked for me in the latest Jessie image from Raspberry Pi

Remove the Current Mono version (4.2.1)
sudo apt-get remove mono-complete


sudo apt-get autoremove


Then change the mono repos to a previous version (i used 4.0.5 as 4.0.2 isnt in their snapshot repos)

echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.0.5 main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

mine errored but i ignored the error

sudo apt-get install mono-complete

then check the version
matt@CumulusMX:~/CumulusMX $ mono -V
Mono JIT compiler version 4.0.5 (Stable 4.0.5.1/1d8d582 Thu Nov 12 12:22:41 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. http://www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp+hard
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen

Started up CumulusMX

Current culture: English (United Kingdom)
Serial: blanked for security
Cumulus MX v.3.0.0 build 3036
Today.ini = data/today.ini
Last update=2015-12-30T00:26:37
Fine Offset station found
Connected to station
Cumulus running at: http://*:8998/
(Replace * with any IP address on this machine, or localhost)
Starting web socket server on port 8002
30/12/2015 00:26:39
Type Ctrl-C to terminate

It is now working

Hope this helps some people having this problem

Matt

Re: how to install old mono (3.2.8 or 4.0.5) on Raspian Jess

Posted: Sat 04 Jun 2016 1:10 pm
by theweissguy
Finally got it working (mono 3.2.8):

updated sources.list with:
echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.0.5 main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

installed mono-complete and got 3.38 despite the 4.0.5 in the source. CumulusMX now working fine. I don't need 4.0.5. Thanks for the tips -