Ubuntu - sources.list - duplicate entries error

  • Ran the install on 12.04 LTS and im getting an error message about Duplicate Sources I have gone back and did it a couple of times in virtual box to try to figure this out but when i run apt-get update before i try install of i-mscp all is fine i get this message only when build of i-mscp is done and i get this


    http://i.imgur.com/LROnYVx.png


    at the bottom of that ask if you want to continue i have said yes to it and seems to install ok but was wondering how to fix this

    Edited once, last by Nuxwin ().


  • Please use 1.1.0-RC release :)


    Hello ;


    gOOvER
    It's not fixed in last RC release. It's only fixed in master. ;)


    DZII
    Look the CHANGELOG for master on our repository and you will see :


    - Fixed: Duplicate entries in sources.list file (Ubuntu)


    This bug comes from previous versions of the i-MSCP installer that added the same component (section) in any repository with same base and distribution. The i-MSCP stable version and the last i-MSCP RC version are both affected by this bug.


    For instance, if you have such thing in your sources.list:


    Code
    1. deb http://fr.archive.ubuntu.com/ubuntu/ quantal main universe multiversedeb http://fr.archive.ubuntu.com/ubuntu/ quantal multiverse


    Then, you get a duplicate entries error. Here, we added the multiverse component twice for the same repository ( http://fr.archive.ubuntu.com/ubuntu/ quantal )


    But this:


    Code
    1. deb http://fr.archive.ubuntu.com/ubuntu/ quantal main multiverse
    2. deb http://fr.archive.ubuntu.com/ubuntu/ quantal universe


    Is correct.


    Note: The fix included in our development branch (master) doesn't repair your broken sources.list. You have to do that manually. Of course, the fix included in master fix the bug that cause the duplicate entries error.


    Edit: I'm wondering if the lookup is done on the base and the distribution, or only on the distribution. In later case, I'll arrange my fix. I'll perform some tests.


    Thank you for using i-MSCP

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

    Edited once, last by Nuxwin ().