Qemu 설치의 종속성 문제

Qemu 설치의 종속성 문제

내 가상 머신 Debian 10에 QEMU를 설치하고 싶습니다. 그런데 아래와 같은 오류가 발생합니다. 어떻게 해결할 수 있나요?

root@debian:~# apt-get install qemu-system-arm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
 qemu-system-arm : Depends: libaio1 (>= 0.3.93) but it is not installable
                   Depends: libcapstone3 (>= 3.0.0) but it is not installable
                   Depends: libfdt1 but it is not installable
                   Depends: libspice-server1 (>= 0.13.1) but it is not installable
                   Depends: libvdeplug2 but it is not installable
                   Depends: libvirglrenderer0 (>= 0.7.0) but it is not installable
                   Recommends: qemu-system-gui (= 1:3.1+dfsg-8+deb10u5) but it is not going to be installed
                   Recommends: qemu-utils but it is not going to be installed
                   Recommends: ipxe-qemu (>= 1.0.0+git-20131111.c3d1e78-1~) but it is not installable
                   Recommends: qemu-efi-aarch64 but it is not installable
                   Recommends: qemu-efi-arm but it is not installable
E: Unable to correct problems, you have held broken packages.

답변1

경우에 따라 전체 업그레이드를 실행하면 이 문제를 해결할 수 있습니다.

sources.list이 문제는 파일 구성이 잘못되어 발생할 수도 있습니다./etc/apt/sources.list

source.list지원되지 않는 저장소를 추가했는지 확인하세요 .

다음과 같은 방법으로 이 작업을 수행할 수 있습니다.

  1. 입력하여 source.list를 확인하세요.

    sudo nano /etc/apt/sources.list  
    

    nano를 원하는 편집기(예: gedit 또는 leafpad)로 바꿀 수 있습니다.

  2. 소프트웨어 센터에서 리포지토리를 확인하세요.

    응용 프로그램 메뉴로 이동하여 을 검색하면 software & update대화 상자가 열립니다. 이 other software옵션을 클릭하고 데비안이 아닌 저장소를 비활성화/삭제하세요.

  3. 손상된 종속성을 수정합니다.

    sudo dpkg --configure -a
    sudo apt-get -f install
    
  4. 시스템 패키지를 업데이트합니다.

    sudo apt-get update
    
  5. 문제를 해결하려면 전체 업그레이드를 실행하세요.

    sudo apt-get -u dist-upgrade 
    
  6. qemu-system-arm 설치

    sudo apt-get install qemu-system-arm
    

이것도 참고하시면 됩니다.

  1. 손상된 패키지를 수정하는 방법 - Unix 및 Linux
  2. 손상된 패키지를 보관하는 문제를 해결할 수 없습니다.

관련 정보