[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 Fri, Sep 02, 2016 at 11:37:53AM +0200, Frank Thommen wrote:
> On 09/02/2016 01:18 AM, Steve McIntyre wrote:
> >On Thu, Sep 01, 2016 at 06:24:16PM +0200, Frank Thommen wrote:
> >>
> >>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.)

I think/assume/hope that Original Poster has access to log files of server,
that is the "local mirror" which is *good*.


> >>
> >>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 not.
> 
> It is created with `ftpsync sync:all`, so I'd assume that yes.

Yes, let's assume the mirror is complete.


> >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?

I think ( as in "not sure" ) it is a HTTP error code.
Mostly because I see in '502'  "Bad gateway"

  https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#5xx_Server_Error


> Would that mean, that our local mirror is not ok?

Yes, it could mean that the local mirror is not OK.

Where I'm _not_ familiar with `ftpsync sync:all`, I accept that
it only does "data synchronization". Not any webserver setup.

Advice: test/check/verify the local mirror with an installed system.


Groeten
Geert Stappers
-- 
Leven en laten leven

Attachment: signature.asc
Description: Digital signature


Reply to: