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

Re: How to use a local Debian mirror when installing with preseed (PXE)?



On 09/02/2016 01:18 AM, Steve McIntyre wrote:
On Thu, Sep 01, 2016 at 06:24:16PM +0200, Frank Thommen wrote:
Hi,

I'm currently setting up an unattended, PXE-based network installation of
Debian with preseeding.  We also have a complete local Debian mirror for
inhouse use.  However I haven't found a way to configure the installer to use
this mirror instead of one of the official Debian mirrors (and takes
accordingly long) for downloading the packages.  I have set

d-i apt-setup/local0/repository string  http://our.debmirror stable main

in the preseed file but the installer doesn't seem to download any files from
there a part from some index files (Packages.xz, Translation-en.bz2 ecc.)

How can I preseed our local mirror as primary/only installation source?

Is your local mirror a complete mirror with signatures on the Release
file etc.? It could be that the installer is discounting it if

It is created with `ftpsync sync:all`, so I'd assume that yes.


not. Check the syslog in the installer to see what apt says about the
mirror.


/var/log/installer/syslog says:

Aug 31 14:52:16 debconf: --> SET apt-setup/local0/repository http://our.debmirror stable main
Aug 31 14:52:16 debconf: <-- 10 apt-setup/local0/repository doesn't exist
Aug 31 14:52:16 debconf: --> REGISTER debian-installer/dummy apt-setup/local0/repository
Aug 31 14:52:16 debconf: <-- 0
Aug 31 14:52:16 debconf: --> SET apt-setup/local0/repository http://our.debmirror stable main
Aug 31 14:52:16 debconf: <-- 0 value set
Aug 31 14:52:16 debconf: --> SUBST apt-setup/local0/repository ID apt-setup/local0/repository
Aug 31 14:52:16 debconf: Adding [ID] -> [apt-setup/local0/repository]
Aug 31 14:52:16 debconf: <-- 0
Aug 31 14:52:16 debconf: --> FSET apt-setup/local0/repository seen true
Aug 31 14:52:16 debconf: <-- 0 true


and this mirror also appears in /etc/apt/sources.list

But in /var/log/installer/syslog I also found:

Aug 31 15:01:47 debconf: --> GET apt-setup/local0/repository
Aug 31 15:01:47 debconf: <-- 0 http://our.debmirror stable main
Aug 31 15:01:47 debconf: --> GET apt-setup/local0/comment
Aug 31 15:01:47 debconf: <-- 10 apt-setup/local0/comment doesn't exist
Aug 31 15:01:47 debconf: --> GET apt-setup/local0/key
Aug 31 15:01:47 debconf: <-- 10 apt-setup/local0/key doesn't exist
Aug 31 15:01:47 debconf: --> GET apt-setup/local0/source
Aug 31 15:01:47 debconf: <-- 10 apt-setup/local0/source doesn't exist

and

Aug 31 15:01:48 in-target: Get:2 http://our.debmirror stable Release [148 kB]
Aug 31 15:01:48 debconf: --> PROGRESS SET 502

and

Aug 31 15:01:48 in-target: Get:3 http://our.debmirror stable/main amd64 Packages [6,761 kB]
Aug 31 15:01:48 debconf: --> PROGRESS SET 502


Are these HTTP error codes? Would that mean, that our local mirror is not ok?

Cheers
Frank


Reply to: