Unknown error while executing postinstall tasks for the `apache2-bin' package

  • Hey,


    im having these errors:


    [ERROR] autoinstaller::Adapter::DebianAdapter::__ANON__: Unknown error while executing postinstall tasks for the `apache2-bin' package
    [ERROR] autoinstaller::Functions::build: An error occurred while performing build steps


    Debian 8.8, using iMSCP 1.4.3 trying to update to iMSCP 1.4.6


    PHP 7.1.6-2+0~20170614060700.1+jessie~1.gbp831871 (cli) (built: Jun 14 2017 06:28:54) ( NTS )
    Server version: Apache/2.4.10 (Debian)
    Server built: Feb 24 2017 18:40:28
    Server's Module Magic Number: 20120211:37
    Server loaded: APR 1.5.1, APR-UTIL 1.5.4
    Compiled using: APR 1.5.1, APR-UTIL 1.5.4
    Architecture: 64-bit



    I did an "apt-get update && apt-get dist-upgrade" before the installation.



    ----------------------------------------------------------



    Which logfiles would be helpful to try to find the problem?



    Best regards

  • @Eomer


    Could you please post the result of the following command: LANG=C sh autoinstaller/postinstall/apache2_postinst.sh
    You must run it from the i-MSCP 1.4.6 archive directory.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Sure!


  • In your first post, you say:


    But now, I see


    Get:1 http://ftp.de.debian.org/debian/ stable/main apache2 2.4.25-3 (dsc) [2958 B]
    Get:2 http://ftp.de.debian.org/debian/ stable/main apache2 2.4.25-3 (tar) [6398 kB]
    Get:3 http://ftp.de.debian.org/debian/ stable/main apache2 2.4.25-3 (diff) [694 kB]

    .
    This is because you have the repositories for Debian stable and now, Debian stable is Stretch... You must fix your sources.list to stay with Jessie (change stable by jessie).
    This is not a bug from us. To resume, there is a mismatch between your installed version of Apache2 and the version of the source package that is provided by your repository.


    BTW: Best would be to fully upgrade to Stretch now.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • I made a change to make the error more explicite. Hope you understand the problem.
    See https://github.com/i-MSCP/imsc…fe418111a054df5ebb232fa66


    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206