저는 오랫동안 Mono(버전: 6.12.0.122)와 관련된 종속성 문제로 어려움을 겪었습니다. 이로 인해 시스템 업그레이드(Ubuntu 기반 Pop!_OS) 및 패키지 설치/제거를 수행할 수 없었습니다. 문제는 Mono 패키지를 제거하거나 다시 설치할 수도 없다는 것입니다. 내가 무엇을 하든(그리고 많은 스레드와 "해결책"을 겪었습니다) 할 수 없습니다...
- Pop!_OS 21.10에서 22.04로 시스템 업그레이드 수행
- 업데이트 팝!_샵
- (제거) apt-get을 사용하여 모든 패키지(Mono 포함!)를 설치합니다.
Pop을 업데이트하는 중입니다! 마이너 시스템 업그레이드(업그레이드 패키지)를 구매하거나 수행하면 다음 내용을 보여주는 팝업이 표시됩니다(독일어로 번역됨).
Error while installing package: Attempt to overwrite »/usr/lib/mono/4.5/mscorlib.dll«, which is also included in package libmono-corlib4.5-cil 6.12.0.122-0xamarin1+ubuntu2004b1
sudo apt --fix-broken install
예를 들어 끝에 인쇄되었습니다(독일어에서 번역됨, 원래 오류 메시지:https://paste.myst.rs/joogjhfc):
Unpacking libmono-corlib4.5-dll (6.8.0.105+dfsg-3.2) ...
dpkg: Error processing archive /var/cache/apt/archives/libmono-corlib4
.5-dll_6.8.0.105+dfsg-3.2_all.deb (--unpack):
Attempt to overwrite »/usr/lib/mono/4.5/mscorlib.dll« , which is also included in package libmono-corlib4.5-cil 6.12.0.122-0xamarin1+ubuntu2004b1
dpkg-deb: Error: "insert" subprocess was killed by signal (broken pipe)
Errors occurred while editing:
/var/cache/apt/archives/libmono-corlib4.5-dll_6.8.0.105+dfsg-3.2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt remove mono-runtime
많은 하위 패키지가 이에 의존하고 작업이 실패하기 때문에 실패했습니다(독일어에서 번역됨, 원래 오류 메시지:https://paste.myst.rs/msqb6tm3):
Try "apt --fix-broken install" to fix this.
The following packages have unfulfilled dependencies:
ca-certificates-mono : Depends on: mono-runtime (>= 3.0~) but should not be installed.
libmono-corlib4.5-cil : depends on: mono-runtime (>= 6.12.0.122) but should not be installed
Depends on: mono-runtime (< 6.12.0.123) but should not be installed
Recommends: libmono-i18n-west4.0-cil but should not be installed
libmono-http4.0-cil : Depends on: libmono-system-web4.0-cil (>= 2.10.3) but should not be installed
libmono-i18n-mideast4.0-cil : Depends on: libmono-i18n4.0-cil (>= 4.0.0~alpha1) but should not be installed
libmono-i18n-other4.0-cil : Depends on: libmono-i18n4.0-cil (>= 4.0.0~alpha1) but should not be installed
libmono-microsoft-web-infrastructure1.0-cil : Depends on: libmono-system-web4.0-cil (>= 2.10.3) but should not be installed
libmono-posix4.0-cil : Depends on: mono-runtime (>= 2.10.1) but should not be installed
libmono-security4.0-cil : depends on: libmono-corlib4.5-dll (>= 5.18.0.240) but should not be installed
Recommends: ca-certificates-mono (= 6.8.0.105+dfsg-3.2) but 6.12.0.122-0xamarin1+ubuntu2004b1 should be installed
libmono-system-configuration4.0-cil : Depends on: libmono-corlib4.5-dll (>= 5.18.0.240) but should not be installed
libmono-system-core4.0-cil : Depends on: libmono-corlib4.5-dll (>= 5.18.0.240) but should not be installed
libmono-system-design4.0-cil : Depends on: libmono-system-web4.0-cil (>= 2.10.3), but should not be installed.
depends on: libmono-system-windows-forms4.0-cil (>= 1.0) but should not be installed
libmono-system-drawing-design4.0-cil : Depends on: libmono-system-windows-forms4.0-cil (>= 1.0) but should not be installed
libmono-system-messaging4.0-cil : Depends on: libmono-system-windows-forms4.0-cil (>= 1.0) but should not be installed
libmono-system-numerics4.0-cil : Depends on: libmono-corlib4.5-dll (>= 5.18.0.240) but should not be installed
libmono-system-reactive-windows-forms2.2-cil : Depends on: libmono-system-windows-forms4.0-cil (>= 1.0) but should not be installed
libmono-system-runtime4.0-cil : Depends on: libmono-system-web4.0-cil (>= 2.10.3) but should not be installed
libmono-system-security4.0-cil : Depends on: libmono-corlib4.5-dll (>= 5.18.0.240) but should not be installed
libmono-system-servicemodel4.0a-cil : Depends on: libmono-system-web4.0-cil (>= 2.10.3) but should not be installed
libmono-system-serviceprocess4.0-cil : Depends on: libmono-system-windows-forms4.0-cil (>= 1.0) but should not be installed
libmono-system-web-abstractions4.0-cil : Depends on: libmono-system-web4.0-cil (>= 2.10.3) but should not be installed
libmono-system-web-dynamicdata4.0-cil : Depends on: libmono-system-web4.0-cil (>= 2.10.3) but should not be installed
libmono-system-web-extensions4.0-cil : Depends on: libmono-system-web4.0-cil (>= 2.10.3) but should not be installed
libmono-system-web-http-webhost4.0-cil : Depends on: libmono-system-web4.0-cil (>= 2.10.3) but should not be installed
libmono-system-web-routing4.0-cil : Depends on: libmono-system-web4.0-cil (>= 2.10.3) but should not be installed
libmono-system-web-services4.0-cil : Depends on: libmono-system-web4.0-cil (>= 2.10.3) but should not be installed
libmono-system-xml4.0-cil : Depends on: libmono-corlib4.5-dll (>= 5.18.0.240) but should not be installed
libmono-system4.0-cil : Depends on: libmono-corlib4.5-dll (>= 5.18.0.240) but should not be installed.
Recommends: ca-certificates-mono (= 6.8.0.105+dfsg-3.2) but 6.12.0.122-0xamarin1+ubuntu2004b1 should be installed
libmono-windowsbase4.0-cil : depends on: mono-runtime (>= 2.10.1) but should not be installed
mono-csharp-shell : Depends on: mono-runtime (>= 3.0~) but should not be installed
mono-mcs : Depends on: mono-runtime (>= 3.0~) but should not be installed
mono-xbuild : depends on: mono-runtime (>= 3.0~) but should not be installed
E: Unfulfilled dependencies. Try "apt --fix-broken install" without specifying a package (or specify a solution).
실행 후에는 sudo dpkg --configure -a
긴 종속성 오류 메시지 목록이 표시되며 마지막으로 다음 패키지를 편집하는 동안 오류가 발생했다는 메시지가 표시됩니다.
libmono-security4.0-cil
libmono-system4.0-cil
libmono-system-numerics4.0-cil
libmono-system-core4.0-cil
libmono-system-security4.0-cil
libmono-system-xml4.0-cil
libmono-system-configuration4.0-cil
약간 다른 결과도 있었지만 본질적으로 모두 동일했으며 이 문제에 대한 다른 많은 절박한 시도, 명령 및 알려진 해결책도 모두 실패로 끝났습니다.
이 상황을 어떻게 처리해야 합니까? 내 목표는 시스템을 22.04로 업데이트하고 원하는 대로 패키지를 설치하고 제거하는 것입니다.
답변1
dpkg --list | grep mono | awk '{ print $2 }' | xargs sudo dpkg --force-all -P
apt --fix-broken install
이것은 나에게 효과적입니다