[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#169752: libc6.postinst script has a little bug



Package: libc6
Version: 2.3.1-4

The upgrade op libc6 gives the folowing errors:

Setting up libc6 (2.3.1-4) ...
Checking for services that may need to be restarted...Package `smail' is not 
installed and no info is available.
Package `ssh-nonfree' is not installed and no info is available.
Package `postfix-tls' is not installed and no info is available.
Package `slapd' is not installed and no info is available.
Package `logind' is not installed and no info is available.
Package `ssh-krb5' is not installed and no info is available.
Package `apache2' is not installed and no info is available.
Package `courier-authdaemon' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
sed: can't read exim: No such file or directory
sed: can't read ssh: No such file or directory
sed: can't read netbase: No such file or directory
sed: can't read cron: No such file or directory
sed: can't read snmpd: No such file or directory
dpkg: error processing libc6 (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of locales:
 locales depends on glibc-2.3.1-4; however:
  Package glibc-2.3.1-4 is not installed.
  Package libc6 which provides glibc-2.3.1-4 is not configured yet.
dpkg: error processing locales (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libc6
 locales
E: Sub-process /usr/bin/dpkg returned an error code (1)


----
The problem is a little typo/bug in the libc6.postinst.
See the attachement for a patch.

Yours,
Ferdinand Smit
*** libc6.postinst.new	Tue Nov 19 15:47:12 2002
--- /var/lib/dpkg/info/libc6.postinst	Tue Nov 19 15:46:30 2002
***************
*** 172,178 ****
  	    check=$(dpkg -s $check | awk 'BEGIN{RS="\n\n";FS="\n"}{if ( $2 ~ /Status: .* installed$/ ) { print $1 } }' | cut -f 2 -d ' ')
  	    # apache2 ships its init script in apache2-common, but the
  	    # script is apache2
! 	    check=$(echo $check | sed 's/apache2-common/apache2/')
  	    # We have to list inetd explicitly, because the package is a
  	    # different name from it's init script
  	    check="$check inetd"
--- 172,178 ----
  	    check=$(dpkg -s $check | awk 'BEGIN{RS="\n\n";FS="\n"}{if ( $2 ~ /Status: .* installed$/ ) { print $1 } }' | cut -f 2 -d ' ')
  	    # apache2 ships its init script in apache2-common, but the
  	    # script is apache2
! 	    check=$(sed 's/apache2-common/apache2/' $check)
  	    # We have to list inetd explicitly, because the package is a
  	    # different name from it's init script
  	    check="$check inetd"

Reply to: