Migrating ISPConfig 3 from debian Wheezy to Debian Buster

Discussion in 'Plugins/Modules/Addons' started by Stoyan_V, Mar 21, 2022.

  1. Stoyan_V

    Stoyan_V New Member

    Hi ,
    I'm currently planning to migrate a debian wheezy mail server running ISPconfig version 3.1.13 to Debian 10 Buster.
    I'm getting however error with php-curl module, it's just saying it's missing php-curl module and exiting the installer.
    Has anyone encountered similar problem before. I'm not finding any relevant post here or on the internet on how to install this particular module, although I've installed curl.
    Is better if I upgrade to Jessie and Stretch before do the migration?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    No.

    What's missing is PHP curl module, not the curl program itself. The install command is either:

    Code:
    apt-get install php-curl
    or if this does not work, try:

    Code:
    apt-get install php5-curl
     
  3. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

  4. Stoyan_V

    Stoyan_V New Member

    Hi Till,

    Thanks for the reply.

    I have tried both of this commands, but no success:
    Code:
    The following packages have unmet dependencies:                                                                       │
     php5-curl : Depends: php5-common (= 5.4.45-0+deb7u2) but 5.4.45-0+deb7u14 is to be installed                         │
    E: Unable to correct problems, you have held broken packages.
    That's the error I'm getting with :

    Code:
    apt-get install php5-curl
    but when I check the version it is actually : 5.4.45-0+deb7u14
    Code:
    php --version                                                                                            │
    PHP 5.4.45-0+deb7u14 (cli) (built: May  9 2018 16:47:00)                                                              │
    Copyright (c) 1997-2014 The PHP Group                                                                                 │
    Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies                                                         │
        with XCache v2.0.0, Copyright (c) 2005-2012, by mOo
    Not being able to find how would I rectify this error.
     
  5. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Maybe "apt-get update" would find consistent package versions to use. If not, you might need to find a good/"current" source of wheezy packages to switch to (search the web, I imagine). Another alternative might be to just install a bullseye server with current ISPConfig version and use the migration tool to bring your data over.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    It might be that you have to change sources.list to the Debian archive servers if you can't install Debian packages on the old server.
     
  7. Stoyan_V

    Stoyan_V New Member

    I've updated the system to latest possible.
    The new server is already with latest ISPConfiguration, the problem is I can't do the migration without the php-curl module.
     
  8. Stoyan_V

    Stoyan_V New Member

    I did that as well, it's updated from the archive source.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Then you must be able to install the php curl module as it exists for wheezy.
     
  10. Stoyan_V

    Stoyan_V New Member

    It's just giving me error for not existing package:
    Code:
    apt-get install php-curl                                                     │
    Reading package lists... Done                                                                                         │
    Building dependency tree                                                                                              │
    Reading state information... Done                                                                                     │
    E: Unable to locate package php-curl
     
  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    The error message in #4 states
    Code:
    you have held broken packages.
    Check for packages in HOLD state,
    Code:
    dpkg --get-selections "*" | grep -i hold
    It may be the APT system is in a broken state, it may be non-trivial to fix.
     
    Jesse Norell likes this.
  12. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What installer is being exited?
     
  13. Stoyan_V

    Stoyan_V New Member

    Hi Taleman,
    It didn't produce any output, so I'm guessing there aren't any broken/hold packages.
     
  14. Stoyan_V

    Stoyan_V New Member

    It's the Ispconfig migration tool
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Please re-read my post, I suggested you to run this command in case the first one fails:

    apt-get install php5-curl
     
  16. Stoyan_V

    Stoyan_V New Member

    I did , it's the error I quoted above, here is it again:
    Code:
    apt-get install php5-curl                                                    │
    Reading package lists... Done                                                                                         │
    Building dependency tree                                                                                              │
    Reading state information... Done                                                                                     │
    Some packages could not be installed. This may mean that you have                                                     │
    requested an impossible situation or if you are using the unstable                                                    │
    distribution that some required packages have not yet been created                                                    │
    or been moved out of Incoming.                                                                                        │
    The following information may help to resolve the situation:                                                          │
                                                                                                                          │
    The following packages have unmet dependencies:                                                                       │
     php5-curl : Depends: php5-common (= 5.4.45-0+deb7u2) but 5.4.45-0+deb7u14 is to be installed                         │
    E: Unable to correct problems, you have held broken packages.
    But when checked for held packages there was no output for any
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely one os the used repositories is not up to date or something similar. Please run

    apt-get update

    command and post the whole output that you get when running the command.
     
  18. Stoyan_V

    Stoyan_V New Member

    here it is:
    Code:
    apt-get update                                                               │
    Hit http://archive.debian.org wheezy Release.gpg                                                                      │
    Hit http://archive.debian.org wheezy Release                                                                          │
    Hit http://archive.debian.org wheezy/contrib Translation-en                                                           │
    Hit http://archive.debian.org wheezy/main Translation-en                                                              │
    Hit http://archive.debian.org wheezy/non-free Translation-en                                                          │
    Hit http://archive.debian.org wheezy/main Sources                                                                     │
    Hit http://archive.debian.org wheezy/non-free Sources                                                                 │
    Hit http://archive.debian.org wheezy/contrib Sources                                                                  │
    Hit http://archive.debian.org wheezy/main amd64 Packages                                                              │
    Hit http://archive.debian.org wheezy/non-free amd64 Packages                                                          │
    Hit http://archive.debian.org wheezy/contrib amd64 Packages                                                           │
    Reading package lists... Done                                                                                         │
    root@srv5# apt-get upgrade                                                              │
    Reading package lists... Done                                                                                         │
    Building dependency tree                                                                                              │
    Reading state information... Done                                                                                     │
    The following packages have been kept back:                                                                           │
      clamav clamav-base clamav-daemon clamav-freshclam                                                                   │
    0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
     
    Last edited: Mar 21, 2022
  19. till

    till Super Moderator Staff Member ISPConfig Developer

  20. Stoyan_V

    Stoyan_V New Member

    Hi Till,
    thanks that got me to some progress.
    I added the security repository and changed the date to before certificates have expired, that allowed me to run apt and install php5-curl.
    Migration tools starts now without error.
     
    till likes this.

Share This Page