[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: corrupted sources.list (file below)



On Tuesday 08 November 2005 17:39, Sam Rosenfeld wrote:
> My sources.list file is listed in its entirety below.
>
> On Sun, 6 Nov 2005, Sam Rosenfeld wrote:
> > My version of debian 3.1 was downloaded via the net, and the original
> > files, which contained the info for the sources.list file, have been
> > lost. When I try to install package pkg with "apt-get install pkg" I
> > get the following message:
> >
> > W: Couldn't stat source package list http://security.debian.org
> > stable/updates/contrib Packages
> > (/var/lib/apt/lists/security.debian.org_dists_stable_updates_contrib_bi
> >nary-i386_Packages) - stat (2 No such file or directory)
> >
> > W: Couldn't stat source package list http://security.debian.org
> > stable/updates/non-free Packages
> > (/var/lib/apt/lists/security.debian.org_dists_stable_updates_non-free_b
> >inary-i386_Packages) - stat (2 No such file or directory)
> >
> > W: You may want to run apt-get update to correct these problems
> > E: Package pkg has no installation candidate
>
> I have running apt-get update with zero results.
>
> > In addition, I have a strange (to me) problem with my "man" bin file;
> > it doesn't get and display the contents of manpages (though they exist
> > in my /usr/share/man/man1-8/ folders).  Is it possible that this man
> > problem is related to the sources.list problem?
> >
> > Will appreciate any clear doc (or explanation) dealing with either or
> > both of the above problem(s).
>
> # See sources.list(5) for more information, especially
> # Remember that you can only use http, ftp or file URIs
> # CDROMs are managed through the apt-cdrom tool.
> deb http://http.us.debian.org/debian stable main contrib non-free
> deb http://non-us.debian.org/debian-non-US stable/non-US main contrib
> non-free deb http://security.debian.org stable/updates main contrib
> non-free

Looks like you're missing a '/' at the end of the http://security.debian.org 
part.  Change
http://security.debian.org stable/updates main contrib non-free
to
http://security.debian.org/ stable/updates main contrib non-free
and then run apt-get update, and see if that helps.
>
> # Uncomment if you want the apt-get source function to work
> deb-src http://http.us.debian.org/debian stable main contrib non-free
> deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib
> non-free

Hope that helps,
Justin Guerin



Reply to: