Announcement

Collapse
No announcement yet.

event triggers gone after mono upgrade

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    homeseer@hometrollerSEL:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
    [sudo] password for homeseer:
    Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.xID9xrUQ0s --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
    gpg: requesting key D3D831EF from hkp server keyserver.ubuntu.com
    gpg: key D3D831EF: "Xamarin Public Jenkins (auto-signing) <releng@xamarin.com>" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1
    homeseer@hometrollerSEL:~$ echo "deb http://download.mono-project.com/repo/ubuntu trusty main" | sudo tee /etc/apt/sources.list.d/mono-official.list
    deb http://download.mono-project.com/repo/ubuntu trusty main
    homeseer@hometrollerSEL:~$ sudo apt-get update
    Ign http://us.archive.ubuntu.com trusty InRelease
    Hit http://download.mono-project.com trusty InRelease
    Hit http://us.archive.ubuntu.com trusty Release.gpg
    Hit http://us.archive.ubuntu.com trusty Release
    Ign http://download.mono-project.com wheezy/snapshots/3.2.8 InRelease
    Hit http://us.archive.ubuntu.com trusty/main Sources
    Hit http://us.archive.ubuntu.com trusty/restricted Sources
    Hit http://download.mono-project.com trusty/main i386 Packages
    Hit http://us.archive.ubuntu.com trusty/universe Sources
    Hit http://us.archive.ubuntu.com trusty/multiverse Sources
    Hit http://us.archive.ubuntu.com trusty/main i386 Packages
    Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages
    Hit http://us.archive.ubuntu.com trusty/universe i386 Packages
    Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages
    Ign http://extras.ubuntu.com trusty InRelease
    Hit http://us.archive.ubuntu.com trusty/main Translation-en
    Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en
    Ign http://download.mono-project.com wheezy/snapshots/3.2.8 Release.gpg
    Hit http://us.archive.ubuntu.com trusty/restricted Translation-en
    Hit http://us.archive.ubuntu.com trusty/universe Translation-en
    Hit http://extras.ubuntu.com trusty Release.gpg
    Ign http://download.mono-project.com wheezy/snapshots/3.2.8 Release
    Hit http://extras.ubuntu.com trusty Release
    Ign http://us.archive.ubuntu.com trusty/main Translation-en_US
    Hit http://extras.ubuntu.com trusty/main Sources
    Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US
    Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US
    Hit http://extras.ubuntu.com trusty/main i386 Packages
    Ign http://download.mono-project.com trusty/main Translation-en_US
    Ign http://download.mono-project.com trusty/main Translation-en
    Err http://download.mono-project.com wheezy/snapshots/3.2.8/main i386 Packages
    404 Not Found [IP: 72.21.81.200 80]
    Ign http://download.mono-project.com wheezy/snapshots/3.2.8/main Translation-en_US
    Ign http://download.mono-project.com wheezy/snapshots/3.2.8/main Translation-en
    Ign http://extras.ubuntu.com trusty/main Translation-en_US
    Ign http://extras.ubuntu.com trusty/main Translation-en
    W: Failed to fetch http://download.mono-project.com/rep...-i386/Packages 404 Not Found [IP: 72.21.81.200 80]

    E: Some index files failed to download. They have been ignored, or old ones used instead.
    homeseer@hometrollerSEL:~$ sudo apt-get -y --fix-broken install mono-devel
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    mono-devel : Depends: libglib2.0-0 (>= 2.40.2) but 2.40.0-2 is to be installed
    Recommends: mono-csharp-shell but it is not going to be installed
    Recommends: referenceassemblies-pcl but it is not going to be installed
    Recommends: msbuild but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

    Comment


    • #32
      Desperation time. Try this

      Code:
      sudo apt-get -y --reinstall libglib2.0-0
      sudo apt-get -y --fix-broken --fix-missing install mono-devel

      Comment


      • #33
        Also from another thread, try this:
        Code:
        sudo apt-get -y install libmono-microsoft-csharp4.0-cil

        Comment


        • #34
          homeseer@hometrollerSEL:~$ sudo apt-get -y --reinstall libglib2.0-0
          E: Command line option 'y' [from -y] is not known.
          homeseer@hometrollerSEL:~$ sudo apt-get -y --fix-broken --fix-missing install mono-devel
          Reading package lists... Done
          Building dependency tree
          Reading state information... Done
          Some packages could not be installed. This may mean that you have
          requested an impossible situation or if you are using the unstable
          distribution that some required packages have not yet been created
          or been moved out of Incoming.
          The following information may help to resolve the situation:

          The following packages have unmet dependencies:
          mono-devel : Depends: libglib2.0-0 (>= 2.40.2) but 2.40.0-2 is to be installed
          Recommends: mono-csharp-shell but it is not going to be installed
          Recommends: referenceassemblies-pcl but it is not going to be installed
          Recommends: msbuild but it is not going to be installed
          E: Unable to correct problems, you have held broken packages.
          homeseer@hometrollerSEL:~$ sudo apt-get -y install libmono-microsoft.csharp4.0-cil
          Reading package lists... Done
          Building dependency tree
          Reading state information... Done
          Note, selecting 'libmono-microsoft-csharp4.0-cil' for regex 'libmono-microsoft.csharp4.0-cil'
          The following NEW packages will be installed:
          libmono-microsoft-csharp4.0-cil
          0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
          Need to get 0 B/122 kB of archives.
          After this operation, 394 kB of additional disk space will be used.
          Selecting previously unselected package libmono-microsoft-csharp4.0-cil.
          (Reading database ... 213853 files and directories currently installed.)
          Preparing to unpack .../libmono-microsoft-csharp4.0-cil_5.16.0.179-0xamarin1+ubuntu1404b1_all.deb ...
          Unpacking libmono-microsoft-csharp4.0-cil (5.16.0.179-0xamarin1+ubuntu1404b1) ...
          Setting up libmono-microsoft-csharp4.0-cil (5.16.0.179-0xamarin1+ubuntu1404b1) ...
          homeseer@hometrollerSEL:~$

          Comment


          • #35
            So, I ran into this exact issue when I attempted to install mono 4.x from 3.2 on my old home brew RPI 3B running raspbian and HS3 standard. Mono changed substantially in the 4.x version. From what I remember, I had to do much the same as you uninstall and install the last version of mono 3.12. I did this by pointing to the mono project’s distribution, and hard coding my OS to version 3.12. Then I was able to get things working again.

            Recently, the JSON export feature was further developed in HS3 and allowed me to export my events on my new VM server build and move to the current version of mono. I can look at my notes from my old HS3 RPI3 server if you need.


            Sent from my iPhone using Tapatalk

            Comment


            • #36
              Lets try this one again, corrected
              Code:
              sudo apt-get -y --reinstall install libglib2.0-0

              Comment


              • #37
                homeseer@hometrollerSEL:~$ sudo apt-get -y --reinstall install libglib2.0-0
                Reading package lists... Done
                Building dependency tree
                Reading state information... Done
                0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
                Need to get 1,031 kB of archives.
                After this operation, 0 B of additional disk space will be used.
                Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main libglib2.0-0 i386 2.40.0-2 [1,031 kB]
                Fetched 1,031 kB in 0s (1,743 kB/s)
                (Reading database ... 213860 files and directories currently installed.)
                Preparing to unpack .../libglib2.0-0_2.40.0-2_i386.deb ...
                Unpacking libglib2.0-0:i386 (2.40.0-2) over (2.40.0-2) ...
                Setting up libglib2.0-0:i386 (2.40.0-2) ...
                Processing triggers for libc-bin (2.19-0ubuntu6.3) ...

                Comment


                • #38
                  This should upgrade libglib2.0 to version 2.48.0, which hopefully will get us further towards installing mono-devel

                  First download three package files
                  Code:
                  wget http://us.archive.ubuntu.com/ubuntu/pool/main/g/glib2.0/libglib2.0-0_2.48.0-1ubuntu4_i386.deb
                  wget http://us.archive.ubuntu.com/ubuntu/pool/main/g/glib2.0/libglib2.0-bin_2.48.0-1ubuntu4_i386.deb
                  wget http://us.archive.ubuntu.com/ubuntu/pool/main/g/glib2.0/libglib2.0-data_2.48.0-1ubuntu4_all.deb
                  Next install. If each appears to run without error continue, otherwise stop.
                  Code:
                  sudo dpkg -i libglib2.0-0_2.48.0-1ubuntu4_i386.deb
                  sudo dpkg -i libglib2.0-bin_2.48.0-1ubuntu4_i386.deb
                  sudo dpkg -i libglib2.0-data_2.48.0-1ubuntu4_all.deb
                  Check your handywork.
                  Code:
                  dpkg --list | grep libglib
                  Before (post #29) this returned version 2.40.0-2, if all goes to plan (no giggling), it should now be at 2.48.0-1.

                  If all looks good, try the mono-devel install again
                  Code:
                  sudo apt-get -y install mono-devel

                  Comment


                  • #39
                    That seemed to all work. looks like we got to 2.48.0-1, mono-devel installed

                    Maybe I am on the path to recovery.

                    What now?



                    homeseer@hometrollerSEL:~$ wget http://us.archive.ubuntu.com/ubuntu/...untu4_i386.deb
                    --2018-11-05 06:44:42-- http://us.archive.ubuntu.com/ubuntu/...untu4_i386.deb
                    Resolving us.archive.ubuntu.com (us.archive.ubuntu.com)... 91.189.91.23, 91.189.91.26, 2001:67c:1562::16, ...
                    Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... connected.
                    HTTP request sent, awaiting response... 200 OK
                    Length: 1183386 (1.1M) [application/x-debian-package]
                    Saving to: ‘libglib2.0-0_2.48.0-1ubuntu4_i386.deb’

                    100%[============================================>] 1,183,386 --.-K/s in 0.1s

                    2018-11-05 06:44:42 (8.61 MB/s) - ‘libglib2.0-0_2.48.0-1ubuntu4_i386.deb’ saved [1183386/1183386]

                    homeseer@hometrollerSEL:~$ wget http://us.archive.ubuntu.com/ubuntu/...untu4_i386.deb
                    --2018-11-05 06:59:22-- http://us.archive.ubuntu.com/ubuntu/...untu4_i386.deb
                    Resolving us.archive.ubuntu.com (us.archive.ubuntu.com)... 91.189.91.23, 91.189.91.26, 2001:67c:1562::19, ...
                    Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... connected.
                    HTTP request sent, awaiting response... 200 OK
                    Length: 41092 (40K) [application/x-debian-package]
                    Saving to: ‘libglib2.0-bin_2.48.0-1ubuntu4_i386.deb’

                    100%[============================================>] 41,092 --.-K/s in 0.02s

                    2018-11-05 06:59:22 (2.25 MB/s) - ‘libglib2.0-bin_2.48.0-1ubuntu4_i386.deb’ saved [41092/41092]

                    homeseer@hometrollerSEL:~$ wget http://us.archive.ubuntu.com/ubuntu/...buntu4_all.deb
                    --2018-11-05 07:00:20-- http://us.archive.ubuntu.com/ubuntu/...buntu4_all.deb
                    Resolving us.archive.ubuntu.com (us.archive.ubuntu.com)... 91.189.91.26, 91.189.91.23, 2001:67c:1562::16, ...
                    Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... connected.
                    HTTP request sent, awaiting response... 200 OK
                    Length: 130932 (128K) [application/x-debian-package]
                    Saving to: ‘libglib2.0-data_2.48.0-1ubuntu4_all.deb’

                    100%[============================================>] 130,932 --.-K/s in 0.04s

                    2018-11-05 07:00:20 (3.11 MB/s) - ‘libglib2.0-data_2.48.0-1ubuntu4_all.deb’ saved [130932/130932]

                    homeseer@hometrollerSEL:~$ sudo dpkg -i libglib2.0-0_2.48.0-1ubuntu_i386.deb
                    [sudo] password for homeseer:
                    dpkg: error processing archive libglib2.0-0_2.48.0-1ubuntu_i386.deb (--install):
                    cannot access archive: No such file or directory
                    Errors were encountered while processing:
                    libglib2.0-0_2.48.0-1ubuntu_i386.deb
                    homeseer@hometrollerSEL:~$ sudo dpkg -i libglib2.0-0_2.48.0-1ubuntu4_i386.deb
                    (Reading database ... 213860 files and directories currently installed.)
                    Preparing to unpack libglib2.0-0_2.48.0-1ubuntu4_i386.deb ...
                    Unpacking libglib2.0-0:i386 (2.48.0-1ubuntu4) over (2.40.0-2) ...
                    Setting up libglib2.0-0:i386 (2.48.0-1ubuntu4) ...
                    Processing triggers for libc-bin (2.19-0ubuntu6.3) ...
                    homeseer@hometrollerSEL:~$ sudo dpkg -i libglib2.0-bin_2.48.0-1ubuntu4_i386.deb
                    (Reading database ... 213860 files and directories currently installed.)
                    Preparing to unpack libglib2.0-bin_2.48.0-1ubuntu4_i386.deb ...
                    Unpacking libglib2.0-bin (2.48.0-1ubuntu4) over (2.40.0-2) ...
                    Setting up libglib2.0-bin (2.48.0-1ubuntu4) ...
                    Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
                    homeseer@hometrollerSEL:~$ sudo dpkg -i libglib2.0-data_2.48.0-1ubuntu4_all.deb
                    (Reading database ... 213861 files and directories currently installed.)
                    Preparing to unpack libglib2.0-data_2.48.0-1ubuntu4_all.deb ...
                    Unpacking libglib2.0-data (2.48.0-1ubuntu4) over (2.40.0-2) ...
                    Setting up libglib2.0-data (2.48.0-1ubuntu4) ...
                    homeseer@hometrollerSEL:~$ dpkg --list | grep libglib
                    ii libglib-perl 3:1.304-1 i386 interface to the GLib and GObject libraries
                    ii libglib2.0-0:i386 2.48.0-1ubuntu4 i386 GLib library of C routines
                    ii libglib2.0-bin 2.48.0-1ubuntu4 i386 Programs for the GLib library
                    ii libglib2.0-data 2.48.0-1ubuntu4 all Common files for GLib library
                    ii libglibmm-2.4-1c2a:i386 2.39.93-0ubuntu1 i386 C++ wrapper for the GLib toolkit (shared libraries)



                    Comment


                    • #40
                      Did you do the install of mono-devel? If so, try installing mono-complete, then mono-vbnc, then see if HS3 starts up on bootup.

                      Code:
                      sudo apt-get -qy install mono-complete mono-vbnc

                      Comment


                      • #41
                        Well that finally did it! Homeseer back up and running with mono 5.16 installed. Now I have to recreate all of my events and figure out why my ecobee plug-in isnt working again...

                        But that's a story for another day. I sincerely appreciate all of your help and patience with this linux noob. Thank you so much for working me through all of that and being willing to try.

                        Comment


                        • #42
                          Good to hear that you got it recovered. Sorry that we were unsuccessful regarding your original request. But at least you got set up and familiar with PuTTY & ssh, which I think will serve you well for any future forays into the Linux 'dark side'

                          Comment


                          • #43
                            FWIW... I discovered a blunder on my part, which is what prevented you from being able to get mono from the the Ubuntu repo (which I determined is version 3.2.8). In post #7, 2nd step I had you remove the repo pointer file, but I got the name wrong. I wrote "mono-official-stable.list" which is the name used in the mono documentation, but in HomeSeer's mono5.sh script, they used "mono-official.list". So we never removed the pointer and thus always were going to get the latest version. I should have had you check that directory!

                            Comment


                            • #44
                              Thanks to the help of zwolfpack I was able to fix the issue on the SEL master. I am working on a script version of the fix to issue to users experiencing this issue. Currently the script requires SSH, but I am working on getting it to work in Linux tools. I appreciate everyone's patience and thank you zwolfpack!
                              Jon Smith

                              website | products | support | youtube

                              Comment


                              • #45
                                Here is a script to update mono to 5.18 and install mono-devel

                                https://homeseer.com/linux/sel/selmonocomplete.sh

                                Note: This is scrictly for the SEL
                                Jon Smith

                                website | products | support | youtube

                                Comment

                                Working...
                                X