Network interface error on ubuntu 16.04

  • Hello ,
    after my dist upgrade i have some strange problem , at the first was be a network interfaces , an i need to change it from eth0 to ens0 , but after then i try to reinstall 1.3.0 and i give this error "[ERROR] main::setupDbTasks: iMSCP::Stepper::_callback: The eth0 network interface is unknown at /usr/local/src/imscp-1.3.0/engine/PerlLib/iMSCP/Provider/NetworkInterface.pm line 64.


    autoinstaller::Functions::install: An error occurred while performing installation steps"


    I have no idea why but the new version of Ubuntu changed the network interface.
    Any ideas ? what i can i do to install ?

    OpEn YouR mINd , OpeN YouR SourcE cOdE

  • You must fix the problem manually in the server_ips table (in the imscp database). You must change eth0 to ens0. Once done, your must rerun the installer.


    SQL query that you can execute to fix the problem:


    SQL
    1. # mysql -u root -p<password>
    2. > use imscp;
    3. > UPDATE server_ips SET ip_card = 'ens0' WHERE ip_card = 'eth0';
    4. > \q

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