apt-build fails to install if `grep processors /proc/cpuinfo` don't find anything
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-build (Ubuntu) |
Fix Released
|
Low
|
Dominique Lasserre |
Bug Description
I was trying to install the apt-build today. After being shown a ncurses dialog to choose whether to add apt-build repository and then an optimization level, the dialog was closed and an error shown:
Setting up apt-build (0.12.43) ...
dpkg: error processing apt-build (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
apt-build
I tried to narrow the problem down by repeatedly editing the apt-build.postinst file, removing code parts and running "dpkg --reconfigure -a". It turnes out that it's enough to just leave the .postinst as following to trigger the bug:
#!/bin/sh
if [ "$1" = "configure" ] ; then
. /usr/share/
fi
Even though I do not know perl almost at all, I tried to read the code in and try to find the real culprit, however whole debconf and thinking behind it is way too complicated for me to get the glimpse fast enough, hence my not-so-
I will be happy, though, to get instructed by someone else and do some more investigation on the matter.
PS. Please note that I do not have my /tmp mounted with noexec, as this I believe is the most common cause for this kind of errors with debconf.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: apt-build 0.12.43
Uname: Linux 3.0.42+ armv7l
ApportVersion: 2.6.1-0ubuntu3
Architecture: armhf
Date: Thu Oct 11 21:18:49 2012
SourcePackage: apt-build
UpgradeStatus: Upgraded to quantal on 2012-09-29 (12 days ago)
---
Architecture: armhf
DistroRelease: Ubuntu 12.10
Package: debconf 1.5.46ubuntu1
PackageArchitec
Uname: Linux 3.0.42+ armv7l
UserGroups:
summary: |
- Unable to install apt-build, apparently a bug in debconf + apt-build fails to install (post-installation/config script) on armel |
Changed in apt-build (Ubuntu): | |
assignee: | nobody → Dominique Lasserre (lasall) |
status: | New → In Progress |
apport information