Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
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
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
Quote:
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.
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe