安裝:
sudo apt-add-repository main
sudo apt-get update
sudo apt-get install qemu-kvm qemu virt-manager virt-viewer libvirt-bin bridge-utils
安裝中基本不會出現依賴的問題,如果出現了,可以使用sudo apt-get install -f去解決,然后重新運行安裝命令。
安裝過程中的錯誤解決:
1、如果出現如下錯誤:

正在讀取軟件包列表... 完成 正在分析軟件包的依賴關系樹 正在讀取狀態信息... 完成 將會同時安裝下列軟件: cpu-checker ipxe-qemu libboost-random1.58.0 libboost-thread1.58.0 libcacard0 libfdt1 libiscsi2 librados2 librbd1 libsdl1.2debian libspice-server1 libusbredirparser1 libxen-4.6 libxenstore3.0 msr-tools qemu-block-extra qemu-slof qemu-system qemu-system-arm qemu-system-common qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-system-x86 qemu-user qemu-user-binfmt qemu-utils seabios 建議安裝: qemu-user-static samba vde2 openbios-ppc openhackware sgabios ovmf debootstrap 下列【新】軟件包將被安裝: cpu-checker ipxe-qemu libboost-random1.58.0 libboost-thread1.58.0 libcacard0 libfdt1 libiscsi2 librados2 librbd1 libsdl1.2debian libspice-server1 libusbredirparser1 libxen-4.6 libxenstore3.0 msr-tools qemu qemu-block-extra qemu-slof qemu-system qemu-system-arm qemu-system-common qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-system-x86 qemu-user qemu-user-binfmt qemu-utils seabios 升級了 0 個軟件包,新安裝了 30 個軟件包,要卸載 0 個軟件包,有 331 個軟件包未被升級。 有 1 個軟件包沒有被完全安裝或卸載。 需要下載 0 B/39.8 MB 的歸檔。 解壓縮后會消耗 248 MB 的額外空間。 您希望繼續執行嗎? [Y/n] y 正在選中未選擇的軟件包 libiscsi2:amd64。 (正在讀取數據庫 ... 系統當前共安裝有 224632 個文件和目錄。) 正准備解包 .../libiscsi2_1.12.0-2_amd64.deb ... 正在解包 libiscsi2:amd64 (1.12.0-2) ... 正在選中未選擇的軟件包 libboost-random1.58.0:amd64。 正准備解包 .../libboost-random1.58.0_1.58.0+dfsg-5ubuntu3.1_amd64.deb ... 正在解包 libboost-random1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ... 正在選中未選擇的軟件包 libboost-thread1.58.0:amd64。 正准備解包 .../libboost-thread1.58.0_1.58.0+dfsg-5ubuntu3.1_amd64.deb ... 正在解包 libboost-thread1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ... 正在選中未選擇的軟件包 librados2。 正准備解包 .../librados2_10.2.7-0ubuntu0.16.04.1_amd64.deb ... 正在解包 librados2 (10.2.7-0ubuntu0.16.04.1) ... 正在選中未選擇的軟件包 librbd1。 正准備解包 .../librbd1_10.2.7-0ubuntu0.16.04.1_amd64.deb ... 正在解包 librbd1 (10.2.7-0ubuntu0.16.04.1) ... 正在選中未選擇的軟件包 qemu-block-extra:amd64。 正准備解包 .../qemu-block-extra_1%3a2.5+dfsg-5ubuntu10.14_amd64.deb ... 正在解包 qemu-block-extra:amd64 (1:2.5+dfsg-5ubuntu10.14) ... 正在選中未選擇的軟件包 qemu-system-common。 正准備解包 .../qemu-system-common_1%3a2.5+dfsg-5ubuntu10.14_amd64.deb ... 正在解包 qemu-system-common (1:2.5+dfsg-5ubuntu10.14) ... 正在選中未選擇的軟件包 msr-tools。 正准備解包 .../msr-tools_1.3-2_amd64.deb ... 正在解包 msr-tools (1.3-2) ... 正在選中未選擇的軟件包 cpu-checker。 正准備解包 .../cpu-checker_0.7-0ubuntu7_amd64.deb ... 正在解包 cpu-checker (0.7-0ubuntu7) ... 正在選中未選擇的軟件包 ipxe-qemu。 正准備解包 .../ipxe-qemu_1.0.0+git-20150424.a25a16d-1ubuntu1_all.deb ... 正在解包 ipxe-qemu (1.0.0+git-20150424.a25a16d-1ubuntu1) ... 正在選中未選擇的軟件包 libcacard0:amd64。 正准備解包 .../libcacard0_1%3a2.5.0-2_amd64.deb ... 正在解包 libcacard0:amd64 (1:2.5.0-2) ... 正在選中未選擇的軟件包 libsdl1.2debian:amd64。 正准備解包 .../libsdl1.2debian_1.2.15+dfsg1-3_amd64.deb ... 正在解包 libsdl1.2debian:amd64 (1.2.15+dfsg1-3) ... 正在選中未選擇的軟件包 libspice-server1:amd64。 正准備解包 .../libspice-server1_0.12.6-4ubuntu0.3_amd64.deb ... 正在解包 libspice-server1:amd64 (0.12.6-4ubuntu0.3) ... 正在選中未選擇的軟件包 libusbredirparser1:amd64。 正准備解包 .../libusbredirparser1_0.7.1-1_amd64.deb ... 正在解包 libusbredirparser1:amd64 (0.7.1-1) ... 正在選中未選擇的軟件包 libxenstore3.0:amd64。 正准備解包 .../libxenstore3.0_4.6.5-0ubuntu1.2_amd64.deb ... 正在解包 libxenstore3.0:amd64 (4.6.5-0ubuntu1.2) ... 正在選中未選擇的軟件包 libxen-4.6:amd64。 正准備解包 .../libxen-4.6_4.6.5-0ubuntu1.2_amd64.deb ... 正在解包 libxen-4.6:amd64 (4.6.5-0ubuntu1.2) ... 正在選中未選擇的軟件包 libfdt1:amd64。 正准備解包 .../libfdt1_1.4.0+dfsg-2_amd64.deb ... 正在解包 libfdt1:amd64 (1.4.0+dfsg-2) ... 正在選中未選擇的軟件包 qemu-system-arm。 正准備解包 .../qemu-system-arm_1%3a2.5+dfsg-5ubuntu10.14_amd64.deb ... 正在解包 qemu-system-arm (1:2.5+dfsg-5ubuntu10.14) ... 正在選中未選擇的軟件包 qemu-system-mips。 正准備解包 .../qemu-system-mips_1%3a2.5+dfsg-5ubuntu10.14_amd64.deb ... 正在解包 qemu-system-mips (1:2.5+dfsg-5ubuntu10.14) ... 正在選中未選擇的軟件包 qemu-slof。 正准備解包 .../qemu-slof_20151103+dfsg-1ubuntu1_all.deb ... 正在解包 qemu-slof (20151103+dfsg-1ubuntu1) ... 正在選中未選擇的軟件包 qemu-system-ppc。 正准備解包 .../qemu-system-ppc_1%3a2.5+dfsg-5ubuntu10.14_amd64.deb ... 正在解包 qemu-system-ppc (1:2.5+dfsg-5ubuntu10.14) ... 正在選中未選擇的軟件包 qemu-system-sparc。 正准備解包 .../qemu-system-sparc_1%3a2.5+dfsg-5ubuntu10.14_amd64.deb ... 正在解包 qemu-system-sparc (1:2.5+dfsg-5ubuntu10.14) ... 正在選中未選擇的軟件包 seabios。 正准備解包 .../seabios_1.8.2-1ubuntu1_all.deb ... 正在解包 seabios (1.8.2-1ubuntu1) ... 正在選中未選擇的軟件包 qemu-system-x86。 正准備解包 .../qemu-system-x86_1%3a2.5+dfsg-5ubuntu10.14_amd64.deb ... 正在解包 qemu-system-x86 (1:2.5+dfsg-5ubuntu10.14) ... 正在選中未選擇的軟件包 qemu-system-misc。 正准備解包 .../qemu-system-misc_1%3a2.5+dfsg-5ubuntu10.14_amd64.deb ... 正在解包 qemu-system-misc (1:2.5+dfsg-5ubuntu10.14) ... 正在選中未選擇的軟件包 qemu-system。 正准備解包 .../qemu-system_1%3a2.5+dfsg-5ubuntu10.14_amd64.deb ... 正在解包 qemu-system (1:2.5+dfsg-5ubuntu10.14) ... 正在選中未選擇的軟件包 qemu-user。 正准備解包 .../qemu-user_1%3a2.5+dfsg-5ubuntu10.14_amd64.deb ... 正在解包 qemu-user (1:2.5+dfsg-5ubuntu10.14) ... 正在選中未選擇的軟件包 qemu-utils。 正准備解包 .../qemu-utils_1%3a2.5+dfsg-5ubuntu10.14_amd64.deb ... 正在解包 qemu-utils (1:2.5+dfsg-5ubuntu10.14) ... 正在選中未選擇的軟件包 qemu。 正准備解包 .../qemu_1%3a2.5+dfsg-5ubuntu10.14_amd64.deb ... 正在解包 qemu (1:2.5+dfsg-5ubuntu10.14) ... 正在選中未選擇的軟件包 qemu-user-binfmt。 正准備解包 .../qemu-user-binfmt_1%3a2.5+dfsg-5ubuntu10.14_amd64.deb ... 正在解包 qemu-user-binfmt (1:2.5+dfsg-5ubuntu10.14) ... 正在處理用於 libc-bin (2.23-0ubuntu9) 的觸發器 ... 正在處理用於 ureadahead (0.100.0-19) 的觸發器 ... 正在處理用於 systemd (229-4ubuntu10) 的觸發器 ... 正在處理用於 man-db (2.7.5-1) 的觸發器 ... 正在處理用於 doc-base (0.10.7) 的觸發器 ... Processing 2 added doc-base files... 正在設置 binfmt-support (2.1.6-1) ... insserv: warning: script 'S20tomcat8' missing LSB tags and overrides insserv: warning: script 'tomcat8' missing LSB tags and overrides insserv: There is a loop between service plymouth and mountdevsubfs if started insserv: loop involving service mountdevsubfs at depth 2 insserv: loop involving service udev at depth 1 insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Max recursions depth 99 reached insserv: There is a loop at service plymouth if started insserv: loop involving service hwclock at depth 4 insserv: There is a loop at service tomcat8 if started insserv: loop involving service tomcat8 at depth 1 insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: 處理軟件包 binfmt-support (--configure)時出錯: 子進程 已安裝 post-installation 腳本 返回錯誤狀態 1 正在設置 libiscsi2:amd64 (1.12.0-2) ... 正在設置 libboost-random1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ... 正在設置 libboost-thread1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ... 正在設置 librados2 (10.2.7-0ubuntu0.16.04.1) ... 正在設置 librbd1 (10.2.7-0ubuntu0.16.04.1) ... 正在設置 qemu-block-extra:amd64 (1:2.5+dfsg-5ubuntu10.14) ... 正在設置 qemu-system-common (1:2.5+dfsg-5ubuntu10.14) ... insserv: warning: script 'S20tomcat8' missing LSB tags and overrides insserv: warning: script 'tomcat8' missing LSB tags and overrides insserv: There is a loop between service plymouth and mountdevsubfs if started insserv: loop involving service mountdevsubfs at depth 2 insserv: loop involving service udev at depth 1 insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting tomcat8 depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Max recursions depth 99 reached insserv: There is a loop at service plymouth if started insserv: loop involving service hwclock at depth 4 insserv: There is a loop at service tomcat8 if started insserv: loop involving service tomcat8 at depth 1 insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: 處理軟件包 qemu-system-common (--configure)時出錯: 子進程 已安裝 post-installation 腳本 返回錯誤狀態 1 正在設置 msr-tools (1.3-2) ... 正在設置 cpu-checker (0.7-0ubuntu7) ... 正在設置 ipxe-qemu (1.0.0+git-20150424.a25a16d-1ubuntu1) ... 正在設置 libcacard0:amd64 (1:2.5.0-2) ... 正在設置 libsdl1.2debian:amd64 (1.2.15+dfsg1-3) ... 正在設置 libspice-server1:amd64 (0.12.6-4ubuntu0.3) ... 正在設置 libusbredirparser1:amd64 (0.7.1-1) ... 正在設置 libxenstore3.0:amd64 (4.6.5-0ubuntu1.2) ... 正在設置 libxen-4.6:amd64 (4.6.5-0ubuntu1.2) ... 正在設置 libfdt1:amd64 (1.4.0+dfsg-2) ... dpkg: 依賴關系問題使得 qemu-system-arm 的配置工作不能繼續: qemu-system-arm 依賴於 qemu-system-common (>> 2.0.0+dfsg-7~);然而: 軟件包 qemu-system-common 尚未配置。 dpkg: 處理軟件包 qemu-system-arm (--configure)時出錯: 依賴關系問題 - 仍未被配置 因為錯誤消息指示這是由於上一個問題導致的錯誤,沒有寫入 apport 報告。 dpkg: 依賴關系問題使得 qemu-system-mips 的配置工作不能繼續: qemu-system-mips 依賴於 qemu-system-common (>> 2.0.0+dfsg-7~);然而: 軟件包 qemu-system-common 尚未配置。 dpkg: 處理軟件包 qemu-system-mips (--configure)時出錯: 依賴關系問題 - 仍未被配置 由於已經達到 MaxReports 限制,沒有寫入 apport 報告。 正在設置 qemu-slof (20151103+dfsg-1ubuntu1) ... dpkg: 依賴關系問題使得 qemu-system-ppc 的配置工作不能繼續: qemu-system-ppc 依賴於 qemu-system-common (>> 2.0.0+dfsg-7~);然而: 軟件包 qemu-system-common 尚未配置。 dpkg: 處理軟件包 qemu-system-ppc (--configure)時出錯: 依賴關系問題 - 仍未被配置 由於已經達到 MaxReports 限制,沒有寫入 apport 報告。 dpkg: 依賴關系問題使得 qemu-system-sparc 的配置工作不能繼續: qemu-system-sparc 依賴於 qemu-system-common (>> 2.0.0+dfsg-7~);然而: 軟件包 qemu-system-common 尚未配置。 dpkg: 處理軟件包 qemu-system-sparc (--configure)時出錯: 依賴關系問題 - 仍未被配置 由於已經達到 MaxReports 限制,沒有寫入 apport 報告。 正在設置 seabios (1.8.2-1ubuntu1) ... dpkg: 依賴關系問題使得 qemu-system-x86 的配置工作不能繼續: qemu-system-x86 依賴於 qemu-system-common (>> 2.0.0+dfsg-7~);然而: 軟件包 qemu-system-common 尚未配置。 dpkg: 處理軟件包 qemu-system-x86 (--configure)時出錯: 依賴關系問題 - 仍未被配置 dpkg: 依賴關系問題使得 qemu-system-misc 的配置工作不能繼續: qemu-system-misc 依賴於 qemu-system-common (>> 2.0.0+dfsg-7~);然而: 軟件包 qemu-system-common 尚未配置。 dpkg: 處理軟件包 qemu-system-misc (--configure)時出錯: 依賴關系問題 - 仍未被配置 dpkg: 依賴關系問題使得 qemu-system 的配置工作不能繼續: qemu-system 依賴於 qemu-system-arm;然而: 軟件包 qemu-system-arm 尚未配置。 qemu-system 依賴於 qemu-system-mips;然而: 軟件包 qemu-system-mips 尚未配置。 qemu-system 依賴於 qemu-system-ppc;然而: 軟件包 qemu-system-ppc 尚未配置。 qemu-system 依賴於 qemu-sys由於已經達到 MaxReports 限制,沒有寫入 apport 報告。 由於已經達到 MaxReports 限制,沒有寫入 apport 報告。 由於已經達到 MaxReports 限制,沒有寫入 apport 報告。 tem-sparc;然而: 軟件包 qemu-system-sparc 尚未配置。 qemu-system 依賴於 qemu-system-x86;然而: 軟件包 qemu-system-x86 尚未配置。 qemu-system 依賴於 qemu-system-misc;然而: 軟件包 qemu-system-misc 尚未配置。 dpkg: 處理軟件包 qemu-system (--configure)時出錯: 依賴關系問題 - 仍未被配置 正在設置 qemu-user (1:2.5+dfsg-5ubuntu10.14) ... 正在設置 qemu-utils (1:2.5+dfsg-5ubuntu10.14) ... dpkg: 依賴關系問題使得 qemu 的配置工作不能繼續: qemu 依賴於 qemu-system (>= 1:2.5+dfsg-5ubuntu10.14);然而: 軟件包 qemu-system 尚未配置。 dpkg: 處理軟件包 qemu (--configure)時出錯: 依賴關系問題 - 仍未被配置 dpkg: 依賴關系問題使得 qemu-user-binfmt 的配置工作不能繼續: qemu-user-binfmt 依賴於 binfmt-support;然而: 軟件包 binfmt-support 尚未配置。 dpkg: 處理軟件包 qemu-user-binfmt (--configure)時出錯: 依賴關系問題 - 仍未被配置 正在處理用於 libc-bin (2.23-0ubuntu9) 的觸發器 ... 由於已經達到 MaxReports 限制,沒有寫入 apport 報告。 由於已經達到 MaxReports 限制,沒有寫入 apport 報告。 在處理時有錯誤發生: binfmt-support qemu-system-common qemu-system-arm qemu-system-mips qemu-system-ppc qemu-system-sparc qemu-system-x86 qemu-system-misc qemu-system qemu qemu-user-binfmt E: Sub-process /usr/bin/dpkg returned an error code (1)
那么可能是服務自啟動有關造成的,比如上面的就是我tomcat8的問題,我使用sysv-rc-conf把tomcat8的開機啟動都關閉
通過以上設置之后再次安裝基本全部通過。
千萬不要嘗試這種方法:http://www.cnblogs.com/EasonJim/p/7215988.html,因為通過這種方式安裝成功后表面是成功了,但是實質上是無法運行的。
2、安裝好時候,在Dash啟動virt-manage時出現:無法連接到 libvirt。的問題,如下所示:
sudo virt-manager
或者使用Alt+F2
gksu gksu virt-manager
輸入管理員密碼就不會出現上面提示。
或者使用愚蠢的辦法,重啟電腦會發現神奇的好了。
3、在命令行上輸入qemu,出現:qemu:未找到命令,如下所示:
這個問題是由於在12.04之后的qemu版本不在/usr/bin下創建qemu,取代的是qemu-system-i386和qemu-system-x86-64,如果想要用回qemu命令,可以通過創建鏈接的方式,如下:
sudo ln -s /usr/bin/qemu-system-i386 /usr/bin/qemu
參考:
https://www.unixmen.com/how-to-install-and-configure-qemu-in-ubuntu/
https://askubuntu.com/questions/345218/virt-manager-cant-connect-to-libvirt