업데이트할 수 없습니다.단핵구증버전 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
적절한 구성을 다시 확인하지 않으면 이 문제를 해결하기 위한 간단한 명령 세트를 생각해 내기가 어렵습니다. 하지만, 그데비안 참조 카드솔루션에 대한 몇 가지 논리적 다음 단계가 언급되어 있습니다.
rm /var/lib/apt/lists/*
구성된 소스에서 캐시된 패키지 목록을 모두 제거하고 다음 호출이apt update
각 원격 서버에서 최신 매니페스트를 검색하도록 강제합니다.apt full-upgrade
사용 가능한 패키지 버전 평가에 고급 충돌 해결을 적용하고 업그레이드를 위해 보다 공격적인 패키지 조합을 생성할 수 있습니다.aptitude
알고 싶은 패키지의 모든 버전과 패키지를 업그레이드하거나 유지하기로 결정할 때 사용하는 논리를 자세히 검사할 수 있을 뿐만 아니라 판단을 무시하고 적절하다고 판단되는 충돌을 해결할 수 있습니다.