From 011826394fd1828587dc1d37ea76f346d291eedd Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 23 Sep 2004 22:04:25 +0000 Subject: [PATCH] added better diagnostic for failed debootstrap download git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1708 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/scripts/vserver-build.debootstrap | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/util-vserver/scripts/vserver-build.debootstrap b/util-vserver/scripts/vserver-build.debootstrap index e804181..e824d64 100644 --- a/util-vserver/scripts/vserver-build.debootstrap +++ b/util-vserver/scripts/vserver-build.debootstrap @@ -58,7 +58,28 @@ function findDebootstrap read tmp <$DEBOOTSTRAP_URI case "$tmp" in (/*) ln -s "$tmp" "$dst";; - (http://*|ftp://*) $_WGET -nv -O "$dst" "$tmp";; + (http://*|ftp://*) + $_WGET -nv -O "$dst" "$tmp" || { + cat <&2 +ERROR: Could not download the debootstrap package from + + $dst + +Usually, this means that Debian released a new version which is unknown +to util-vserver and removed the known ones. To fix this, go to + + http://ftp.debian.org/debian/pool/main/d/debootstrap/ + +(or a nearby mirror) and search the URL for the most recent *.deb +package matching your platform. Then, put this URL into + + $CONFDIR/.defaults/apps/debootstrap/uri + +and retry the vserver-build command again. +EOF + exit 1 + } + ;; (*) echo $"Unsupported URI scheme '$tmp'" >&2 exit 1;; esac -- 1.8.1.5