[Pkg-rust-maintainers] Bug#1124769: Bug#1124769: rustc: FTBFS rustc in Debian Bookworm because of conflict in build deps

Fabian Grünbichler debian at fabian.gruenbichler.email
Tue Jan 6 16:36:08 GMT 2026


Control: tag -1 +moreinfo

On Tue, Jan 6, 2026, at 4:20 PM, Сергей Семин wrote:
> Just for clarity, full contents of file 
> /etc/apt/sources.list.d/debian.sources in example above:
> ```
> root at 9925b7386ff9:/# cat /etc/apt/sources.list.d/debian.sources
> Types: deb deb-src
> # http://snapshot.debian.org/archive/debian/20251229T000000Z
> URIs: http://deb.debian.org/debian
> Suites: bookworm bookworm-updates
> Components: main
> Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
> 
> Types: deb deb-src
> # http://snapshot.debian.org/archive/debian-security/20251229T000000Z
> URIs: http://deb.debian.org/debian-security
> Suites: bookworm-security
> Components: main
> Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
> root at 9925b7386ff9:/#
> ```

that sounds like your repository setup is incomplete? did you maybe forget to also add the corresponding main bookworm repository?

the following works just fine for me (didn't test a full build, just the initial build-dep setup):

$ sbuild -d bookworm rustc

[..]

+------------------------------------------------------------------------------+
| Fetch source files                           Tue, 06 Jan 2026 16:32:10 +0000 |
+------------------------------------------------------------------------------+


Check APT
---------

There are no deb-src lines in your sources.list
Automatically adding to EXTRA_REPOSITORIES: deb-src http://deb.debian.org/debian/ bookworm main
Automatically adding to EXTRA_REPOSITORIES: deb-src http://deb.debian.org/debian/ bookworm-updates main
Automatically adding to EXTRA_REPOSITORIES: deb-src http://security.debian.org/debian-security/ bookworm-security main

+------------------------------------------------------------------------------+
| Update chroot                                Tue, 06 Jan 2026 16:32:10 +0000 |
+------------------------------------------------------------------------------+

Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Get:4 http://deb.debian.org/debian bookworm/main Sources [9494 kB]
Get:5 http://security.debian.org/debian-security bookworm-security/main Sources [196 kB]
Get:6 http://deb.debian.org/debian bookworm-updates/main Sources [3288 B]
Fetched 9693 kB in 2s (5163 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Checking available source versions...

Download source files with APT
------------------------------

Reading package lists...
NOTICE: 'rustc' packaging is maintained in the 'Git' version control system at:
https://salsa.debian.org/rust-team/rust.git
Please use:
git clone https://salsa.debian.org/rust-team/rust.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 32.6 MB of source archives.
Get:1 http://deb.debian.org/debian bookworm/main rustc 1.63.0+dfsg1-2 (dsc) [3535 B]
Get:2 http://deb.debian.org/debian bookworm/main rustc 1.63.0+dfsg1-2 (tar) [32.5 MB]
Get:3 http://deb.debian.org/debian bookworm/main rustc 1.63.0+dfsg1-2 (diff) [92.2 kB]
Fetched 32.6 MB in 3s (11.4 MB/s)
Download complete and in download only mode

+------------------------------------------------------------------------------+
| Install package build dependencies           Tue, 06 Jan 2026 16:32:16 +0000 |
+------------------------------------------------------------------------------+

[..]

 main build dependencies (apt-based resolver)
----------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  autoconf automake autopoint autotools-dev binutils-mingw-w64-x86-64
  bsdextrautils cargo clang-14 cmake cmake-data debhelper dh-autoreconf
  dh-strip-nondeterminism dwz file gcc-mingw-w64-base
  gcc-mingw-w64-x86-64-posix gcc-mingw-w64-x86-64-posix-runtime gdb gettext
  gettext-base git git-man groff-base icu-devtools intltool-debian
  libarchive-zip-perl libarchive13 libbabeltrace1 libboost-regex1.74.0
  libbrotli1 libbsd0 libclang-common-14-dev libclang-cpp14 libclang1-14
  libcurl3-gnutls libcurl3-nss libcurl4 libdebhelper-perl libdebuginfod-common
  libdebuginfod1 libdw1 libedit2 libelf1 liberror-perl libexpat1 libffi-dev
  libfile-stripnondeterminism-perl libgc1 libgit2-1.5 libglib2.0-0
  libhttp-parser2.9 libicu-dev libicu72 libipt2 libjsoncpp25 libldap-2.5-0
  libllvm14 liblzma-dev libmagic-mgc libmagic1 libmbedcrypto7 libmbedtls14
  libmbedx509-1 libncurses-dev libncurses6 libncursesw6 libnghttp2-14 libnspr4
  libnss3 libobjc-12-dev libobjc4 libpfm4 libpipeline1 libpkgconf3 libproc2-0
  libpsl5 libpython3-stdlib libpython3.11 libpython3.11-minimal
  libpython3.11-stdlib libreadline8 librhash0 librtmp1 libsasl2-2
  libsasl2-modules-db libsource-highlight-common libsource-highlight4v5
  libsqlite3-0 libssh2-1 libstd-rust-1.63 libstd-rust-dev libsub-override-perl
  libtinfo-dev libtool libuchardet0 libuv1 libxml2 libxml2-dev libyaml-0-2
  libz3-4 libz3-dev llvm-14 llvm-14-dev llvm-14-linker-tools llvm-14-runtime
  llvm-14-tools m4 man-db media-types mingw-w64-common mingw-w64-x86-64-dev
  nss-plugin-pem pkg-config pkgconf pkgconf-bin po-debconf procps python3
  python3-minimal python3-pkg-resources python3-pygments python3-yaml
  python3.11 python3.11-minimal readline-common rustc sensible-utils ucf
  wasi-libc zlib1g-dev
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc cargo-doc clang-14-doc cmake-doc
  cmake-format elpa-cmake-mode ninja-build dh-make gcc-12-locales gdb-doc
  gdbserver gettext-doc libasprintf-dev libgettextpo-dev git-daemon-run
  | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb git-cvs
  git-mediawiki git-svn groff lrzip low-memory-monitor icu-doc liblzma-doc
  ncurses-doc libtool-doc gfortran | fortran95-compiler gcj-jdk llvm-14-doc
  m4-doc apparmor less www-browser wine64 libmail-box-perl python3-doc
  python3-tk python3-venv python3-setuptools python-pygments-doc
  ttf-bitstream-vera python3.11-venv python3.11-doc binfmt-support
  readline-doc lld-14
Recommended packages:
  libc-dbg curl | wget | lynx ca-certificates less ssh-client
  libclang-rt-14-dev libarchive-cpio-perl libglib2.0-data shared-mime-info
  xdg-user-dirs libldap-common libgpm2 publicsuffix libsasl2-modules
  libltdl-dev binfmt-support | systemd libmail-sendmail-perl psmisc
The following NEW packages will be installed:
  autoconf automake autopoint autotools-dev binutils-mingw-w64-x86-64
  bsdextrautils cargo clang-14 cmake cmake-data debhelper dh-autoreconf
  dh-strip-nondeterminism dwz file gcc-mingw-w64-base
  gcc-mingw-w64-x86-64-posix gcc-mingw-w64-x86-64-posix-runtime gdb gettext
  gettext-base git git-man groff-base icu-devtools intltool-debian
  libarchive-zip-perl libarchive13 libbabeltrace1 libboost-regex1.74.0
  libbrotli1 libbsd0 libclang-common-14-dev libclang-cpp14 libclang1-14
  libcurl3-gnutls libcurl3-nss libcurl4 libdebhelper-perl libdebuginfod-common
  libdebuginfod1 libdw1 libedit2 libelf1 liberror-perl libexpat1 libffi-dev
  libfile-stripnondeterminism-perl libgc1 libgit2-1.5 libglib2.0-0
  libhttp-parser2.9 libicu-dev libicu72 libipt2 libjsoncpp25 libldap-2.5-0
  libllvm14 liblzma-dev libmagic-mgc libmagic1 libmbedcrypto7 libmbedtls14
  libmbedx509-1 libncurses-dev libncurses6 libncursesw6 libnghttp2-14 libnspr4
  libnss3 libobjc-12-dev libobjc4 libpfm4 libpipeline1 libpkgconf3 libproc2-0
  libpsl5 libpython3-stdlib libpython3.11 libpython3.11-minimal
  libpython3.11-stdlib libreadline8 librhash0 librtmp1 libsasl2-2
  libsasl2-modules-db libsource-highlight-common libsource-highlight4v5
  libsqlite3-0 libssh2-1 libstd-rust-1.63 libstd-rust-dev libsub-override-perl
  libtinfo-dev libtool libuchardet0 libuv1 libxml2 libxml2-dev libyaml-0-2
  libz3-4 libz3-dev llvm-14 llvm-14-dev llvm-14-linker-tools llvm-14-runtime
  llvm-14-tools m4 man-db media-types mingw-w64-common mingw-w64-x86-64-dev
  nss-plugin-pem pkg-config pkgconf pkgconf-bin po-debconf procps python3
  python3-minimal python3-pkg-resources python3-pygments python3-yaml
  python3.11 python3.11-minimal readline-common rustc
  sbuild-build-depends-main-dummy sensible-utils ucf wasi-libc zlib1g-dev
0 upgraded, 132 newly installed, 0 to remove and 0 not upgraded.
Need to get 286 MB of archives.

[..]



More information about the Pkg-rust-maintainers mailing list