On Sat, Jul 26, 2008 at 08:57:51AM +0200, Petter Reinholdtsen wrote:
severity 492444 important
thanks
Thank you for the report. Setting severity to important, as the
package installs for some users. It is installed by default in Debian
Edu with success.
Glad to help. Sorry for the mis-assessment.
[Pancho Horrillo]
etcinsvk fails to install, like this:
[...]
Setting up etcinsvk (1.0) ...
dpkg: error processing etcinsvk (--configure):
subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
etcinsvk
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hm. Can you try to add 'set -x' to
/var/lib/dpkg/info/etcinsvk.postinst on the line after
. /usr/share/debconf/confmodule and then run 'aptitude install -f'
to try to run the script again?
Sure, here it goes...
# cd /var/lib/dpkg/info
# vi etcinsvk.postinst
# aptitude install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following partially installed packages will be configured:
etcinsvk
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up etcinsvk (1.0) ...
+ db_get debian-edu-config/etc-in-svk
+ _db_cmd GET debian-edu-config/etc-in-svk
+ IFS= printf %s\n GET debian-edu-config/etc-in-svk
+ IFS=
read -r _db_internal_line
+ RET=10 debian-edu-config/etc-in-svk doesn't exist
+ return 10
dpkg: error processing etcinsvk (--configure):
subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
etcinsvk
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up etcinsvk (1.0) ...
+ db_get debian-edu-config/etc-in-svk
+ _db_cmd GET debian-edu-config/etc-in-svk
+ IFS= printf %s\n GET debian-edu-config/etc-in-svk
+ IFS=
read -r _db_internal_line
+ RET=10 debian-edu-config/etc-in-svk doesn't exist
+ return 10
dpkg: error processing etcinsvk (--configure):
subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
etcinsvk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
#
Exit status 10 smell like something from debconf. A quick look make
me suspect this line fail:
db_get debian-edu-config/etc-in-svk
The fix is to add ' || true' to the end of it.
Yep. Right between the eyes :-)
# vi etcinsvk.postinst
# aptitude install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following partially installed packages will be configured:
etcinsvk
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up etcinsvk (1.0) ...
+ db_get debian-edu-config/etc-in-svk
+ _db_cmd GET debian-edu-config/etc-in-svk
+ IFS= printf %s\n GET debian-edu-config/etc-in-svk
+ IFS=
read -r _db_internal_line
+ RET=10 debian-edu-config/etc-in-svk doesn't exist
+ return 10
+ true
+ OLD=10 debian-edu-config/etc-in-svk doesn't exist
+ db_get etcinsvk/enabled
+ _db_cmd GET etcinsvk/enabled
+ IFS= printf %s\n GET etcinsvk/enabled
+ IFS=
read -r _db_internal_line
+ RET=false
+ return 0
+ [ true = 10 debian-edu-config/etc-in-svk doesn't exist ]
+ [ true = false ]
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
#
Thanks a lot!
Happy hacking,
Happy hacking to you, too.
Friendly,
pancho.
--
pancho horrillo
To be conscious that
you are ignorant is a great step
to knowledge.
Benjamin Disraeli
signature.asc
Description: Digital signature