# Limit cross compilation support to core24 because it's not working before if [ "${SNAP_BASE}" != "core24" ]; then echo"Cross-compilation not supported before core24 base"
exit 0 fi;
# Remove snapshot.ubuntu.com configuration for now. rm -f /etc/apt/apt.conf.d/99snapshot
# GPG: we need to do it here otherwhise snapcraft tries to do it as user and fails
CROSS_GPG_KEYID="F6ECB3762474EDA9D21B7022871920D1991BC93C"
KEYRING_FILENAME="/etc/apt/keyrings/craft-$(echo "${CROSS_GPG_KEYID}" | rev | cut -c 1-8 | rev | tr -d '\n').gpg"
gpg --batch --no-default-keyring --with-colons --keyring gnupg-ring:"${KEYRING_FILENAME}" --homedir /tmp --keyserver keyserver.ubuntu.com --recv-keys "${CROSS_GPG_KEYID}"
chmod 0444"${KEYRING_FILENAME}"
sed -ri 's/^deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
# snapcraft 8.8+ looks for ports.ubuntu.com # > 2025-04-15 06:31:53.558 Reading sources in '/etc/apt/sources.list.d/ubuntu.sources' looking for 'ports.ubuntu.com/'
sed -ri "s|URIs: http://archive.ubuntu.com/ubuntu/|URIs: http://archive.ubuntu.com/ubuntu/\nArchitectures: amd64|g" /etc/apt/sources.list.d/ubuntu.sources
sed -ri "s|URIs: http://security.ubuntu.com/ubuntu/|URIs: http://security.ubuntu.com/ubuntu/\nArchitectures: amd64|g" /etc/apt/sources.list.d/ubuntu.sources
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.