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

Re: apt-get: Why "Unable to find source package" errors?



On 20-08-17, kamaraju kusumanchi wrote:
> On Sun, Aug 20, 2017 at 8:08 PM, Kynn Jones <kynnjo@gmail.com> wrote:
> > Example:
> >
> >     % sudo apt-get build-dep emacs25
> >     Reading package lists... Done
> >     E: Unable to find a source package for emacs25
> >
> > I have run `apt-get update` before running the command above, and my
> > `/etc/apt/sources.list` file contains the following
> >
> >     deb  http://deb.debian.org/debian stretch main contrib non-free
> >     deb-src  http://deb.debian.org/debian stretch main contrib non-free
> >
> >     deb  http://deb.debian.org/debian stretch-updates main contrib non-free
> >     deb-src  http://deb.debian.org/debian stretch-updates main contrib
> > non-free
> >
> >     deb http://security.debian.org/ stretch/updates main contrib non-free
> >     deb-src http://security.debian.org/ stretch/updates main contrib
> > non-free
> >
> > What am I doing wrong?
> 
> Your apt-get build-dep command is fine. This could be be a problem
> with the particular mirror you are using. Try using
> http://httpredir.debian.org/debian/ instead of
> http://deb.debian.org/debian and see if that works.
> 

Actually, httpredir.debian.org is unmaintained and all it does is to
redirect to deb.debian.org. What he does miss is / after debian. So it
looks like this:

deb http://deb.debian.org/debian/ stretch main contrib non-free
deb-src http://deb.debian.org/debian/ stretch main contrib non-free

deb http://deb.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stretch-updates main contrib non-free


> raju
> -- 
> Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog
> 


Reply to: