Bug#297898: ifupdown: postinst fails

2005-03-03 Thread Larry Doolittle
Presumably this error was caused by a missing /etc/network
in your chroot.  Is it appropriate to add
   mkdir -p /etc/network
to ifupdown.postinst before line 95
   : > /etc/network/ifstate
? Or maybe earlier in the script?

   - Larry


signature.asc
Description: Digital signature


Bug#297898: ifupdown: postinst fails: /etc/network/ifstate: no such file or directory

2005-03-03 Thread Bill Allombert
Package: ifupdown
Version: 0.6.4-4.11
Severity: serious

Hello Thomas,

when upgrading ifupdown in a sid chroot, I got

Setting up ifupdown (0.6.4-4.11) ...
/var/lib/dpkg/info/ifupdown.postinst: line 95: /etc/network/ifstate: No such 
file or directory
dpkg: error processing ifupdown (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 ifupdown
E: Sub-process /usr/bin/dpkg returned an error code (1)

#ls -l /etc/network/ifstate
lrwxr-xr-x  1 root root 11 2004-08-23 20:04 /etc/network/ifstate -> run/ifstate
#ls -l /etc/network/run/ifstate
ls: /etc/network/run/ifstate: Aucun fichier ou répertoire de ce type
#ls -l /etc/network/run
lrwxr-xr-x  1 root root 16 2004-08-23 20:04 /etc/network/run -> 
/dev/shm/network#ls -l /dev/shm/
total 0

with set -x:
+ ATTEMPT_CONVERSION=true
+ '[' configure = configure ']'
+ '[' 0.6.4-4.10 '!=' '' ']'
+ dpkg --compare-versions 0.6.4-4.10 le 0.6.2pr-3
+ '[' configure = configure ']'
+ '[' '!' -e /etc/network/run ']'
+ '[' '!' -L /etc/network/run ']'
+ '[' '!' -e /etc/network/ifstate ']'
+ '[' '!' -L /etc/network/ifstate ']'
+ '[' '!' -e /etc/network/ifstate ']'
+ '[' -e /var/run/ifupdown.state ']'
+ :
/var/lib/dpkg/info/ifupdown.postinst: line 95: /etc/network/ifstate: No such 
file or directory

Cheers,
-- 
Bill. <[EMAIL PROTECTED]>

Imagine a large red swirl here. 

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1)

Versions of packages ifupdown depends on:
ii  debconf [debconf-2.0]   1.4.46   Debian configuration management sy
ii  libc6   2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  net-tools   1.60-10  The NET-3 networking toolkit

-- debconf information:
* ifupdown/convert-interfaces: true



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