Debian sources for MySQL 5.7 external sources are duplicated during I-MSCP update

  • Hi Nuxwin,


    since the update to 1.2.14 I have noticed that the I-MSCP installer adds the following lines



    Code
    1. deb http://repo.mysql.com/apt/debian/ jessie mysql-5.7deb-src http://repo.mysql.com/apt/debian/ jessie mysql-5.7

    to the main sources.list file:


    Code
    1. /etc/apt/sources.list

    As I have already added them to my custom list file before to




    Code
    1. /etc/apt/sources.list.d/



    directory manually before the update, I ran into apt-get update errors. I have removed that from the main source file after the 1.2.14 update and just thought that I forgot about removing it. But after the 1.2.15 update, it reappeared. As I have not done anything there, I would assume Sherlock Holmes' logic that the remaining thing must be the cause as unrealistic it might be :-)


    I would suggest do implement a check, if the added sources are already present in the user adjusted directory.


    What do you think?


    Thanks,
    Sven

  • @TheRiddler1982


    The right way: Simply remove those repositories from your custom file under the /etc/apt/sources.list.d directory. i-MSCP adds those repositories when needed (and also remove them when needed). You should not remove any repository added by i-MSCP.


    Implementing a check would involve too much work (reading and parsing of all files from /etc/apt/sources.list.d/ ...)

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