Hi $LIST,

I am using live-build 1:20210407 (output of dpkg -l live-build) on Debian Bullseye (oldstable).

I have previously added individual files using the includes.chroot folder. This has always worked fine.

Now I am trying to add *.deb packages using the procedure described in
<https://live-team.pages.debian.net/live-manual/html/live-manual/customizing-package-installation.en.html>, section

"8.3.1 Using packages.chroot to install custom packages"

So I created that directory and copied the *.deb files there.

I am trying to install four files. Three of them - the dependencies - are stock *.deb files - official Debian packages, no 3rd Party Repo - from an existing Debian install, it's just that the repository won't be available during build time. The fourth one is based on an official Debian package (and carries the same file name), with one minor tweak to its conffile.

However, the packages are not being installed.

Instead, I am getting:

<snip>
dpkg-divert: warning: diverting file '/bin/hostname' from an Essential package with rename is dangerous, use --no-rename
[2024-01-29 00:12:57] lb chroot_apt install
P: Configuring file /etc/apt/apt.conf
[2024-01-29 00:12:57] lb chroot_archives chroot install
P: Configuring file /etc/apt/sources.list
Get:1 file:/root/packages ./ InRelease
Ign:1 file:/root/packages ./ InRelease
Get:2 file:/root/packages ./ Release [1235 B]
Get:2 file:/root/packages ./ Release [1235 B]
Get:3 file:/root/packages ./ Release.gpg
Ign:3 file:/root/packages ./ Release.gpg
Get:4 file:/root/packages ./ Packages [2270 B]
Err:4 file:/root/packages ./ Packages
Could not open file /root/packages/./Packages - open (13: Permission denied)
Get:4 file:/root/packages ./ Packages [6607 B]
<snip>

After the lb build run (which fails), I can see that live-build must have copied the files to chroot/root/packages and seems to have created Packages, Packages.gz and Release files for them.

File permissions are 644 for the debs, and 755 for the directory - both for the one I created in config as well as the one created by live-build under chroot/root. All files are owned by root and I am trying to build as root. So I'm at loss regarding the "Permission denied".

I'm probably missing something obvious.

Would anybody care to please gently nudge me into the right direction?

Kind Regards,
Stefan Baur

Reply via email to