Debian 9 に Qemu をインストールできない

Debian 9 に Qemu をインストールできない

私の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を台無しにしたようですが、いつも修正することができました。

編集:コメントに答えて、あなたは次のように投稿しました。

2番目の出力を得るには、単に入力するだけです。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の再インストール
  • シナプスがエラーや破損したパッケージを報告していないことを確認してください。
  • バグや破損したパッケージがある場合は、シナプティックを使用して解決策を見つけてください。

完璧

おすすめ記事