Results 1 to 4 of 4

Thread: Duplicate sources.list

  1. #1
    Join Date
    Jul 2008
    Beans
    43

    Duplicate sources.list

    When I try to run sudo apt-get update I get below error. In order to resolve the issue, ubuntu tells me to run apt-get update again?

    Can someone please tell me how to fix the issue manually?

    Code:
    Hit http://us.archive.ubuntu.com oneiric-updates/universe Translation-en                                                                 
    Fetched 22.0 MB in 1min 26s (256 kB/s)                                                                                                   
    Reading package lists... Done
    W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_oneiric_universe_binary-i386_Packages)
    W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ oneiric/multiverse i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_oneiric_multiverse_binary-i386_Packages)
    W: You may want to run apt-get update to correct these problems
    Here is my source list:
    Code:
    # deb cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release i386 (20080702.1)]/ hardy main restricted
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    
    deb http://us.archive.ubuntu.com/ubuntu/ oneiric main restricted
    deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
    deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## universe WILL NOT receive any review or updates from the Ubuntu security
    ## team.
    deb http://us.archive.ubuntu.com/ubuntu/ oneiric universe
    deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric universe
    deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates universe
    deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates universe
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
    ## team, and may not be under a free licence. Please satisfy yourself as to 
    ## your rights to use the software. Also, please note that software in 
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
    
    # Uncomment the following two lines to add software from the 'backports'
    ## repository.
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    # deb http://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
    # deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
    
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository. This software is not part of Ubuntu, but is
    ## offered by Canonical and the respective vendors as a service to Ubuntu
    ## users.
    # deb http://archive.canonical.com/ubuntu hardy partner
    # deb-src http://archive.canonical.com/ubuntu hardy partner
    
    deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
    deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
    deb http://security.ubuntu.com/ubuntu oneiric-security universe
    deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
    deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
    deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse
    deb http://archive.ubuntu.com/ubuntu oneiric universe multiverse
    deb http://archive.ubuntu.com/ubuntu oneiric universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu oneiric universe multiverse
    
    ## Medibuntu - Ubuntu 8.04 "hardy" 
    ## Please report any bug on https://bugs.launchpad.net/medibuntu/ 
    # deb http://packages.medibuntu.org/ lucid free non-free # disabled on upgrade to lucid
    
    # deb http://ppa.launchpad.net/compiz/ubuntu lucid main # disabled on upgrade to lucid
    deb http://extras.ubuntu.com/ubuntu oneiric main #Third party developers repository

  2. #2
    Join Date
    Sep 2009
    Location
    Freiburg/Germany
    Beans
    1,112
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Duplicate sources.list

    What does
    Code:
    egrep 'universe|multiverse' /etc/apt/sources.list /etc/apt/sources.list.d/*
    print?
    ClassicMenu Indicator - classic GNOME menu for Unity
    Unsettings - configuration program for the Unity
    Privacy Indicator - easily switch privacy settings in Unity
    Arronax - create and modify app starters

  3. #3
    Join Date
    Jul 2008
    Beans
    43

    Re: Duplicate sources.list

    Code:
    hell@hell-laptop:~$ egrep 'universe|multiverse' /etc/apt/sources.list /etc/apt/sources.list.d/*
    /etc/apt/sources.list:## universe WILL NOT receive any review or updates from the Ubuntu security
    /etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ oneiric universe
    /etc/apt/sources.list:deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric universe
    /etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates universe
    /etc/apt/sources.list:deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates universe
    /etc/apt/sources.list:## multiverse WILL NOT receive any review or updates from the Ubuntu
    /etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse
    /etc/apt/sources.list:deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse
    /etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
    /etc/apt/sources.list:deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
    /etc/apt/sources.list:# deb http://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
    /etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
    /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu oneiric-security universe
    /etc/apt/sources.list:deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
    /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
    /etc/apt/sources.list:deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse
    /etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu oneiric universe multiverse
    /etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu oneiric universe multiverse
    /etc/apt/sources.list:deb-src http://archive.ubuntu.com/ubuntu oneiric universe multiverse

  4. #4
    Join Date
    Sep 2009
    Location
    Freiburg/Germany
    Beans
    1,112
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Duplicate sources.list

    Remove the lines
    Code:
    deb http://archive.ubuntu.com/ubuntu oneiric universe multiverse 
    deb http://archive.ubuntu.com/ubuntu oneiric universe multiverse 
    deb-src http://archive.ubuntu.com/ubuntu oneiric universe multiverse
    from /etc/apt/sources.list

    They are above the line
    Code:
    ## Medibuntu - Ubuntu 8.04 "hardy"
    ClassicMenu Indicator - classic GNOME menu for Unity
    Unsettings - configuration program for the Unity
    Privacy Indicator - easily switch privacy settings in Unity
    Arronax - create and modify app starters

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •