Hey all;<br>Just recently installed my first debian distro (4.0), and I can't quite get the sources.list syntax down so that apt-get update doesn't barf.<br><br>I've read the mans, checked the bible (v. 3.1) and looked through about as much of the debian mailing list archives as I could before going totally brain-dead, and well, I'm still scratching my head over this and hoping someone out there could shed some light on the situation for me.<br><br>Here's my sources.list:<br>quote<br>#<br># deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main<br><br>deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main<br><br>deb http://debian.yorku.ca/debian/ etch main<br>deb-src http://debian.yorku.ca/debian/ etch main<br><br>deb http://security.debian.org/ etch/updates main contrib<br>deb-src http://security.debian.org/ etch/updates main contrib<br><br>deb
http://packages.debian.org/unstable/libs/<br>unquote<br><br>The last line is the one I'm trying to add by hand., to get some sun-java jre and jdk thingys from http://packages.debian.org/unstable/libs/<br><br>The last few lines of output after running apt-get update:<br><br>quote<br>Ign http://packages.debian.org etch/unstable Packages<br>Err http://packages.debian.org etch/unstable Packages<br> 404 Not Found<br>Fetched 2B in 1s (2B/s)<br>Failed to fetch http://packages.debian.org/dists/etch/unstable/binary-i386/Packages.gz 404 Not Found<br>Reading package lists... Done<br>W: Couldn't stat source package list http://packages.debian.org etch/unstable Packages (/var/lib/apt/lists/packages.debian.org_dists_etch_unstable_binary-i386_Packages) - stat (2 No such file or directory)<br>W: You may want to run apt-get update to correct these problems<br>E: Some index files failed to download, they have been ignored, or old ones used instead.<br>unquote<br><br>I see that
apt-get update read http://packages.debian.org/unstable/libs/ as http://packages.debian.org etch/unstable, which is incorrect. It's gotta be a brain fart on my part in decyphering the mans ( the only source of readable info I've found on this).<br><br>Here's the relevant section of man sources.list:<br><br> The format for a sources.list entry using the deb and deb-src types<br> are:<br>quote<br> deb uri distribution [component1] [component2] [...]<br><br> The URI for the deb type must specify the base of the Debian<br> distribution, from which APT will find the information it needs.<br> distribution can specify an exact path, in which case the components<br> must be omitted and distribution must end with a slash (/). This is<br>
useful for when only a particular sub-section of the archive denoted by<br> the URI is of interest. If distribution does not specify an exact path,<br> at least one component must be present.<br>unquote<br><br>Using that info, the line I've added at the end of sources.list looks to be correct, I get essentially the same results when I change the last line to:<br><br>quote<br>deb http://packages.debian.org/debian unstable contrib<br>unquote<br><br>If someone could shed some light on this or lead me in the right direction, I would be eternally grateful.<br>TIA<br><br>Kind regards,<br>Keith Mastin