Debootstrap for foreign arm64 architecture command is unable to resolve dependencies which normally exists on amd64. I run the following command:
debootstrap --arch arm64 --foreign --include=libasound2,libaudit1,libbsd0,libc6,libcairo2,libdatrie1,libdrm2,libegl1,libevdev2,libexpat1,libffi6,libfontconfig1,libgbm1,libgcc1,libgles2,libglib2.0-0,libglvnd0,libgstreamer-plugins-bad1.0-0,libgstreamer-plugins-base1.0-0,libgstreamer1.0-0,libharfbuzz0b,libinput10,libjpeg-turbo8,libpam0g,libpango-1.0-0,libpangocairo-1.0-0,libpangoft2-1.0-0,libpcre3,libpixman-1-0,libpng16-16,libstdc++6,libudev1,libunwind8,libwayland-client0,libwayland-cursor0,libwayland-egl1,libwayland-server0,libx11-6,libxau6,libxcb1,libxdmcp6,libxext6,libxkbcommon0,libxrender1,python3,zlib1g,kmod,htop --keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg focal build/rootfs
The error I get is E: Couldn't find these debs: libgcc1 libgstreamer-plugins-bad1.0-0 libffi6
When I run apt-get install --simulate libgcc1:arm64
the package is really not found. amd64
version exists.
These packages are required by NVIDIA LT4 Support packages. Does anybody know how can I properly provide debootstrap with all included dependencies?
I build the foreign filesystem on ubuntu 20.04 amd64. Foreign system is ubuntu 20.04 arm64.
docker run -it ubuntu:20.04 cat /etc/apt/sources.list | grep '^deb '
deb http://archive.ubuntu.com/ubuntu/ focal main restricted
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
deb http://archive.ubuntu.com/ubuntu/ focal universe
deb http://archive.ubuntu.com/ubuntu/ focal-updates universe
deb http://archive.ubuntu.com/ubuntu/ focal multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted
deb http://security.ubuntu.com/ubuntu/ focal-security universe
deb http://security.ubuntu.com/ubuntu/ focal-security multiverse
The package exists for arm64
but cannot by found via apt install
.
https://packages.ubuntu.com/focal/libgcc1
By default base image of ubuntu have only the following repository setup:
By adding the universe repository to
/etc/apt/sources.list
the package is available.