Debian 9.8 では Mono をバージョン 5.18 にアップデートできません。

Debian 9.8 では Mono をバージョン 5.18 にアップデートできません。

更新できません。単核球症バージョン4.6.2から5.18.0へのDebian 9.8。私は指示に従った。ダウンロードページMonoのウェブサイトにありますが、これまで運はありません。

root@server ~ # mono --version
Mono JIT compiler version 4.6.2 (Debian 4.6.2.7+dfsg-1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen

root@server ~ # cat /etc/apt/sources.list.d/mono-official-stable.list
deb https://download.mono-project.com/repo/debian stable-stretch main

root@server ~ # apt update
Hit:1 http://security.debian.org stable/updates InRelease
Hit:2 http://security.debian.org testing/updates InRelease
Ign:3 http://deb.debian.org/debian stable InRelease
Hit:4 http://ftp.debian.org/debian stretch-backports InRelease
Hit:5 http://deb.debian.org/debian stable-updates InRelease
Ign:6 http://ftp.de.debian.org/debian stable InRelease
Hit:7 http://deb.debian.org/debian-security stable/updates InRelease
Hit:8 http://deb.debian.org/debian stable Release
Hit:9 http://ftp.de.debian.org/debian testing InRelease
Hit:10 http://ftp.de.debian.org/debian stable Release
Hit:11 https://download.mono-project.com/repo/debian stable-stretch InRelease
Hit:12 https://packages.sury.org/php stretch InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.

root@server ~ # apt list --upgradable
Listing... Done
libgd3/testing 2.2.5-5.1 amd64 [upgradable from: 2.2.5-5+0~20190119054529.2+stretch~1.gbp911a4a]
libsodium23/testing 1.0.17-1 amd64 [upgradable from: 1.0.17-0.1+0~20190131101845.5+stretch~1.gbp8cf594]

アップデート1

出力が追加されましたsudo apt install mono-devel mono-complete

root@server ~ # sudo apt install mono-devel mono-complete
Reading package lists... Done
Building dependency tree
Reading state information... Done
mono-complete is already the newest version (4.6.2.7+dfsg-1).
mono-devel is already the newest version (4.6.2.7+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

アップデート2

/var/lib/apt/lists/partial空のディレクトリしかありません。

root@server /var/lib/apt/lists # ls -al
total 28
drwxr-xr-x 3 root root 12288 Feb 23 07:53 .
drwxr-xr-x 5 root root  4096 Feb 22 20:38 ..
drwx------ 2 _apt root 12288 Feb 22 20:38 partial

root@server /var/lib/apt/lists # cd partial/

root@server /var/lib/apt/lists/partial # ls -al
total 24
drwx------ 2 _apt root 12288 Feb 22 20:38 .
drwxr-xr-x 3 root root 12288 Feb 23 07:53 ..

ランタイム中にエラーが発生しましたapt full-upgrade

root@server ~ # apt full-upgrade
Reading package lists... Done
E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources

aptitude実行後、スクリーンショットなどのエラーが発生します。

資格


アップデート3

出力が追加されました/etc/apt/apt.conf.d/99server

root@server /etc/apt/apt.conf.d # cat 99server
Acquire::PDiffs "false";
Acquire::Languages "en";
APT::Default-Release "stable";

アップデート4

Mono 5.18.0を強制インストールしようとすると、sudo apt-get install mono-devel/stable-stretch次のエラーが発生します。

root@server ~ # sudo apt-get install mono-devel/stable-stretch
Reading package lists... Done
Building dependency tree
Reading state information... Done
Selected version '5.18.0.240-0xamarin1+debian9b1' (Xamarin-Stable-Stretch:9.0/stable-stretch [all]) for 'mono-devel'
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:
 libmono-system-web-services4.0-cil : Depends: libmono-system-design4.0-cil (>= 1.0) but it is not going to be installed
 mono-devel : Depends: libmono-i18n4.0-cil (>= 4.0.0~alpha1) but it is not going to be installed
              Depends: libmono-system-design4.0-cil (>= 1.0) but it is not going to be installed
              Depends: libmono-system-drawing-design4.0-cil (>= 1.0) but it is not going to be installed
              Depends: libmono-system-messaging4.0-cil (>= 2.10.1) but it is not going to be installed
              Depends: libmono-system-runtime4.0-cil (>= 2.10.1) but it is not going to be installed
              Depends: libmono-system-servicemodel-activation4.0-cil (>= 1.0) but it is not going to be installed
              Depends: libmono-system-servicemodel-web4.0-cil (>= 3.2.1) but it is not going to be installed
              Depends: libmono-system-servicemodel4.0a-cil (>= 3.2.3) but it is not going to be installed
              Depends: libmono-system-web-extensions4.0-cil (>= 2.10.3) but it is not going to be installed
              Depends: libmono-system-web-webpages-razor2.0-cil (>= 1.0) but it is not going to be installed
              Depends: libmono-system-web-webpages2.0-cil (>= 1.0) but it is not going to be installed
              Depends: libmono-system-windows-forms4.0-cil (>= 1.0) but it is not going to be installed
              Depends: libmono-cil-dev (= 5.18.0.240-0xamarin1+debian9b1) but it is not going to be installed
              Recommends: msbuild but it is not going to be installed
 monodoc-manual : Depends: monodoc-browser but it is not going to be installed or
                           monodoc-http but it is not going to be installed or
                           monodoc-viewer
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

答え1

適切な構成を再確認しないと、この問題を解決するための簡単なコマンドセットを考えることは困難です。しかし、Debian リファレンスカードソリューションのいくつかの論理的な次のステップが言及されています。

  1. rm /var/lib/apt/lists/*構成されたソースからキャッシュされたパッケージのリストをすべて削除し、次の呼び出しがapt update各リモートサーバーから最新のマニフェストを取得するように強制します。
  2. apt full-upgrade利用可能なパッケージバージョンの評価に高度な競合解決を適用し、アップグレードのためのより積極的なパッケージの組み合わせを作成できます。
  3. aptitude知りたいパッケージのすべてのバージョンと、パッケージをアップグレードまたは維持することに決めたときに使用するロジックを詳細に調べることができます。

関連情報