Skip to content

Build fail due to 400 Bad Request #194

@0xbadshah

Description

@0xbadshah

I found that some of my custom builds fail due to server error during apt-get install.
Here's an example:

Get:926 http://mirror.glennmcgurrin.com/raspbian stretch/main armhf vlan armhf 1.9-3.2 [36.1 kB]
Fetched 589 MB in 4min 28s (2190 kB/s)
E: Failed to fetch http://mirror.glennmcgurrin.com/raspbian/pool/main/libx/libxrender/libxrender1_0.9.10-1_armhf.deb  400  Bad request
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

From the build.sh script:

pi-gen/build.sh

Lines 28 to 37 in 8d9cfb3

if [ -f "${i}-packages" ]; then
log "Begin ${SUB_STAGE_DIR}/${i}-packages"
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages")"
if [ -n "$PACKAGES" ]; then
on_chroot << EOF
apt-get install -y $PACKAGES
EOF
fi
log "End ${SUB_STAGE_DIR}/${i}-packages"
fi

The script doesnt check if all the packages were correctly installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions