aptly repo as netinstall mirror

295 views
Skip to first unread message

aptly...@compudent.net

unread,
Sep 19, 2016, 10:18:47 AM9/19/16
to aptly-discuss
Hello,
we use aptly as packet repository for ubuntu and debian. It works fine and we don't have to use external sources. But it fails, if I want to use it as netinstall mirror with preeseed file.
Here some informations:
aptly version: 0.9.7
commands to build mirror, snapshots and publish

 
aptly mirror create -architectures=amd64 wheezy-non-free http://ftp.de.debian.org/debian/ wheezy non-free
aptly mirror create -architectures=amd64 wheezy-contrib http://ftp.de.debian.org/debian/ wheezy contrib
aptly mirror create -architectures=amd64 wheezy-main http://ftp.de.debian.org/debian/ wheezy main

aptly mirror update wheezy-non-free
aptly mirror update wheezy-contrib
aptly mirror update wheezy-main

aptly snapshot create wheezy-non-free from mirror wheezy-non-free
aptly snapshot create wheezy-contrib from mirror wheezy-contrib
aptly snapshot create wheezy-main from mirror wheezy-main

aptly snapshot merge wheezy wheezy-main wheezy-contrib wheezy-non-free

aptly publish snapshot -distribution=wheezy wheezy wheezy

I use the preseed install with follow commands:

d-i mirror/country string manual
d-i mirror/http/hostname string aptlyserverFQDN
d-i mirror/http/directory string /wheezy
d-i mirror/http/proxy string 
#d-i mirror/udeb/components /main
d-i mirror/suite string wheezy
d-i mirror/udeb/suite string wheezy
d-i apt-setup/security_host string aptlyserverFQDN


the wheezy install console display a Error:
"Download installer components"
"Downloading a file failed:"
"Retry, Change mirror, cancel"


nginx Log at the aptly server:
10.0.69.115 - - [19/Sep/2016:13:43:34 +0200] "GET /wheezy/dists/oldstable/Release HTTP/1.1" 404 178 "-" "Wget"
10.0.69.115 - - [19/Sep/2016:13:43:34 +0200] "GET /wheezy/dists/stable/Release HTTP/1.1" 404 178 "-" "Wget"
10.0.69.115 - - [19/Sep/2016:13:43:34 +0200] "GET /wheezy/dists/testing/Release HTTP/1.1" 404 178 "-" "Wget"
10.0.69.115 - - [19/Sep/2016:13:43:34 +0200] "GET /wheezy/dists/unstable/Release HTTP/1.1" 404 178 "-" "Wget"
10.0.69.115 - - [19/Sep/2016:13:43:34 +0200] "GET /wheezy/dists/wheezy/Release HTTP/1.1" 200 2298 "-" "Wget"
10.0.69.115 - - [19/Sep/2016:13:43:34 +0200] "GET /wheezy/dists/wheezy/main/binary-amd64/Release HTTP/1.1" 200 95 "-" "Wget"
10.0.69.115 - - [19/Sep/2016:13:43:34 +0200] "GET /wheezy/dists/wheezy/Release HTTP/1.1" 200 2298 "-" "Wget"
10.0.69.115 - - [19/Sep/2016:13:43:34 +0200] "GET /wheezy/dists/wheezy/Release.gpg HTTP/1.1" 200 473 "-" "Wget"

Does anyone have a hint? 
Best regards
Christoph
Unbenannt.JPG
Unbenannt.JPG

ari...@gmail.com

unread,
Sep 19, 2016, 10:46:10 AM9/19/16
to aptly-discuss
I found out the hard way that some things are hardcoded in the netinstall, you might try more conventional prefix /ubuntu/ instead of /wheezy/ and keep chenges as minimal as possible ;)
For example using

d-i mirror/suite string trusty-stable
d-i mirror/udeb/suite string trusty-stable

instead of the conventional trusty resulted in similar problems until we added

d-i partman/early_command cp /usr/share/debootstrap/scripts/trusty /usr/share/debootstrap/scripts/trusty-stable
Reply all
Reply to author
Forward
0 new messages