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

Bug#834169: Apache2 can't be installed on testing/sid



Package: apache2
Version: 2.4.23-3
Severity: grave


On a new fresh created Debian Sid ADM64 chroot, installing apache2 is not possible:


$ sudo apt-get install  -y apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  autoconf-archive fonts-lato libmpfr4 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libwrap0 python python-minimal python2.7 python2.7-minimal
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  ssl-cert
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom openssl-blacklist
The following NEW packages will be installed:
  apache2 ssl-cert
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
31 not fully installed or removed.
Need to get 0 B/248 kB of archives.
After this operation, 641 kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 45161 files and directories currently installed.)
Preparing to unpack .../0-apache2_2.4.23-3_amd64.deb ...
preinst called with unknown argument `install'
dpkg: error processing archive /tmp/apt-dpkg-install-qHR4wD/0-apache2_2.4.23-3_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Selecting previously unselected package ssl-cert.
Preparing to unpack .../1-ssl-cert_1.0.38_all.deb ...
Unpacking ssl-cert (1.0.38) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-qHR4wD/0-apache2_2.4.23-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)



It seems the preinst script aborts when called with $1=install


$ apt-get download apache2
Get:1 http://debian.univ-tlse2.fr/debian sid/main amd64 apache2 amd64 2.4.23-3 [227 kB]
Fetched 227 kB in 0s (250 kB/s)


$ dpkg -I apache2_2.4.23-3_amd64.deb preinst |grep ^case -A99|grep ^esac -B99
case "$1" in
    upgrade)

	if dpkg --compare-versions "$2" lt-nl "2.4.23-3~" ; then
		list_fixup_conffiles | replace_broken_conffiles
	fi

    ;;

    abort-upgrade)
		list_fixup_conffiles | revert_broken_conffiles
    ;;

    *)
	echo "preinst called with unknown argument \`$1'" >&2
	exit 1
    ;;
esac


I workaround this by manually installing apache2 from Jessie, which has a 

case "$1" in
	install|upgrade)
        [         ....... ]
esac

on the preinst script, and later upgrading to the one from testing/sid.

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: