Fritz Reichwald <reichw...@b1-systems.de> writes: > Hi Phil H. > >> $ gbp buildpackage --git-pbuilder >> gbp:info: Building with (cowbuilder) for sid >> gbp:info: Performing the build >> Base directory /var/cache/pbuilder/base.cow does not exist >> gbp:error: 'git-pbuilder' failed: it exited with 1 > > maybe try to initialize the cowbuilder base image before using it as stated > here: > <https://wiki.debian.org/cowbuilder#Initialization>
Aha; an easy solution! sudo cowbuilder --create I wonder why the error message didn't mention this if it's so simple? Well, unfortunately it doesn't actually work, and yet again neither the error message nor the documentation give any hint as to how to clear out the bad state or fix the root cause. (sensing a trend here!) [...] I: Validating usr-is-merged 39 I: Validating util-linux 2.40.2-7 I: Validating xz-utils 5.6.2-2 I: Validating zlib1g 1:1.3.dfsg+really1.3.1-1 I: Chosen extractor for .deb packages: dpkg-deb I: Extracting apt... E: Tried to extract package, but file already exists. Exit... E: debootstrap failed E: Tail of debootstrap.log: tar: ./usr/share/man/man8/apt-key.8.gz: Cannot open: File exists tar: ./usr/share/man/man8/apt-mark.8.gz: Cannot open: File exists tar: ./usr/share/man/man8/apt-secure.8.gz: Cannot open: File exists tar: ./usr/share/man/man8/apt.8.gz: Cannot open: File exists tar: ./usr/share/man/nl/man1/apt-transport-http.1.gz: Cannot open: File exists tar: ./usr/share/man/nl/man1/apt-transport-https.1.gz: Cannot open: File exists tar: ./usr/share/man/nl/man1/apt-transport-mirror.1.gz: Cannot open: File exists tar: ./usr/share/man/nl/man5/apt.conf.5.gz: Cannot open: File exists tar: ./usr/share/man/nl/man5/apt_auth.conf.5.gz: Cannot open: File exists tar: ./usr/share/man/nl/man5/apt_preferences.5.gz: Cannot open: File exists tar: ./usr/share/man/nl/man5/sources.list.5.gz: Cannot open: File exists tar: ./usr/share/man/nl/man7/apt-patterns.7.gz: Cannot open: File exists tar: ./usr/share/man/nl/man8/apt-cache.8.gz: Cannot open: File exists tar: ./usr/share/man/nl/man8/apt-cdrom.8.gz: Cannot open: File exists tar: ./usr/share/man/nl/man8/apt-config.8.gz: Cannot open: File exists tar: ./usr/share/man/nl/man8/apt-get.8.gz: Cannot open: File exists tar: ./usr/share/man/nl/man8/apt-key.8.gz: Cannot open: File exists tar: ./usr/share/man/nl/man8/apt-mark.8.gz: Cannot open: File exists tar: ./usr/share/man/nl/man8/apt-secure.8.gz: Cannot open: File exists tar: ./usr/share/man/nl/man8/apt.8.gz: Cannot open: File exists tar: ./usr/share/man/pl/man5/apt_preferences.5.gz: Cannot open: File exists tar: ./usr/share/man/pl/man8/apt-cache.8.gz: Cannot open: File exists tar: ./usr/share/man/pl/man8/apt-cdrom.8.gz: Cannot open: File exists tar: ./usr/share/man/pl/man8/apt-config.8.gz: Cannot open: File exists tar: ./usr/share/man/pt/man1/apt-transport-http.1.gz: Cannot open: File exists tar: ./usr/share/man/pt/man1/apt-transport-https.1.gz: Cannot open: File exists tar: ./usr/share/man/pt/man1/apt-transport-mirror.1.gz: Cannot open: File exists tar: ./usr/share/man/pt/man5/apt.conf.5.gz: Cannot open: File exists tar: ./usr/share/man/pt/man5/apt_auth.conf.5.gz: Cannot open: File exists tar: ./usr/share/man/pt/man5/apt_preferences.5.gz: Cannot open: File exists tar: ./usr/share/man/pt/man5/sources.list.5.gz: Cannot open: File exists tar: ./usr/share/man/pt/man7/apt-patterns.7.gz: Cannot open: File exists tar: ./usr/share/man/pt/man8/apt-cache.8.gz: Cannot open: File exists tar: ./usr/share/man/pt/man8/apt-cdrom.8.gz: Cannot open: File exists tar: ./usr/share/man/pt/man8/apt-config.8.gz: Cannot open: File exists tar: ./usr/share/man/pt/man8/apt-get.8.gz: Cannot open: File exists tar: ./usr/share/man/pt/man8/apt-key.8.gz: Cannot open: File exists tar: ./usr/share/man/pt/man8/apt-mark.8.gz: Cannot open: File exists tar: ./usr/share/man/pt/man8/apt-secure.8.gz: Cannot open: File exists tar: ./usr/share/man/pt/man8/apt.8.gz: Cannot open: File exists tar: ./usr/lib/apt/methods/https: Cannot create symlink to 'http': File exists tar: ./usr/lib/apt/methods/mirror+copy: Cannot create symlink to 'mirror': File exists tar: ./usr/lib/apt/methods/mirror+file: Cannot create symlink to 'mirror': File exists tar: ./usr/lib/apt/methods/mirror+ftp: Cannot create symlink to 'mirror': File exists tar: ./usr/lib/apt/methods/mirror+http: Cannot create symlink to 'mirror': File exists tar: ./usr/lib/apt/methods/mirror+https: Cannot create symlink to 'mirror': File exists tar: ./usr/lib/apt/methods/ssh: Cannot create symlink to 'rsh': File exists tar: ./usr/lib/apt/planners/dump: Cannot open: File exists tar: ./usr/lib/x86_64-linux-gnu/libapt-private.so.0.0: Cannot create symlink to 'libapt-private.so.0.0.0': File exists tar: Exiting with failure status due to previous errors E: End of debootstrap.log W: Aborting with an error E: pbuilder create failed I: forking: rm -rf /var/cache/pbuilder/base.cow Oddly this one does succeed: sudo pbuilder create [...] Setting up aptitude (0.8.13-6.1) ... update-alternatives: using /usr/bin/aptitude-curses to provide /usr/bin/aptitude (aptitude) in auto mode Processing triggers for libc-bin (2.40-2) ... I: Copying back the cached apt archive contents I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: creating base tarball [/var/cache/pbuilder/base.tgz] I: cleaning the build env I: removing directory /var/cache/pbuilder/build/1060423 and its subdirectories However, that doesn't actually help when trying to use pbuilder with gbp as gbp continues to look for the "base.cow" file instead of the base.tgz file that pbuilder actually created. Ah well. $ gbp buildpackage --git-pbuilder gbp:info: Building with (cowbuilder) for sid gbp:info: Performing the build Base directory /var/cache/pbuilder/base.cow does not exist gbp:error: 'git-pbuilder' failed: it exited with 1 I'd be happy to take any suggestions. thanks, Phil
signature.asc
Description: PGP signature