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