【问题标题】:How to properly install new version of MonoDevelop under Ubuntu 16.04 based system?如何在基于 Ubuntu 16.04 的系统下正确安装新版 MonoDevelop?
【发布时间】:2017-08-02 08:19:30
【问题描述】:

操作系统和 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)。我没用过,所以没有打扰我,但现在我想用。

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

flatpak,在 2016 年 5 月之前被命名为 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' ?

甚至是什么意思?为了让我决定是/否。

【问题讨论】:

    标签: installation monodevelop linux-mint


    【解决方案1】:

    我在新安装的 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
      

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-23
      相关资源
      最近更新 更多