Skip to content

Instantly share code, notes, and snippets.

@akhilerm
Created June 27, 2023 11:44
Show Gist options
  • Save akhilerm/ed0ac1bbef386bf740377c8508a7bfce to your computer and use it in GitHub Desktop.
Save akhilerm/ed0ac1bbef386bf740377c8508a7bfce to your computer and use it in GitHub Desktop.
Reproducing containerd nightly build failure locally

How to reproduce locally

  1. Build the image
docker build -t ubuntu:nightly-test .
  1. Run the image using azure sources
docker run -it --rm -v $PWD/sources.list:/etc/apt/sources.list -v $PWD/microsoft-prod.list:/etc/apt/sources.list.d/microsoft-prod.list -v $PWD/ubuntu-toolchain-r-ubuntu-test-jammy.list:/etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-jammy.list ubuntu:nightly-test
  1. Inside the newly opened shell. run the script to install the necessary packages
bin/setup.sh
  1. Install the libseccomp
apt-get install -y libseccomp-dev:s390x

The installation will fail with the error libc6:s390x : Depends: libgcc-s1:s390x but it is not installable

If the same container is started without the azure sources and when installation is attempted it passes.

FROM ubuntu:22.04
COPY ./setup.sh /bin/setup.sh
deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/ubuntu/22.04/prod jammy main
#! /bin/bash
apt-get update
apt-get install -y ca-certificates gnupg
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EB3E94ADBE1229CF
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 1E9377A2BA9EF27F
apt-get update
apt-get install -y software-properties-common
add-apt-repository -y "deb [arch=arm64,s390x,ppc64el,riscv64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc) main" || true
add-apt-repository -y "deb [arch=arm64,s390x,ppc64el,riscv64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc)-updates main" || true
dpkg --add-architecture arm64
dpkg --add-architecture s390x
dpkg --add-architecture ppc64el
dpkg --add-architecture riscv64
apt-get update || true
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
## or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://azure.archive.ubuntu.com/ubuntu/ jammy main restricted
# deb-src http://azure.archive.ubuntu.com/ubuntu/ jammy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://azure.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
# deb-src http://azure.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://azure.archive.ubuntu.com/ubuntu/ jammy universe
# deb-src http://azure.archive.ubuntu.com/ubuntu/ jammy universe
deb http://azure.archive.ubuntu.com/ubuntu/ jammy-updates universe
# deb-src http://azure.archive.ubuntu.com/ubuntu/ jammy-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://azure.archive.ubuntu.com/ubuntu/ jammy multiverse
# deb-src http://azure.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://azure.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
# deb-src http://azure.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://azure.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src http://azure.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://azure.archive.ubuntu.com/ubuntu/ jammy-security main restricted
# deb-src http://azure.archive.ubuntu.com/ubuntu/ jammy-security main restricted
deb http://azure.archive.ubuntu.com/ubuntu/ jammy-security universe
# deb-src http://azure.archive.ubuntu.com/ubuntu/ jammy-security universe
deb http://azure.archive.ubuntu.com/ubuntu/ jammy-security multiverse
# deb-src http://azure.archive.ubuntu.com/ubuntu/ jammy-security multiverse
deb https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu/ jammy main
# deb-src https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu/ jammy main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment