12.0.18 Reinstalling qmail fails

Discussion in 'Troubleshooting' started by DonCube, Mar 27, 2016.

Thread Status:
Not open for further replies.
  1. DonCube

    DonCube Bit Poster

    Messages:
    4
    Hello guys,
    i am facing a problem i have no solution for. After a dist-upgrade from squeeze to wheezy i wanted to reinstall plesk. During dist-upgrade i had to remove it. Finally i managed the auto installer to run through. But the qmail package will not be installed.

    I always get the following error.
    Code:
    Installing packages
    mv: cannot stat `/etc/drweb/drweb32.ini': No such file or directory
    Reading package lists...
    Building dependency tree...
    Reading state information...
    The following NEW packages will be installed:
      plesk-mail-qc-driver psa-drweb-configurator psa-qmail psa-qmail-rblsmtpd
    0 upgraded, 4 newly installed, 0 to remove and 12 not upgraded.
    Need to get 0 B/1786 kB of archives.
    After this operation, 5583 kB of additional disk space will be used.
    WARNING: The following packages cannot be authenticated!
      psa-qmail psa-qmail-rblsmtpd plesk-mail-qc-driver psa-drweb-configurator
    Authentication warning overridden.
    (Reading database ... 136563 files and directories currently installed.)
    Unpacking psa-qmail (from .../psa-qmail_3%3a1.03-debian7.0.build1200140526.11_amd64.deb) ...
    dpkg: error processing /var/cache/apt/archives/psa-qmail_3%3a1.03-debian7.0.build1200140526.11_amd64.deb (--unpack):
    subprocess new pre-installation script returned error exit status 1
    Selecting previously unselected package psa-qmail-rblsmtpd.
    Unpacking psa-qmail-rblsmtpd (from .../psa-qmail-rblsmtpd_0.88-debian7.0.build120140331.12_amd64.deb) ...
    Selecting previously unselected package plesk-mail-qc-driver.
    Unpacking plesk-mail-qc-driver (from .../plesk-mail-qc-driver_12.0.18-debian7.0.build1200140717.14_amd64.deb) ...
    Selecting previously unselected package psa-drweb-configurator.
    Unpacking psa-drweb-configurator (from .../psa-drweb-configurator_12.0.18-debian7.0.build1200140606.15_amd64.deb) ...
    Errors were encountered while processing:
    /var/cache/apt/archives/psa-qmail_3%3a1.03-debian7.0.build1200140526.11_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    I also tried:
    Code:
    dpkg -i /var/cache/apt/archives/psa-qmail_3%3a1.03-debian7.0.build1200140526.11_amd64.deb
    
    and
    Code:
    apt-get -f install
    Same result. It will not install. All databases and the complete /etc/ structure where backed up before dist-upgrade.

    For your information. Before managing to reinstall plesk, i installed qmail and courier-imap from debian sources. But they are already removed.

    Addtional information. The complete plesk installation failed a long time before it went through cause there where different libraries missing:
    Code:
    plesk-platform-runtime_1.0-892097.14062518_amd64.deb
    plesk-librdbmspp_2.0-735641.14062518_amd64.deb
    sw-mariadb-client_1.0.0-14033113_amd64.deb
    Also some libraries in the subfolder libboost-plesk-1.54.0 i had to link with ln -s to the parent folder cause it did not find it during installation.

    Any ideas how i get it qmail installed?
     
  2. DonCube

    DonCube Bit Poster

    Messages:
    4
    Debugging with dpkg gives following information:
    Code:
    saray:/home/baris# dpkg -i --debug=2 /var/cache/apt/archives/psa-qmail_3%3a1.03-debian7.0.build12001
    (Reading database ... 136563 files and directories currently installed.)
    Unpacking psa-qmail (from .../psa-qmail_3%3a1.03-debian7.0.build1200140526.11_amd64.deb) ...
    D000002: fork/exec /var/lib/dpkg/tmp.ci/preinst ( install )
    dpkg: error processing /var/cache/apt/archives/psa-qmail_3%3a1.03-debian7.0.build1200140526.11_amd64
    subprocess new pre-installation script returned error exit status 1
    D000002: fork/exec /var/lib/dpkg/tmp.ci/postrm ( abort-install )
    Errors were encountered while processing:
    /var/cache/apt/archives/psa-qmail_3%3a1.03-debian7.0.build1200140526.11_amd64.deb
    
     
  3. DonCube

    DonCube Bit Poster

    Messages:
    4
    Some more information running with dpkg D20
    Code:
    saray:/home/baris# dpkg -i -D20 psa-qmail_1.03-debian7.0.build1200140526.11_amd64.deb
    (Reading database ... 136563 files and directories currently installed.)
    Unpacking psa-qmail (from psa-qmail_1.03-debian7.0.build1200140526.11_amd64.deb) ...
    D000020: process_archive conffile '/var/qmail/boot/proc+df' no package, no hash
    D000020: process_archive conffile '/var/qmail/boot/binm2' no package, no hash
    D000020: process_archive conffile '/var/qmail/boot/home' no package, no hash
    D000020: process_archive conffile '/var/qmail/boot/binm1+df' no package, no hash
    D000020: process_archive conffile '/var/qmail/boot/binm1' no package, no hash
    D000020: process_archive conffile '/var/qmail/boot/binm2+df' no package, no hash
    D000020: process_archive conffile '/var/qmail/boot/binm3' no package, no hash
    D000020: process_archive conffile '/var/qmail/boot/binm3+df' no package, no hash
    D000020: process_archive conffile '/var/qmail/boot/proc' no package, no hash
    D000020: process_archive conffile '/var/qmail/boot/home+df' no package, no hash
    D000020: process_archive conffile '/etc/init.d/qmail' no package, no hash
    dpkg: error processing psa-qmail_1.03-debian7.0.build1200140526.11_amd64.deb (--install):
    subprocess new pre-installation script returned error exit status 1
    Errors were encountered while processing:
    psa-qmail_1.03-debian7.0.build1200140526.11_amd64.deb
    
     
  4. DonCube

    DonCube Bit Poster

    Messages:
    4
    Well i got the solution. The installer failed cause the linux users and groups qmail creates/needs for working already existed with a different user-id.

    Just followes the solution from here:
    https://kb.plesk.com/en/125315

    Btw: Learned a lot about debugging installation-routines
     
  5. dkolvakh

    dkolvakh Odin Team

    Messages:
    348
    Hello.

    Please ask Plesk questions at http://talk.plesk.com/

    Btw, glad to hear that you've resolved that issue.
     
Thread Status:
Not open for further replies.

Share This Page