Announcement

Collapse
No announcement yet.

Need help updating Mono

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

    Need help updating Mono

    Following the sticky instructions. After adding the new repositories, I get this error:

    apt update
    Ign:1 cdrom://[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 xfce-CD Binary-1 20180714-10:25] stretch InRelease
    Err:2 cdrom://[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 xfce-CD Binary-1 20180714-10:25] stretch Release
    Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
    Hit:3 http://security.debian.org/debian-security stretch/updates InRelease
    Ign:4 http://ftp.us.debian.org/debian stretch InRelease
    Hit:5 http://ftp.us.debian.org/debian stretch-updates InRelease
    Hit:7 http://ftp.us.debian.org/debian stretch Release
    Ign:6 http://cdn-fastly.deb.debian.org/debian jessie InRelease
    Hit:8 http://linux.teamviewer.com/deb stable InRelease
    Hit:9 http://linux.teamviewer.com/deb preview InRelease
    Hit:10 http://cdn-fastly.deb.debian.org/debian jessie Release
    Hit:11 https://download.mono-project.com/repo/debian stable-raspbianjessie InRelease
    Reading package lists... Done
    E: The repository 'cdrom://[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 xfce-CD Binary-1 20180714-10:25] stretch Release' does not have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    N: Skipping acquire of configured file 'main/binary-amd64/Packages' as repository 'https://download.mono-project.com/repo/debian stable-raspbianjessie InRelease' doesn't support architecture 'amd64'


    Help please!

    Thanks,

    #2
    Not sure I know what to tell you. Nothing in those instructions said anything about configuring a package source to be from a CD-ROM. Before trying to upgrade Mono, have you done any previous updating of packages or sources? In other words, did this work before?

    Comment


      #3
      Also it looks like you still have the old raspbian repository in your list:

      "N: Skipping acquire of configured file 'main/binary-amd64/Packages' as repository 'https://download.mono-project.com/repo/debian stable-raspbianjessie InRelease' doesn't support architecture 'amd64'"

      Check your /etc/apt/sources.list.d/mono-official-stable.list file and see if it has two entries in it (the old raspbian one and the new debian one). If it does (or if it just has the raspbian one in it), delete that file then try going through those instructions again. (All you're really doing with those is adding an entry to that file so that when you do get "apt update" to work, it will add the packages from that location into your catalog instead of the old ones.)

      Comment


        #4
        Originally posted by shill View Post
        Also it looks like you still have the old raspbian repository in your list:

        "N: Skipping acquire of configured file 'main/binary-amd64/Packages' as repository 'https://download.mono-project.com/repo/debian stable-raspbianjessie InRelease' doesn't support architecture 'amd64'"

        Check your /etc/apt/sources.list.d/mono-official-stable.list file and see if it has two entries in it (the old raspbian one and the new debian one). If it does (or if it just has the raspbian one in it), delete that file then try going through those instructions again. (All you're really doing with those is adding an entry to that file so that when you do get "apt update" to work, it will add the packages from that location into your catalog instead of the old ones.)
        Hang on.... The Mono update instruction information has changed <recently?> ...

        So trying to refer back to what I did is impossible now (except for the line I posted above that missed the dirmngr package!).

        So now, should I undo the steps I did to add the <bad> repository packages first?

        and then which Unbuntu version 14.04, 16.04 or 18.04 instructions should I use for Debian v9.5 ???

        [Edit]

        Duh! I now see the 'Debian' tab on that page! What a numpty!

        [Edit]

        Thanks for help,

        A

        Comment


          #5
          Whew! Glad to see you got past that part - hope turning on the plugin works smoothly from the start.

          Comment


            #6
            If going to the 5.x branch, be sure to pin yourself to 5.0.1 as later releases break VB/ASP and you won't be able to use plugins or extensions that are aspx based.

            Bug currently open with Mono about this: https://github.com/mono/mono/issues/9883

            Comment


              #7
              Originally posted by bsobel View Post
              If going to the 5.x branch, be sure to pin yourself to 5.0.1 as later releases break VB/ASP and you won't be able to use plugins or extensions that are aspx based.

              Bug currently open with Mono about this: https://github.com/mono/mono/issues/9883
              OK, still got the issue with the mono package update, so posted a question on Stack Overflow for help...

              In the meantime, before I try the update again, I should change my repository 'add to the list of packages' command to be this (when logged in as root):
              echo "deb https://download.mono-project.com/repo/debian stable-stretch/snapshots/5.0.1 main" | tee /etc/apt/sources.list.d/mono-official-stable.list
              Is that correct? Just checking, before I get myself into EVEN more trouble...

              Thanks,

              Comment


                #8
                Originally posted by bsobel View Post
                If going to the 5.x branch, be sure to pin yourself to 5.0.1 as later releases break VB/ASP and you won't be able to use plugins or extensions that are aspx based.

                Bug currently open with Mono about this: https://github.com/mono/mono/issues/9883
                OK, still no useful advice from Stack Overflow.... https://stackoverflow.com/questions/...ase-file-on-cd

                Any ideas?

                Comment


                  #9
                  I would edit that mono source list file in your etc apt directory (as root) and make sure the only thing in there is the one you want (5.0.1, per the above above). Remove any other lines referencing raspbian or CD-ROM, etc.

                  Comment


                    #10
                    Originally posted by shill View Post
                    I would edit that mono source list file in your etc apt directory (as root) and make sure the only thing in there is the one you want (5.0.1, per the above above). Remove any other lines referencing raspbian or CD-ROM, etc.
                    This is the ONLY line in /etc/apt/sources.list.d/mono-official-stable.list

                    deb https://download.mono-project.com/repo/debian stable-stretch/snapshots/5.0.1/ main

                    What now?

                    Comment


                      #11
                      Post output of these commands

                      Code:
                      apt-cache policy
                      ls -l /etc/apt /etc/apt/sources.list.d
                      more /etc/apt/sources.list
                      Last edited by zwolfpack; November 7, 2018, 11:30 PM.

                      Comment


                        #12
                        Originally posted by zwolfpack View Post
                        Post output of these commands

                        Code:
                        apt-cache policy
                        E: Malformed entry 1 in list file /etc/apt/sources.list.d/mono-official-stable.list (absolute Suite Component)
                        E: The list of sources could not be read.
                        OK, first command showed up something !

                        So I deleted the mono file and re-ran
                        Code:
                        apt-cache policy
                        Package files:
                        100 /var/lib/dpkg/status
                        release a=now
                        500 http://linux.teamviewer.com/deb preview/main amd64 Packages
                        release o=TeamViewer GmbH,a=preview,l=TeamViewer,c=main,b=amd64
                        origin linux.teamviewer.com
                        500 http://linux.teamviewer.com/deb stable/main amd64 Packages
                        release o=TeamViewer GmbH,a=stable,l=TeamViewer,c=main,b=amd64
                        origin linux.teamviewer.com
                        500 http://httpredir.debian.org/debian jessie/non-free amd64 Packages
                        release v=8.11,o=Debian,a=oldstable,n=jessie,l=Debian,c=non-free,b=amd64
                        origin httpredir.debian.org
                        500 http://httpredir.debian.org/debian jessie/contrib amd64 Packages
                        release v=8.11,o=Debian,a=oldstable,n=jessie,l=Debian,c=contrib,b=am d64
                        origin httpredir.debian.org
                        500 http://httpredir.debian.org/debian jessie/main amd64 Packages
                        release v=8.11,o=Debian,a=oldstable,n=jessie,l=Debian,c=main,b=amd64
                        origin httpredir.debian.org
                        500 http://ftp.us.debian.org/debian stretch-updates/main amd64 Packages
                        release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
                        origin ftp.us.debian.org
                        500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
                        release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=amd64
                        origin security.debian.org
                        500 http://ftp.us.debian.org/debian stretch/main amd64 Packages
                        release v=9.5,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
                        origin ftp.us.debian.org
                        500 cdrom://[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 xfce-CD Binary-1 20180714-10:25] stretch/main amd64 Packages
                        release c=main,b=amd64
                        origin Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 xfce-CD Binary-1 20180714-10:25
                        Pinned packages:


                        Re-created the mono deb package, and now apt-cache policy reports identical to above (no errors now)

                        Code:
                        ls -l /etc/apt
                        total 36
                        drwxr-xr-x 2 root root 4096 Aug 14 16:15 apt.conf.d
                        -rw-r--r-- 1 root root 104 Aug 14 16:11 listchanges.conf
                        drwxr-xr-x 2 root root 4096 Sep 13 2017 preferences.d
                        -rw-r--r-- 1 root root 711 Nov 3 12:47 sources.list
                        -rw-r--r-- 1 root root 710 Nov 1 14:25 sources.list~
                        drwxr-xr-x 2 root root 4096 Nov 8 14:17 sources.list.d
                        -rw-r--r-- 1 root root 4038 Nov 1 14:14 trusted.gpg
                        -rw-r--r-- 1 root root 2239 Aug 15 12:05 trusted.gpg~
                        drwxr-xr-x 2 root root 4096 Aug 14 15:16 trusted.gpg.d


                        Code:
                        ls -l /etc/apt/sources.list.d
                        total 8
                        -rw-r--r-- 1 root root 86 Nov 8 14:17 mono-official-stable.list
                        -rw-r--r-- 1 root root 1552 Nov 3 13:50 teamviewer.list



                        Code:
                        more /etc/apt/sources.list
                        #

                        # deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 xfce-CD Binary-1 20180714-10:25]
                        / stretch main

                        deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 xfce-CD Binary-1 20180714-10:25]/
                        stretch main

                        deb http://ftp.us.debian.org/debian/ stretch main
                        deb-src http://ftp.us.debian.org/debian/ stretch main

                        deb http://security.debian.org/debian-security stretch/updates main
                        deb-src http://security.debian.org/debian-security stretch/updates main

                        # stretch-updates, previously known as 'volatile'
                        deb http://ftp.us.debian.org/debian/ stretch-updates main
                        deb-src http://ftp.us.debian.org/debian/ stretch-updates main

                        deb http://httpredir.debian.org/debian/ jessie main contrib non-free



                        In the above I spotted a reference to 'jessie' instead of stretch, so changed it to 'stretch'. That OK?

                        Still getting error with
                        Code:
                        apt update
                        Err:12 https://download.mono-project.com/repo/debian stable-stretch/snapshots/5.0.1 Release
                        404 Not Found







                        Last edited by amr42; November 8, 2018, 02:29 PM. Reason: Added output from commands requested

                        Comment


                          #13
                          Couple things

                          1) If you are still getting errors referring to "cdrom", comment out that 2nd entry in /etc/apt/sources.list (deb cdrom: ....)

                          2) What is in the file /etc/apt/sources.list.d/teamviewer.list ? If you aren't sure about any of the entries or are getting errors that might be from these entries, try commenting them out.

                          3) Locking the update to mono 5.0.1 is only necessary if you need ASPX functionality. The problem you are having with that is that the snapshots in that particular repository don't go back that far. See https://download.mono-project.com/re...tch/snapshots/. Earliest available is 5.2.0.

                          Try changing the entry in /etc/apt/sources.list.d/mono-official-stable.list to "stable/snapshots/5.0.1". That'll get you here: https://download.mono-project.com/re...ble/snapshots/ which go back much further.

                          4) That change from jessie to stretch is probably a don't care as is appears it may be redundant. If it give you issues, try commenting it out.

                          Comment


                            #14
                            Originally posted by zwolfpack View Post
                            Couple things

                            1) If you are still getting errors referring to "cdrom", comment out that 2nd entry in /etc/apt/sources.list (deb cdrom: ....)
                            DONE - A zillion packages to update. Used apt upgrade (twice). All good.

                            2) What is in the file /etc/apt/sources.list.d/teamviewer.list ? If you aren't sure about any of the entries or are getting errors that might be from these entries, try commenting them out.
                            This is my 'get out of jail' remote viewer/share app.

                            3) Locking the update to mono 5.0.1 is only necessary if you need ASPX functionality. The problem you are having with that is that the snapshots in that particular repository don't go back that far. See https://download.mono-project.com/re...tch/snapshots/. Earliest available is 5.2.0.

                            Try changing the entry in /etc/apt/sources.list.d/mono-official-stable.list to "stable/snapshots/5.0.1". That'll get you here: https://download.mono-project.com/re...ble/snapshots/ which go back much further.
                            Thank you - I was too numpty to realize this! DONE!

                            4) That change from jessie to stretch is probably a don't care as is appears it may be redundant. If it give you issues, try commenting it out.
                            I changed it to stretch just in case...

                            So all is good. Mono 5.0.1.1 is now running, and more importantly I have my Honeywell WiFi thermostat plugin working great!

                            Many thanks,

                            Comment


                              #15
                              Happy to hear that, and thanks to zwolfpack for the assist!

                              Comment

                              Working...
                              X