내 debian/stretch 머신에 qemu를 설치하려고 하는데, 실행하면 sudo apt install qemu
다음 메시지가 나타납니다:
The following packages have unmet dependencies:
qemu : Depends: qemu-system (>= 1:2.8+dfsg-6+deb9u4)
E: Unable to correct problems, you have held broken packages.
qemu-system을 설치하려고 시도했지만 비슷한 메시지가 나타납니다. qemu-system은 qemu-system-* 형식의 더 많은 패키지에 의존하며, 이는 모두 궁극적으로 libslang2
. 나에게 다음을 알려줍니다 :
The following packages will be REMOVED:
ncurses-base ncurses-term rxvt-unicode
The following NEW packages will be installed:
libslang2
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
ncurses-base
0 upgraded, 1 newly installed, 3 to remove and 0 not upgraded.
Need to get 503 kB of archives.
After this operation, 6,458 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?]
물론 나는 그렇게 하지 않을 것이다. 지난 며칠 동안 비슷한 일이 일어났기 때문에 어떻게 해서든 내 apt-get을 엉망으로 만든 것 같지만 항상 고칠 수 있었습니다.
편집: 댓글에 대한 답변으로 여러분은 다음과 같이 게시했습니다.
두 번째 출력을 얻으려면 간단히 입력하면 됩니다.sudo apt install libslang2
몇 번 업데이트/업그레이드를 시도했고, 오류가 있는지 확인 /etc/apt/sources.list
하고 또한 apt --fix-broken install
시도했습니다 .apt install -f
apt -o
마지막으로 명령을 입력하면 다음과 같은 결과가 나타납니다.
Starting pkgProblemResolver with broken count: 2
Starting 2 pkgProblemResolver with broken count: 2
Investigating (0) ncurses-base:amd64 < 6.1+20181013-1 @ii mK Ib >
Broken ncurses-base:amd64 Breaks on libslang2:amd64 < none -> 2.3.1-5 @un uN > (< 2.3.1a-3)
Considering libslang2:amd64 1 as a solution to ncurses-base:amd64 5100
Added libslang2:amd64 to the remove list
Fixing ncurses-base:amd64 via keep of libslang2:amd64
Investigating (0) libcaca0:amd64 < none -> 0.99.beta19-2+b2 @un uN Ib >
Broken libcaca0:amd64 Depends on libslang2:amd64 < none | 2.3.1-5 @un uH > (>= 2.2.4)
Considering libslang2:amd64 1 as a solution to libcaca0:amd64 5
Holding Back libcaca0:amd64 rather than change libslang2:amd64
Investigating (0) libsdl1.2debian:amd64 < none -> 1.2.15+dfsg1-4 @un uN Ib >
Broken libsdl1.2debian:amd64 Depends on libcaca0:amd64 < none | 0.99.beta19-2+b2 @un
uH > (>= 0.99.beta17-1)
Considering libcaca0:amd64 5 as a solution to libsdl1.2debian:amd64 5
Holding Back libsdl1.2debian:amd64 rather than change libcaca0:amd64
Investigating (0) qemu-system-sparc:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system-sparc:amd64 Depends on libsdl1.2debian:amd64 < none | 1.2.15+dfsg1-4 @un uH > (>= 1.2.11)
Considering libsdl1.2debian:amd64 5 as a solution to qemu-system-sparc:amd64 0
Holding Back qemu-system-sparc:amd64 rather than change libsdl1.2debian:amd64
Investigating (0) qemu-system:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system:amd64 Depends on qemu-system-sparc:amd64 < none | 1:2.8+dfsg-6+deb9u4 @un uH >
Considering qemu-system-sparc:amd64 0 as a solution to qemu-system:amd64 0
Holding Back qemu-system:amd64 rather than change qemu-system-sparc:amd64
Investigating (0) qemu-system-arm:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system-arm:amd64 Depends on libsdl1.2debian:amd64 < none | 1.2.15+dfsg1-4 @un uH > (>= 1.2.11)
Considering libsdl1.2debian:amd64 5 as a solution to qemu-system-arm:amd64 0
Holding Back qemu-system-arm:amd64 rather than change libsdl1.2debian:amd64
Investigating (0) qemu-system-ppc:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system-ppc:amd64 Depends on libsdl1.2debian:amd64 < none | 1.2.15+dfsg1-4 @un uH > (>= 1.2.11)
Considering libsdl1.2debian:amd64 5 as a solution to qemu-system-ppc:amd64 0
Holding Back qemu-system-ppc:amd64 rather than change libsdl1.2debian:amd64
Investigating (0) qemu-system-misc:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system-misc:amd64 Depends on libsdl1.2debian:amd64 < none | 1.2.15+dfsg1-4 @un uH > (>= 1.2.11)
Considering libsdl1.2debian:amd64 5 as a solution to qemu-system-misc:amd64 0
Holding Back qemu-system-misc:amd64 rather than change libsdl1.2debian:amd64
Investigating (0) qemu-system-mips:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system-mips:amd64 Depends on libsdl1.2debian:amd64 < none | 1.2.15+dfsg1-4 @un uH > (>= 1.2.11)
Considering libsdl1.2debian:amd64 5 as a solution to qemu-system-mips:amd64 0
Holding Back qemu-system-mips:amd64 rather than change libsdl1.2debian:amd64
Investigating (0) qemu-system-x86:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system-x86:amd64 Depends on libsdl1.2debian:amd64 < none | 1.2.15+dfsg1-4 @un uH > (>= 1.2.11)
Considering libsdl1.2debian:amd64 5 as a solution to qemu-system-x86:amd64 0
Holding Back qemu-system-x86:amd64 rather than change libsdl1.2debian:amd64
Investigating (1) qemu:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un puN Ib >
Broken qemu:amd64 Depends on qemu-system:amd64 < none | 1:2.8+dfsg-6+deb9u4 @un uH >
(>= 1:2.8+dfsg-6+deb9u4)
Considering qemu-system:amd64 0 as a solution to qemu:amd64 9999
Re-Instated libslang2:amd64
Re-Instated libcaca0:amd64
Re-Instated libsdl1.2debian:amd64
Re-Instated qemu-system-arm:amd64
Re-Instated qemu-system-mips:amd64
Re-Instated qemu-system-ppc:amd64
Re-Instated qemu-system-sparc:amd64
Re-Instated qemu-system-x86:amd64
Re-Instated qemu-system-misc:amd64
Re-Instated qemu-system:amd64
Investigating (1) ncurses-base:amd64 < 6.1+20181013-1 @ii mK Ib >
Broken ncurses-base:amd64 Breaks on libslang2:amd64 < none -> 2.3.1-5 @un uN > (< 2.3.1a-3)
Considering libslang2:amd64 1 as a solution to ncurses-base:amd64 5100
Added libslang2:amd64 to the remove list
Fixing ncurses-base:amd64 via keep of libslang2:amd64
Investigating (1) libcaca0:amd64 < none -> 0.99.beta19-2+b2 @un uN Ib >
Broken libcaca0:amd64 Depends on libslang2:amd64 < none | 2.3.1-5 @un uH > (>= 2.2.4)
Considering libslang2:amd64 1 as a solution to libcaca0:amd64 5
Holding Back libcaca0:amd64 rather than change libslang2:amd64
Investigating (1) libsdl1.2debian:amd64 < none -> 1.2.15+dfsg1-4 @un uN Ib >
Broken libsdl1.2debian:amd64 Depends on libcaca0:amd64 < none | 0.99.beta19-2+b2 @un
uH > (>= 0.99.beta17-1)
Considering libcaca0:amd64 5 as a solution to libsdl1.2debian:amd64 5
Holding Back libsdl1.2debian:amd64 rather than change libcaca0:amd64
Investigating (1) qemu-system-sparc:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system-sparc:amd64 Depends on libsdl1.2debian:amd64 < none | 1.2.15+dfsg1-4 @un uH > (>= 1.2.11)
Considering libsdl1.2debian:amd64 5 as a solution to qemu-system-sparc:amd64 0
Holding Back qemu-system-sparc:amd64 rather than change libsdl1.2debian:amd64
Investigating (1) qemu-system:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system:amd64 Depends on qemu-system-sparc:amd64 < none | 1:2.8+dfsg-6+deb9u4 @un uH >
Considering qemu-system-sparc:amd64 0 as a solution to qemu-system:amd64 0
Holding Back qemu-system:amd64 rather than change qemu-system-sparc:amd64
Investigating (1) qemu-system-arm:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system-arm:amd64 Depends on libsdl1.2debian:amd64 < none | 1.2.15+dfsg1-4 @un uH > (>= 1.2.11)
Considering libsdl1.2debian:amd64 5 as a solution to qemu-system-arm:amd64 0
Holding Back qemu-system-arm:amd64 rather than change libsdl1.2debian:amd64
Investigating (1) qemu-system-ppc:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system-ppc:amd64 Depends on libsdl1.2debian:amd64 < none | 1.2.15+dfsg1-4 @un uH > (>= 1.2.11)
Considering libsdl1.2debian:amd64 5 as a solution to qemu-system-ppc:amd64 0
Holding Back qemu-system-ppc:amd64 rather than change libsdl1.2debian:amd64
Investigating (1) qemu-system-misc:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system-misc:amd64 Depends on libsdl1.2debian:amd64 < none | 1.2.15+dfsg1-4 @un uH > (>= 1.2.11)
Considering libsdl1.2debian:amd64 5 as a solution to qemu-system-misc:amd64 0
Holding Back qemu-system-misc:amd64 rather than change libsdl1.2debian:amd64
Investigating (1) qemu-system-mips:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system-mips:amd64 Depends on libsdl1.2debian:amd64 < none | 1.2.15+dfsg1-4 @un uH > (>= 1.2.11)
Considering libsdl1.2debian:amd64 5 as a solution to qemu-system-mips:amd64 0
Holding Back qemu-system-mips:amd64 rather than change libsdl1.2debian:amd64
Investigating (1) qemu-system-x86:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un uN Ib >
Broken qemu-system-x86:amd64 Depends on libsdl1.2debian:amd64 < none | 1.2.15+dfsg1-4 @un uH > (>= 1.2.11)
Considering libsdl1.2debian:amd64 5 as a solution to qemu-system-x86:amd64 0
Holding Back qemu-system-x86:amd64 rather than change libsdl1.2debian:amd64
Investigating (2) qemu:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un puN Ib >
Broken qemu:amd64 Depends on qemu-system:amd64 < none | 1:2.8+dfsg-6+deb9u4 @un uH >
(>= 1:2.8+dfsg-6+deb9u4)
Considering qemu-system:amd64 0 as a solution to qemu:amd64 9999
Considering qemu-system:i386 -1 as a solution to qemu:amd64 9999
Re-Instated libaio1:i386
Re-Instated libbluetooth3:i386
Re-Instated libbrlapi0.6:i386
Re-Instated libnspr4:i386
Re-Instated libnss3:i386
Re-Instated libcacard0:i386
Re-Instated libfdt1:i386
Reinst Failed early because of libtinfo5:i386
Reinst Failed because of libncursesw5:i386
Reinst Failed because of qemu-system-arm:i386
Investigating (2) libnspr4:amd64 < 2:4.20-1 @ii mK Ib >
Broken libnspr4:amd64 Breaks on libnspr4:i386 < none -> 2:4.12-6 @un uN Ib > (!= 2:4.20-1)
Considering libnspr4:i386 0 as a solution to libnspr4:amd64 16
Added libnspr4:i386 to the remove list
Fixing libnspr4:amd64 via keep of libnspr4:i386
Investigating (2) libnss3:amd64 < 2:3.39-1 @ii mK Ib >
Broken libnss3:amd64 Breaks on libnss3:i386 < none -> 2:3.26.2-1.1+deb9u1 @un uN Ib > (!= 2:3.39-1)
Considering libnss3:i386 0 as a solution to libnss3:amd64 11
Added libnss3:i386 to the remove list
Fixing libnss3:amd64 via keep of libnss3:i386
Investigating (2) libcacard0:i386 < none -> 1:2.5.0-3 @un uN Ib >
Broken libcacard0:i386 Depends on libnspr4:i386 < none | 2:4.12-6 @un uH > (>= 2:4.9-2~)
Considering libnspr4:i386 16 as a solution to libcacard0:i386 0
Holding Back libcacard0:i386 rather than change libnspr4:i386
Investigating (3) qemu:amd64 < none -> 1:2.8+dfsg-6+deb9u4 @un puN Ib >
Broken qemu:amd64 Depends on qemu-system:amd64 < none | 1:2.8+dfsg-6+deb9u4 @un uH >
(>= 1:2.8+dfsg-6+deb9u4)
Considering qemu-system:amd64 0 as a solution to qemu:amd64 9999
Considering qemu-system:i386 -1 as a solution to qemu:amd64 9999
Done
E: Unable to correct problems, you have held broken packages.
나는 그것에서 해결책을 읽을 수 없습니다. 단지 그것이 다른 패키지를 시도했지만 그들 모두가 결국 뭔가를 망가뜨렸다는 것입니다. 그런데 이런 순서는 처음 봤습니다.
답변1
저 할 수 있어요:
apt-get install synaptic "if not installed already"
- 그런 다음 실행
- qemu 찾기
- 설치된 경우 완전 제거 표시
- 그런 다음 신청하세요
- 재시작
- 시냅스를 실행하다
- qemu 재설치
- 시냅스가 오류나 손상된 패키지를 보고하지 않는지 확인하세요.
- 버그나 손상된 패키지가 있는 경우 시냅틱을 사용하여 해결책을 찾으세요.
완벽한