<div dir="ltr">I've been trying to use build-simple-cdd to build a custom platform image using stretch. I'm basing this on a github repo for building a custom image for an SBC:<div><a href="https://github.com/ssinyagin/pcengines-apu-debian-cd">https://github.com/ssinyagin/pcengines-apu-debian-cd</a></div><div><br></div><div>I'm building with the following command:</div><div><br></div><div>build-simple-cdd --conf profiles/apu64.conf --dist stretch --force-root<br></div><div><br></div><div>The problem that occurs is that the build fails to find a package from the mirror (task-desktop) and the result is that the default_desktop variable is unset:<br></div><div><br></div><div>runcmd: /home/odhinn/development/pcengines-apu-debian-cd/tmp/log/build-debian-cd<br></div><div><div> stdout: Missing package file for amd64/non-free.</div><div> stdout: simple-cdd: Running debian-cd makefile</div><div> stdout: Cleaning the build directory</div><div> stdout: Updating task files...</div><div> stdout: - copying task files from 'tasks/stretch/'</div><div> stdout: - generating dynamic task files</div><div> stderr: which_deb: can't find binary file(s) for task-desktop in stretch</div><div> stderr: dpkg-deb: error: error reading archive magic version number from file /home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror/: Is a          directory</div><div> stdout: update_tasks: Using "" as the default desktop, as specified by</div><div> stderr: Use of uninitialized value $default_desktop in concatenation (.) or string at /home/odhinn/development/pcengines-apu-debian-cd/tmp/debian-cd/     tools/update_tasks line 66.</div><div> stderr: Use of uninitialized value $default_desktop in concatenation (.) or string at /home/odhinn/development/pcengines-apu-debian-cd/tmp/debian-cd/     tools/update_tasks line 150.</div><div> stderr: Use of uninitialized value $default_desktop in concatenation (.) or string at /home/odhinn/development/pcengines-apu-debian-cd/tmp/debian-cd/     tools/update_tasks line 180.</div><div> stderr: Use of uninitialized value $default_desktop in regexp compilation at /home/odhinn/development/pcengines-apu-debian-cd/tmp/debian-cd/tools/        update_tasks line 239.</div><div> stderr: Use of uninitialized value $default_desktop in regexp compilation at /home/odhinn/development/pcengines-apu-debian-cd/tmp/debian-cd/tools/        update_tasks line 239.</div></div><div>...</div><div><br></div><div><br></div><div>The errors above are repeated for several hundred lines. The tail end of the log:</div><div><br></div><div> stdout: Missing package file for amd64/non-free.<br></div><div><div> stdout: Generating a fake status file for apt-get and apt-cache...</div><div> stdout: :> /home/odhinn/development/pcengines-apu-debian-cd/tmp/cd-build/apt/status</div><div> stdout: # Set up keyring so apt doesn't complain</div><div> stdout: Setting up archive-keyring</div><div> stdout: # Updating the apt database</div><div> stdout: Get:1 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch InRelease</div><div> stdout: Ign:1 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch InRelease</div><div> stdout: Get:2 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch Release [2,244 B]</div><div> stdout: Get:2 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch Release [2,244 B]</div><div> stdout: Get:3 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch Release.gpg</div><div> stdout: Ign:3 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch Release.gpg</div><div> stdout: Get:4 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch/main amd64 Packages [128 kB]</div><div> stdout: Get:5 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch/non-free amd64 Packages [6,213 B]</div><div> stdout: Get:6 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch/main/debian-installer amd64 Packages [79.7 kB]</div><div> stdout: Reading package lists...</div><div> stderr: W: The repository 'file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch Release' is not signed.</div><div> stdout: # If we're doing a build using d-i from sid, we'll need sid sources too</div><div> stdout: if [ ""x = "yes"x ] && \</div><div> stdout:     [ "stretch"x != ""x ] && \</div><div> stdout:     [ "stretch"x != "stretch"x ] ; then \</div><div> stdout:     mkdir -p /home/odhinn/development/pcengines-apu-debian-cd/tmp/cd-build/apt/stretch-source/apt/preferences.d ; \</div><div> stdout:     :> /home/odhinn/development/pcengines-apu-debian-cd/tmp/cd-build/apt/stretch-source/status ; \</div><div> stdout:     export CODENAME=stretch; \</div><div> stdout:     export ARCH=source; \</div><div> stdout:     /home/odhinn/development/pcengines-apu-debian-cd/tmp/debian-cd/tools/apt-selection update; \</div><div> stdout:     if [ "$BACKPORTS"x != ""x ] ; then \</div><div> stdout:         USE_BP=1 /home/odhinn/development/pcengines-apu-debian-cd/tmp/debian-cd/tools/apt-selection update; \</div><div> stdout:     fi; \</div><div> stdout: fi</div><div> stdout: Reading package lists...</div><div> stdout: Building dependency tree...</div><div> stdout: Apt-get is updating its files ...</div><div> stdout: Get:1 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch InRelease</div><div> stdout: Ign:1 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch InRelease</div><div> stdout: Get:2 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch Release [2,244 B]</div><div> stdout: Get:2 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch Release [2,244 B]</div><div> stdout: Get:3 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch Release.gpg</div><div> stdout: Ign:3 file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch Release.gpg</div><div> stdout: Reading package lists...</div><div> stderr: W: The repository 'file:/home/odhinn/development/pcengines-apu-debian-cd/tmp/mirror stretch Release' is not signed.</div><div> stdout: Generating the complete list of packages to be included in /home/odhinn/development/pcengines-apu-debian-cd/tmp/cd-build/stretch/list...</div></div><div><div>stdout: /home/odhinn/development/pcengines-apu-debian-cd/tmp/debian-cd/tools/check_backports_packages /home/odhinn/development/pcengines-apu-debian-cd/   tmp/cd-build/stretch/list /home/odhinn/development/pcengines-apu-debian-cd/tmp/cd-build/stretch/list.backports</div><div> stdout: if [ -f /home/odhinn/development/pcengines-apu-debian-cd/tmp/cd-build/stretch/list.backports ]; then mv /home/odhinn/development/pcengines-apu-   debian-cd/tmp/cd-build/stretch/list.backports /home/odhinn/development/pcengines-apu-debian-cd/tmp/cd-build/stretch/list; fi</div><div> stdout: Running sort_deps to sort packages for amd64:</div><div> stdout:   Generating dependency tree with apt-cache depends...</div><div> stdout:   Adding standard, required, important and base packages first</div><div> stdout:   S/R/I/B packages take 0 bytes</div><div> stdout:   Adding the rest of the requested packages</div><div> stdout:   Now up to 173067532 bytes</div><div> stdout: Done: processed/sorted 485 packages, total size 173067532 bytes.</div><div> stderr: Can't exec "xorriso": No such file or directory at /home/odhinn/development/pcengines-apu-debian-cd/tmp/debian-cd/tools/<a href="http://make_disc_trees.pl">make_disc_trees.pl</a> line   95.</div><div> stderr: Use of uninitialized value $mkisofs_version in concatenation (.) or string at /home/odhinn/development/pcengines-apu-debian-cd/tmp/debian-cd/     tools/<a href="http://make_disc_trees.pl">make_disc_trees.pl</a> line 96.</div><div> stderr: Use of uninitialized value $mkisofs_version in concatenation (.) or string at /home/odhinn/development/pcengines-apu-debian-cd/tmp/debian-cd/     tools/<a href="http://make_disc_trees.pl">make_disc_trees.pl</a> line 97.</div><div> stdout: xorriso -version says:</div><div> stdout:</div><div> stdout: Reading in package information for amd64:</div><div> stdout:   Done: Read details of 485 packages for amd64</div><div> stdout: WARNING: no translated descriptions found for stretch/main</div><div> stdout: WARNING: no translated descriptions found for stretch/non-free</div><div> stdout: Starting to lay out packages into images:</div><div> stdout:   Adding the required directories</div><div> stdout:   Generating the image label and volume id</div><div> stdout:   Adding .disk/base_components</div><div> stdout:   Adding .disk/cd_type</div><div> stdout:   Adding udeb/base includes/excludes</div><div> stdout: WARNING: Unable to read UDEB_EXCLUDE file /home/odhinn/development/pcengines-apu-debian-cd/tmp/debian-cd/data/stretch/amd64_netinst_udeb_exclude</div><div> stdout:   Adding docs to CD1</div><div> stdout:   Extracting FAQ on CD1</div><div> stderr: mkdir: cannot create directory '/home/odhinn/development/pcengines-apu-debian-cd/tmp/cd-build/stretch/CD1/doc/FAQ/html': No such file or          directory</div><div> stderr:     Failed to start disc 1, error 256</div><div> stdout: Makefile:465: recipe for target 'image-trees' failed</div><div> stderr: make: *** [image-trees] Error 1</div><div> retval: 2</div></div><div><br></div><div>Relevant portion of the preseed file:</div><div><br></div><div> d-i mirror/protocol string http<br></div><div><div> d-i mirror/country string manual</div><div> d-i mirror/http/hostname string <a href="http://httpredir.debian.org">httpredir.debian.org</a></div><div> d-i mirror/http/directory string /debian</div><div> d-i mirror/http/proxy string</div><div> d-i mirror/suite string stretch</div><div> d-i mirror/udeb/suite string stretch</div><div> </div><div> tasksel tasksel/first multiselect ssh-server</div><div> d-i pkgsel/upgrade select none</div></div><div><br></div><div><br></div><div>I have tried using 'testing' instead of stretch, defining a desktop environment in the preseed file, etc.</div><div><br></div><div>Doing an apt-cache search for task-desktop reveals that it is available, but not where it is located on the mirror.</div><div><br></div><div>The VM (host) is a Debian stretch instance:<div><br></div><div>Linux qs-stretch 4.9.0-2-amd64 #1 SMP Debian 4.9.18-1 (2017-03-30) x86_64 GNU/Linux<br></div><div><div>...</div><div><div>Distributor ID:<span class="gmail-Apple-tab-span" style="white-space:pre">  </span>Debian</div><div>Description:<span class="gmail-Apple-tab-span" style="white-space:pre">     </span>Debian GNU/Linux 9.0 (stretch)</div><div>Release:<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>9.0</div><div>Codename:<span class="gmail-Apple-tab-span" style="white-space:pre">   </span>stretch</div></div><div><br></div><div>Any recommendations? I'm sure this hasn't been fully tested considering the state of stretch.</div><div><br></div></div></div><div><div>-- <br><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span style="color:rgb(0,0,0);font-family:helvetica;font-size:14px">Scott Wohler</span></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div></div></div></div></div>
</div></div></div>