Bug#492444: etcinsvk: fails to install

2008-07-26 Thread Pancho Horrillo
Package: etcinsvk
Version: 1.0
Severity: grave
Justification: renders package unusable


Hi.

etcinsvk fails to install, like this:

$ sudo aptitude install etcinsvk
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 NEW packages will be installed:
  etcinsvk expect{a} 
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 352kB of archives. After unpacking 823kB will be used.
Do you want to continue? [Y/n/?] 
Writing extended state information... Done
Get:1 http://ftp.es.debian.org lenny/main expect 5.43.0-17 [346kB]
Get:2 http://ftp.es.debian.org lenny/main etcinsvk 1.0 [5098B]
Fetched 352kB in 1s (327kB/s)
Preconfiguring packages ...
Selecting previously deselected package expect.
(Reading database ... 115339 files and directories currently installed.)
Unpacking expect (from .../expect_5.43.0-17_powerpc.deb) ...
Selecting previously deselected package etcinsvk.
Unpacking etcinsvk (from .../archives/etcinsvk_1.0_all.deb) ...
Processing triggers for man-db ...
Setting up expect (5.43.0-17) ...
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)
A package failed to install.  Trying to recover:
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
Reading package lists... Done 
Building dependency tree
Reading state information... Done
Reading extended state information  
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done 

$ 

Box is a G4 macmini.  Also fails in an amd64 box.


If you need me to perform some tests, just ask.


Thanks,

pancho.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.25-1-powerpc-macmini
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages etcinsvk depends on:
ii  debconf [debconf-2.0] 1.5.22 Debian configuration management sy
ii  expect5.43.0-17  A program that can automate intera
ii  svk   2.0.2-2A Distributed Version Control Syst

etcinsvk recommends no packages.

etcinsvk suggests no packages.

-- debconf information:
  etcinsvk/enabled: false



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#492444: etcinsvk: fails to install

2008-07-26 Thread Petter Reinholdtsen
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.

[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?

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.  

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#492444: etcinsvk: fails to install

2008-07-26 Thread Pancho Horrillo
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