arm64 시스템에 대한 gnome-core 종속성을 다운로드할 수 없습니다

arm64 시스템에 대한 gnome-core 종속성을 다운로드할 수 없습니다

gnome-coredebian 10 arm-64 장치에 설치하기 위해 패키지 종속성을 다운로드하고 싶기 때문에 다음 명령을 사용했습니다.

sudo apt-cache depends  -i gnome-core:arm64 | awk '/Depends:/ {print $2}' | xargs  apt-get download

이 오류가 발생했습니다.

E: Unable to locate package <adwaita-icon-theme:arm64>
E: Unable to locate package <fonts-cantarell:arm64>
E: Unable to locate package <sound-theme-freedesktop:arm64>
E: Unable to locate package <gnome-backgrounds:arm64>
E: Unable to locate package <gnome-session:arm64>
E: Unable to locate package <gnome-shell-extensions:arm64>
E: Unable to locate package <gnome-user-docs:arm64>
E: Unable to locate package <gsettings-desktop-schemas:arm64>
E: Unable to locate package <firefox:arm64>
E: Unable to locate package <chromium-browser:arm64>
E: Unable to locate package <system-config-printer-common:arm64>

arm64 아키텍처는 이전에 활성화되었으며 리포지토리 와 리포지토리가 dpkg --add-architecture arm64 모두 활성화되었지만 다시 시도했지만 변경 사항이 발생하지 않았고 동일한 오류가 발생했습니다.maincontribapt updateapt-get update

저는 Debian 10 Buster x86-64 WSL 시스템을 사용하고 있습니다.

문제는 무엇이며 해당 종속성을 어떻게 다운로드할 수 있습니까?

답변1

apt-cache의 출력은 이런 방식으로 구문 분석될 수 없습니다. 당신은 결국

...
  Depends: <adwaita-icon-theme:arm64>
    adwaita-icon-theme
...

<adwaita-icon-theme:arm64>유효한 패키지 이름이 아닌 것을 추출하고 있습니다 .

' 출력 의 꺾쇠 괄호는 apt-cache depends해석기가 설치할 버전을 찾지 못했음을 의미하고, 다음 줄은 대신 설치해야 할 버전을 보여줍니다. 의 경우 adwaita-icon-theme, 이는 기본 버전이 다음을 허용하는 "Multi-Arch: foreign"로 표시되어 있기 때문에 발생합니다. 의존성을 만족시키다.

이 외에도 대체 종속성을 구문 분석하지 않습니다. 예를 들어

 |Depends: firefox-esr:arm64
 |Depends: firefox:arm64
 |Depends: chromium:arm64
 |Depends: <chromium-browser:arm64>

모두 설치하는 것이 아니라 이들 중 하나만 설치하면 됩니다.

이 모든 것이 apt-cache외국 아키텍처용으로 다운로드할 패키지 목록을 작성하는 데 사용하기를 정말 어렵게 만듭니다. 외국 최소 chroot를 사용하는 것이 더 나을 것입니다 apt-get install --download-only.

  • 설치하다 mmdebstrap:

    sudo apt install mmdebstrap qemu-user qemu-user-static binfmt-support libfakeroot:arm64 libfakechroot:arm64
    
  • 기본 chroot를 설정하십시오 arm64:

    sudo mmdebstrap --architectures=arm64 buster gnome-core-arm64
    
  • chroot를 입력하십시오 :

    sudo chroot gnome-core-arm64
    
  • 종속성 을 다운로드합니다 gnome-core.

    apt-get update
    apt-get install --download-only gnome-core
    
  • chroot를 종료하면 gnome-core-arm64/var/cache/apt/archives.

관련 정보