Bug#658132: libgcc1: installation fails with "FATAL: cannot determine kernel version"
Package: libgcc1
Version: 1:4.6.2-12
Severity: normal
Dear Maintainer,
I'm not sure if this is a libgcc bug: maybe it is something inside dpkg that is
failing. Feel free to reassign the bug.
I use a kernel generated with the following command:
time fakeroot make-kpkg -j4 --append-to-version $(date +%Y%m%d%H%M) --initrd
kernel_image kernel_headers
Now I'm failing to install packages:
root@vicky:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libv8-3.5.10.24 libgupnp-1.0-3 xulrunner-8.0 libqtmultimediakit1
librhythmbox-core4 libedata-cal-1.2-11 libedata-book-1.2-9 libgdata11
libegroupwise1.2-13 libjim0debian1 libgupnp-igd-1.0-3 libnl1 libnl3
libgssdp-1.0-2 libqtlocation1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
cpp-4.6 g++-4.6 gcc-4.6 libquadmath0 libstdc++6 libstdc++6-4.6-dev
Suggested packages:
gcc-4.6-locales g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg
gcc-4.6-multilib libmudflap0-4.6-dev libgcc1-dbg libgomp1-dbg libquadmath0-dbg
libmudflap0-dbg binutils-gold libstdc++6-4.6-doc
The following packages will be upgraded:
cpp-4.6 g++-4.6 gcc-4.6 libquadmath0 libstdc++6 libstdc++6-4.6-dev
6 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
3 not fully installed or removed.
Need to get 0 B/21.2 MB of archives.
After this operation, 3072 B of additional disk space will be used.
Do you want to continue [Y/n]?
Reading changelogs... Feito
Setting up libgcc1 (1:4.6.2-12) ...
FATAL: cannot determine kernel version
Segmentation fault
dpkg: error processing libgcc1 (--configure):
subprocess installed post-installation script returned error exit status 139
configured to not write apport reports
Errors were encountered while processing:
libgcc1
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@vicky:~# uname -a
Linux vicky 3.2.0201201301744+ #55 SMP Mon Jan 30 17:44:59 BRST 2012 x86_64
GNU/Linux
The important lines seem to be:
Setting up libgcc1 (1:4.6.2-12) ...
FATAL: cannot determine kernel version
Segmentation fault
This has already happened to me yesterday. I had to reboot to one of the
"debian" packaged kernels and then I could fix the problem. Maybe the script
that parses the kernel version can't recognize 3.2.0201201301744+ as a correct
version? It shouldn't segfault... Either we fix the script or we change make-
kpkg's append-to-version argument to not allow strings that our scripts won't
recognize.
I'm using Debian Testing.
Thank you,
Paulo
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0201201301744+ (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libgcc1 depends on:
ii gcc-4.6-base 4.6.2-12
ii libc6 2.13-24
ii multiarch-support 2.13-24
libgcc1 recommends no packages.
libgcc1 suggests no packages.
-- no debconf information
Reply to: