[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#197818: base-installer: problem creating sources.list



Package: base-installer
Version: 0.023 - UNRELEASED (not installed)
Severity: normal
Tags: patch

Hi,

base-installer failes with the following message:

/var/lib/dpkg/info/base-installer.postinst: 128: cannot
create/target/etc/apt/sources.listbase-installer's postinst exited with
status 512

I propose the following changes in debian/postinst:
--- postinst.orig       2003-06-17 22:20:12.000000000 +0200
+++ postinst    2003-06-17 22:20:46.000000000 +0200
@@ -125,6 +125,7 @@
 COMPONENTS=`echo $COMPONENTS | tr , " "`
 APTSOURCE="$PROTOCOL://$MIRROR$DIRECTORY"
 
+[ ! -d /target/etc/apt ] && mkdir -p /target/etc/apt
echo "deb $APTSOURCE $DISTRIBUTION $COMPONENTS" > /target/etc/apt/sources.list

apt-update




Thanks
Thorsten



-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux jacky 2.4.20 #5 Fre Mai 9 19:17:29 CEST 2003 i686
Locale: LANG=de_DE, LC_CTYPE=de_DE




Reply to: