Find the answer to your Linux question:
Results 1 to 2 of 2
Hey everyone. I have the default sources in my sources.list; however, after reading a few guides I added a few sources to the file, including a security one or two. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Posts
    27

    sources.list security conflicts - which sources?


    Hey everyone. I have the default sources in my sources.list; however, after reading a few guides I added a few sources to the file, including a security one or two. Now, I want to make sure I am getting the correct security updates, but I get this error when I go to do 'aptitude update' :

    Code:
    W: Duplicate sources.list entry http://security.debian.org lenny/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_lenny_updates_main_binary-i386_Packages)
    W: You may want to run apt-get update to correct these problems
    Now I'm hesitant to remove any sources, because I want to make sure I'm getting the correct security updates.

    Here is my /etc/apt/sources.list file :
    Code:
    deb http://http.us.debian.org/debian lenny main
    deb-src http://http.us.debian.org/debian lenny main
    
    deb http://security.debian.org/ lenny/updates main
    deb-src http://security.debian.org/ lenny/updates main
    
    deb http://volatile.debian.org/debian-volatile lenny/volatile main
    deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
    
    # I am adding this for installation of madwifi for ARXXXX
    deb http://ftp.us.debian.org/debian lenny main contrib non-free
    
    # I am adding this for security updates
    deb http://security.debian.org/ stable/updates main contrib non-free
    deb http://security.debian.org/ lenny/updates main contrib non-free
    
    # I am adding this TESTING repo to get guake to work, need to testing stuff :(
    # deb http://ftp.us.debian.org/debian squeeze main
    Thanks everyone, any help is appreciated!

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    deb http://security.debian.org/ lenny/updates main
    # I am adding this for security updates
    deb http://security.debian.org/ stable/updates main contrib non-free
    deb http://security.debian.org/ lenny/updates main contrib non-free
    Debian allows you to use lenny or main, squeeze or testing, etc. So your lenny line and stable line are the same. You have the main section defined 3 times, and then duplicates of contrib and non-free
    deb http://http.us.debian.org/debian lenny main
    # I am adding this for installation of madwifi for ARXXXX
    deb http://ftp.us.debian.org/debian lenny main contrib non-free
    Different mirrors, but the same thing, you have main listed twice. You can tack on contrib and non-free to the original line.
    Last edited by reed9; 09-10-2009 at 10:08 PM.

Posting Permissions

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