如何在基于Ubuntu 16.04的系统下正确安装新版MonoDevelop?

时间:2017-03-12 06:49:01

标签: installation monodevelop linuxmint

OS和DE:Linux Mint 18.1 Cinnamon 64-bit;基于Ubuntu 16.04的

我想升级的软件:MonoDevelop

目前安装的版本:

apt-cache policy monodevelop

是:

monodevelop:
  Installed: 5.10.0.871-2
  Candidate: 5.10.0.871-2
  Version table:
 *** 5.10.0.871-2 500
        500 http://de.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
        100 /var/lib/dpkg/status

正如你所看到的,我甚至没有打扰adding the repository,而是刚刚从Ubuntu Universe安装它。所以,在更长的时间内,我安装了no longer maintained version (deprecated)。我没有用它,所以它没有打扰我,但现在我想。

首先,我已被指示使用flatpak底部的PPA安装on the official page - this page,这对我来说是新的。这里我只提一个维基百科摘录:

  直到2016年5月,名为flatpak

xdg-app是用于Linux桌面计算机环境的软件部署,程序包管理和应用程序虚拟化的软件实用程序。该实用程序提供了一个名为Bubblewrap的沙箱环境,用户可以在其中独立于系统的其他部分运行应用程序。

我认为它是安全的,所以我添加了PPA并安装了它:

sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt-get update
sudo apt-get install flatpak

这里没问题。

问题#1:

我原本想用结果删除旧的MonoDevelop:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libart2.0-cil libgconf2.0-cil libgnome-vfs2.0-cil libgnome2.24-cil libmono-csharp4.0c-cil libmono-messaging4.0-cil
  libmono-microsoft-build-engine4.0-cil libmono-microsoft-build-framework4.0-cil libmono-microsoft-build-tasks-v4.0-4.0-cil
  libmono-microsoft-build-utilities-v4.0-4.0-cil libmono-microsoft-csharp4.0-cil libmono-microsoft-web-infrastructure1.0-cil
  libmono-system-configuration-install4.0-cil libmono-system-data-linq4.0-cil libmono-system-data-services-client4.0-cil
  libmono-system-identitymodel-selectors4.0-cil libmono-system-identitymodel4.0-cil libmono-system-messaging4.0-cil
  libmono-system-runtime-caching4.0-cil libmono-system-runtime4.0-cil libmono-system-servicemodel-activation4.0-cil
  libmono-system-servicemodel4.0a-cil libmono-system-web-extensions4.0-cil libmono-system-web-mvc3.0-cil libmono-system-web-razor2.0-cil
  libmono-system-web-webpages-deployment2.0-cil libmono-system-web-webpages-razor2.0-cil libmono-system-web-webpages2.0-cil
  libmono-system-xaml4.0-cil libmono-windowsbase4.0-cil libmono-xbuild-tasks4.0-cil mono-xbuild
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libwebkit1.1-cil monodoc-browser
Suggested packages:
  monodoc-webkit-manual
The following packages will be REMOVED:
  monodevelop*
The following NEW packages will be installed:
  libwebkit1.1-cil monodoc-browser
0 upgraded, 2 newly installed, 1 to remove and 4 not upgraded.
Need to get 83.2 kB of archives.
After this operation, 32.8 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

问题#1:

我应该继续删除吗?

问题#2:

尝试安装时as instructed

flatpak install --user --from https://mono-project.azureedge.net/repo/monodevelop.flatpakref

我被问到一个可能很重要的问题:

This application depends on runtimes from:
  http://sdk.gnome.org/repo/
Configure this as new remote 'gnome' [y/n]: ^C

问题#2:

问题是什么:

Configure this as new remote 'gnome' ?
甚至意味着什么?为了让我决定是/否。

1 个答案:

答案 0 :(得分:0)

我在新安装的VM中测试了该解决方案:

  1.   

    我应该继续删除吗?:

    是的,继续删除旧版本。

    sudo apt-get purge monodevelop
    sudo apt-get --purge autoremove
    

    会做得很好。

    1.   

      这个问题甚至意味着什么?为了让我决定是/否。

      首先,我回答否。导致错误:

      error: The Application com.xamarin.MonoDevelop/x86_64/stable requires the runtime org.freedesktop.Platform/x86_64/1.4 which is not installed
      

      显然需要它,所以回答是,两次:

      This application depends on runtimes from:
        http://sdk.gnome.org/repo/
      Configure this as new remote 'gnome' [y/n]: y
      
      Installing: com.xamarin.MonoDevelop/x86_64/stable
      Required runtime for com.xamarin.MonoDevelop/x86_64/stable (org.freedesktop.Platform/x86_64/1.4) is not installed, searching...
      Found in remote gnome, do you want to install it? [y/n]: y
      
      Installing: org.freedesktop.Platform/x86_64/1.4 from gnome
      
      8 delta parts, 59 loose fetched; 114542 KiB transferred in 54 seconds                                                
      Installing: org.freedesktop.Platform.Locale/x86_64/1.4 from gnome
      
      5 metadata, 1 content objects fetched; 13 KiB transferred in 4 seconds                                               
      Installing: com.xamarin.MonoDevelop/x86_64/stable from com.xamarin.MonoDevelop-1-origin
      
      898 metadata, 3279 content objects fetched; 152977 KiB transferred in 39 seconds                                     
      
      1. 您现在可以使用以下方式从终端运行它:

        flatpak run com.xamarin.MonoDevelop