Le 2025-06-23 20:21, Jochen Sprickerhof a écrit :
* picca <[email protected]> [2025-06-23 15:59]:
for now my issue is the --no-apt-update command line which make the build fail with something like this

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
Solving dependencies...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
sbuild-build-depends-main-dummy : Depends: debhelper-compat (= 13) but it is not installable Depends: dh-python but it is not installable Depends: dh-sequence-gir but it is not installable Depends: dh-sequence-python3 but it is not installable Depends: dh-sequence-sphinxdoc but it is not installable Depends: asciidoc but it is not installable Depends: bash-completion but it is not installable Depends: cmake but it is not installable Depends: gobject-introspection but it is not installable Depends: gtk-doc-tools but it is not installable Depends: libgirepository1.0-dev but it is not installable Depends: libglib2.0-dev but it is not installable Depends: libjson-glib-dev but it is not installable Depends: libzmq3-dev but it is not installable Depends: ocl-icd-opencl-dev but it is not installable Depends: python3-dev but it is not installable Depends: python3-sphinx but it is not installable Depends: python3-sphinx-rtd-theme but it is not installable Depends: python3-sphinxcontrib.bibtex but it is not installable
E: Unable to correct problems, you have held broken packages.
E: The following information from --solver 3.0 may provide additional context:
  Unable to satisfy dependencies. Reached two conflicting decisions:
1. sbuild-build-depends-main-dummy:amd64=0.invalid.0 is selected for install 2. sbuild-build-depends-main-dummy:amd64 Depends debhelper-compat (= 13)
     but none of the choices are installable:
     [no choices]
apt-get failed.
E: Package installation failed
Not removing build depends: cloned chroot in use


It is like no apt repository is configured when using --no-apt-update

You could try debugging that with sbuild --build-deps-failed-commands %s (or some of the other hooks).

Ok, I enter now the 'chroot' and see via debug the command. So it seems that a simple apt-get install is failling because it can not find packages.

Installing build dependencies
I: env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games USER=root LOGNAME=root /usr/libexec/sbuild-usernsexec --pivotroot --nosetsid u:0:100000:65536
 g:0:100000:65536
/tmp/tmp.sbuild.b7pDZaozHI root / /dev/shm /sharedshm -- apt-get --purge -o DPkg::Options::=--force-confold -o DPkg::Options::=--refuse-remove-essential -o APT::Install-Recommends=false -o Dpkg::Use-Pty=false -q -yf install sbuild-build-depends-main-dummy D: Running command: env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games USER=root LOGNAME=root /usr/libexec/sbuild-usernsexec --pivotroot --nosetsid u:0:100000:65536
 g:0:100000:65536
/tmp/tmp.sbuild.b7pDZaozHI root / /dev/shm /sharedshm -- apt-get --purge -o DPkg::Options::=--force-confold -o DPkg::Options::=--refuse-remove-essential -o APT::Install-Recommends=false -o Dpkg::Use-Pty=false -q -yf install sbuild-build-depends-main-dummy
Reading package lists...
Building dependency tree...
Reading state information...
Solving dependencies...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
sbuild-build-depends-main-dummy : Depends: debhelper-compat (= 13) but it is not installable Depends: dh-python but it is not installable Depends: dh-sequence-gir but it is not installable Depends: dh-sequence-python3 but it is not installable Depends: dh-sequence-sphinxdoc but it is not installable Depends: asciidoc but it is not installable Depends: bash-completion but it is not installable Depends: cmake but it is not installable Depends: gobject-introspection but it is not installable Depends: gtk-doc-tools but it is not installable Depends: libgirepository1.0-dev but it is not installable Depends: libglib2.0-dev but it is not installable Depends: libjson-glib-dev but it is not installable Depends: libzmq3-dev but it is not installable Depends: ocl-icd-opencl-dev but it is not installable Depends: python3-dev but it is not installable Depends: python3-sphinx but it is not installable Depends: python3-sphinx-rtd-theme but it is not installable Depends: python3-sphinxcontrib.bibtex but it is not installable
E: Unable to correct problems, you have held broken packages.
E: The following information from --solver 3.0 may provide additional context:
   Unable to satisfy dependencies. Reached two conflicting decisions:
1. sbuild-build-depends-main-dummy:amd64=0.invalid.0 is selected for install 2. sbuild-build-depends-main-dummy:amd64 Depends debhelper-compat (= 13)
      but none of the choices are installable:
      [no choices]
apt-get failed.


the apt policy gives

# apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
500 copy:/build/reproducible-path/resolver-yH1G8H/apt_archive ./ Packages release o=sbuild-build-depends-archive,a=invalid-sbuild-suite,n=invalid-sbuild-codename,l=sbuild-build-depends-archive,c=
Pinned packages:

# ls -l /var/lib/dpkg/status
-rw-r--r-- 1 root root 114816 Jun 23 14:28 /var/lib/dpkg/status

# cat /etc/apt/sources.list
deb http://deb.debian.org/debian unstable main

to compare with the host

$ apt policy
Fichiers du paquet :
 100 /var/lib/dpkg/status
     release a=now
500 http://security.debian.org/debian-security trixie-security/main amd64 Packages release o=Debian,a=testing-security,n=trixie-security,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
500 http://deb.debian.org/debian trixie/non-free-firmware amd64 Packages release o=Debian,a=testing,n=trixie,l=Debian,c=non-free-firmware,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian trixie/non-free amd64 Packages
     release o=Debian,a=testing,n=trixie,l=Debian,c=non-free,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian trixie/contrib amd64 Packages
     release o=Debian,a=testing,n=trixie,l=Debian,c=contrib,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian trixie/main amd64 Packages
     release o=Debian,a=testing,n=trixie,l=Debian,c=main,b=amd64
     origin deb.debian.org
Paquets épinglés :


$ ls -l /var/lib/dpkg/status
-rw-r--r-- 1 root root 8208591 24 juin  14:20 /var/lib/dpkg/status


What is the purpose of --no-apt-update ?

Fred

Reply via email to