Browse Source

Try to fix apt error.

tags/v4.0.0-beta.1
Luigi Cruz 4 years ago
parent
commit
d6cb897eb4
2 changed files with 7 additions and 5 deletions
  1. +6
    -4
      builder/build.sh
  2. +1
    -1
      builder/stage0/00-configure-apt/files/sources.list

+ 6
- 4
builder/build.sh View File

@@ -20,8 +20,9 @@ EOF
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages-nr")" PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages-nr")"
if [ -n "$PACKAGES" ]; then if [ -n "$PACKAGES" ]; then
on_chroot << EOF on_chroot << EOF
apt-get -o APT::Acquire::Retries=3 --fix-missing install --no-install-recommends -y $PACKAGES
apt-get -o APT::Acquire::Retries=3 --fix-missing install --no-install-recommends -y $PACKAGES
apt-get -o APT::Acquire::Retries=3 --ignore-missing --fix-missing install --no-install-recommends -y $PACKAGES
apt-get -o APT::Acquire::Retries=3 --ignore-missing --fix-missing install --no-install-recommends -y $PACKAGES
apt-get -o APT::Acquire::Retries=3 --ignore-missing --fix-missing install --no-install-recommends -y $PACKAGES
EOF EOF
fi fi
log "End ${SUB_STAGE_DIR}/${i}-packages-nr" log "End ${SUB_STAGE_DIR}/${i}-packages-nr"
@@ -31,8 +32,9 @@ EOF
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages")" PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages")"
if [ -n "$PACKAGES" ]; then if [ -n "$PACKAGES" ]; then
on_chroot << EOF on_chroot << EOF
apt-get -o APT::Acquire::Retries=3 --fix-missing install -y $PACKAGES
apt-get -o APT::Acquire::Retries=3 --fix-missing install -y $PACKAGES
apt-get -o APT::Acquire::Retries=3 --ignore-missing --fix-missing install -y $PACKAGES
apt-get -o APT::Acquire::Retries=3 --ignore-missing --fix-missing install -y $PACKAGES
apt-get -o APT::Acquire::Retries=3 --ignore-missing --fix-missing install -y $PACKAGES
EOF EOF
fi fi
log "End ${SUB_STAGE_DIR}/${i}-packages" log "End ${SUB_STAGE_DIR}/${i}-packages"


+ 1
- 1
builder/stage0/00-configure-apt/files/sources.list View File

@@ -1,3 +1,3 @@
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source' # Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi #deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

Loading…
Cancel
Save