Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debian build fails: error 25 #4327

Closed
tasket opened this issue Sep 20, 2018 · 0 comments
Closed

debian build fails: error 25 #4327

tasket opened this issue Sep 20, 2018 · 0 comments
Labels
C: builder Qubes Builder C: Debian/Ubuntu T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.

Comments

@tasket
Copy link

tasket commented Sep 20, 2018

Qubes OS version:

R4.0

Affected component(s):

qubes-builder


Steps to reproduce the behavior:

cd qubes-builder
./setup
make install-deps
make get-sources
make qubes-vm

Expected behavior:

Build for templates completes.

Actual behavior:

Build stops with error:

 DEBUG 
 Repo Variables
───────────────────────────────────────────────────────────────────────────────
 SRC_DIR:             qubes-src
 CHROOT_DIR:          /home/user/qubes-builder/chroot-stretch
 CHROOT_REPO_DIR:     chroot-debian
 CHROOT_DEBIAN_DIR:   /home/user/qubes-builder/chroot-stretch//debian
 BUILDER_REPO_DIR:    /home/user/qubes-builder/qubes-packages-mirror-repo/stretch
───────────────────────────────────────────────────────────────────────────────
 Chroot Variables
───────────────────────────────────────────────────────────────────────────────
 DIST_BUILD_DIR:      /home/user
 DIST_SRC:            
 DIST_SRC_DEBIAN_DIR: /debian
───────────────────────────────────────────────────────────────────────────────
 Build Variables
───────────────────────────────────────────────────────────────────────────────
 DEBIAN_PARSER:       /home/user/qubes-builder/qubes-src/builder-debian//scripts/debian-parser
 DEBIAN_PLUGIN_DIR:   /home/user/qubes-builder/qubes-src/builder-debian/
 OUTPUT_DIR:          pkgs/stretch
 PACKAGE_LIST:        debian
 DISTRIBUTION:        debian
 DIST:                stretch
 DEBIANVERSION:       stretch
 UPDATE_REPO:         
 REPO_SUFFIX:         
 DISTRIBUTION_CAP:    Debian
 REPO_PROXY:          
 APT_GET_OPTIONS:     
 CHROOT_ENV:          BACKEND_VMM=xen 

mkdir -p /home/user/qubes-builder/chroot-stretch/home/user/qubes-src/meta-packages
/home/user/qubes-builder/scripts/create-archive /home/user/qubes-builder/chroot-stretch/home/user/qubes-src/meta-packages ../qubes-meta-packages_4.0.3.orig.tar.gz qubes-meta-packages-4.0.3/
~/qubes-builder/chroot-stretch/home/user/qubes-src/meta-packages ~/qubes-builder
~/qubes-builder
-> Building meta-packages (debian) for stretch vm (logfile: build-logs/meta-packages-vm-stretch.log)
--> build failed!
 CHROOT_ENV:          BACKEND_VMM=xen 

/home/user/qubes-builder/qubes-src/builder-debian//update-local-repo.sh stretch
dpkg-scanpackages: info: Wrote 76 entries to output Packages file.
sudo chroot /home/user/qubes-builder/chroot-stretch apt-get  update
Get:1 file:/tmp/qubes-deb stretch InRelease
Ign:1 file:/tmp/qubes-deb stretch InRelease
Get:2 file:/tmp/qubes-deb stretch Release [342 B]
Get:2 file:/tmp/qubes-deb stretch Release [342 B]
Get:3 file:/tmp/qubes-deb stretch Release.gpg
Ign:3 file:/tmp/qubes-deb stretch Release.gpg
Get:4 file:/tmp/qubes-deb stretch/main amd64 Packages [15.2 kB]
Ign:5 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:6 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists...
# check for CVE-2016-1252 - directly after debootstrap, still vulnerable
# apt is installed
wc -L "/home/user/qubes-builder/chroot-stretch/var/lib/apt/lists/"*InRelease | awk '$1 > 1024 {print; exit 1}'
wc: '/home/user/qubes-builder/chroot-stretch/var/lib/apt/lists/*InRelease': No such file or directory
# update the base system inside
sudo chroot /home/user/qubes-builder/chroot-stretch apt-get  dist-upgrade -y
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# install build dependencies
LC_ALL=C sudo chroot /home/user/qubes-builder/chroot-stretch mk-build-deps -i -r -t "apt-get  --no-install-recommends -y" /home/user/qubes-src/meta-packages/debian/control
mk-build-deps: Unable to find build-deps for qubes-meta-packages
make[2]: *** [/home/user/qubes-builder/qubes-src/builder-debian/Makefile.debian:181: dist-build-dep] Error 25
make[1]: *** [Makefile.generic:177: packages] Error 1
make: *** [Makefile:217: meta-packages-vm] Error 1

General notes:


Related issues:

@andrewdavidwong andrewdavidwong added T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists. C: builder Qubes Builder C: Debian/Ubuntu labels Sep 21, 2018
@andrewdavidwong andrewdavidwong added this to the Release 4.0 updates milestone Sep 21, 2018
@tasket tasket closed this as completed Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: builder Qubes Builder C: Debian/Ubuntu T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Projects
None yet
Development

No branches or pull requests

2 participants