Ulrich Mietke schrieb: > Andreas Pakulat schrieb: >> On 29.Sep 2004 - 14:14:25, Ulrich Mietke wrote: >>> >>> von einer bestehenden Debian Installation aus möchte ich Debian auf einer >>> 2. Partition unbeaufsichtigt installieren. >>> Zwar kann ich apt-get mit einem Eintrag in einer alternativen apt.conf dazu >>> bringen die Paketinformationen der Zielpartition zu nutzen, das Paket wird >>> aber in der bestehenden Installation installiert! >>> Zwischenzeitlich habe ich eine Möglichkeit gefunden, in der apt.conf dpkg die option --root=ZIELPATH zu übergeben. Hatte ich vorher übersehen. (Die Dokumentation ist diesbezüglich noch ein klitzekleines bisschen verbesserungsfähig)
-------- apt.conf -------- // Directory layout Dir "/mnt/install/" { // Location of the state dir State "var/lib/apt/" { lists "lists/"; xstatus "xstatus"; userstatus "status.user"; status "/mnt/install/var/lib/dpkg/status"; cdroms "cdroms.list"; }; // Location of the cache dir Cache "var/cache/apt/" { archives "archives/"; srcpkgcache "srcpkgcache.bin"; pkgcache "pkgcache.bin"; }; }; DPkg { Options {"--root=/mnt/install";}; }; --------- Starte ich das Installationsscript: ------- debinst ------- # Festplatte bootfähig machen install-mbr /dev/hda # Festplatte partitionieren sfdisk /dev/hda < /root/hda.sfdisk # Filesystem erstellen mkfs -t ext2 -j /dev/hda3 # Mountpoint für Installationsziel anlegen mkdir -p /mnt/install # Installationsziel mounten mount -t ext2 /dev/hda3 /mnt/install/ # Bezugsquellenliste --> Zielsystem mkdir -p /mnt/install/etc/apt grep 192.168 /etc/apt/sources.list >> /mnt/install/etc/apt/sources.list # Zwischenspeicher für apt anlegen mkdir -p /mnt/install/var/cache/apt/archives/partial # Liste verfügbarer Pakete erstellen mkdir -p /mnt/install/var/lib/apt/lists/partial mkdir -p /mnt/install/var/lib/dpkg/updates touch /mnt/install/var/lib/dpkg/status apt-get -c=/root/apt.conf update # installierte Pakete touch /mnt/install/var/lib/dpkg/available # Pakete installieren apt-get -c=/root/apt.conf install libc6 ------- kommte es leider zu einigen unschönen Fehlermeldungen: ----------------------------------------------------- ... Fetched 3383kB in 0s (10.9MB/s) Selecting previously deselected package libc6. (Reading database ... 0 files and directories currently installed.) Unpacking libc6 (from .../libc6_2.2.5-11.5_i386.deb) ... dpkg (subprocess): unable to execute new pre-installation script: No such file or directory dpkg: error processing /mnt/install/var/cache/apt/archives/libc6_2.2.5-11.5_i386.deb (--unpack): subprocess pre-installation script returned error exit status 2 dpkg (subprocess): unable to execute new post-removal script: No such file or directory dpkg: error while cleaning up: subprocess post-removal script returned error exit status 2 Errors were encountered while processing: /mnt/install/var/cache/apt/archives/libc6_2.2.5-11.5_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) ------------------------------------------------------- Was fehlt dem "new pre-installation script"? Gruß Uli -- Auftragsdatenbank: http://jobjektiv.de/index.html -- Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED] mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)