[buildd-tools-devel] Bug#865541: sbuild --apt-distupgrade should not remove build-essential

Raphaël Hertzog hertzog at debian.org
Thu Jun 22 14:51:56 UTC 2017


Package: sbuild
Version: 0.73.0-4
Severity: important
User: devel at kali.org
Usertags: origin-kali

The default configuration of sbuild includes a run of "apt-get
dist-upgrade" to upgrade the chroot. Unfortunately that run can break
the chroot in some cases. This happens from time to time in Kali because
we have forked linux (which builds linux-libc-dev) but not glibc (which
builds libc6-dev). libc6-dev embeds a >= dependency on linux-libc-dev on
the version on which it was built against and is thus non-installable in
Kali until we have updated the kernel...

But to update the kernel, we need a working sbuild... and it's no longer
working because it has done this:

+------------------------------------------------------------------------------+
| Update chroot                                                                |
+------------------------------------------------------------------------------+

Get:1 http://repo.kali.org/kali kali-dev InRelease [30.4 kB]
Get:2 http://repo.kali.org/kali kali-dev-only InRelease [23.1 kB]
Get:3 http://repo.kali.org/kali kali-dev/main Sources [11.4 MB]
Get:4 http://repo.kali.org/kali kali-dev/main i386 Packages [15.5 MB]
Get:5 http://repo.kali.org/kali kali-dev-only/main Sources [194 kB]
Get:6 http://repo.kali.org/kali kali-dev-only/main i386 Packages [212 kB]
Fetched 27.3 MB in 1s (13.8 MB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be REMOVED:
  build-essential g++ g++-6 libc6-dev libstdc++-6-dev
The following packages will be upgraded:
  libc-bin libc-dev-bin libc6 multiarch-support

[...]

I'm not sure what the best fix is. I don't know of any way to tell APT
to not remove build-essential while at the same time allowing to upgrade it.

Another solution is to run it with "-s" (simulate mode) and only run the
command if it doesn't remove build-essential.

Or another solution is possibly to first upgrade build-essential, put it on
hold and then run dist-upgrade.

Cheers,

-- System Information:
Debian Release: 9.0
  APT prefers oldoldstable
  APT policy: (500, 'oldoldstable'), (500, 'unstable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sbuild depends on:
ii  adduser         3.115
ii  libsbuild-perl  0.73.0-4
ii  perl            5.24.1-4

Versions of packages sbuild recommends:
ii  autopkgtest  4.4
ii  debootstrap  1.0.90
ii  schroot      1.6.10-4

Versions of packages sbuild suggests:
pn  deborphan  <none>
ii  kmod       24-1
ii  wget       1.19.1-3

-- no debconf information



More information about the Buildd-tools-devel mailing list