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

2017-08-21 Thread Brian
On Mon 21 Aug 2017 at 17:02:44 -0400, Kynn Jones wrote:

> On Mon, Aug 21, 2017 at 6:34 AM, Darac Marjal 
> wrote:
> 
> > What happens if you try to get the source package directly?
> >
> > % apt-get source emacs25
 
> I get exactly the same error.

deb.debian.org does not have packages itself but looks for suitable
places to get the package for you. Maybe it is finding somewhere which
does not have what you want. Try replacing deb.debian.org with somewhere
else in /etc/apt/sources.list.

-- 
Brian.



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

2017-08-21 Thread Kynn Jones
On Mon, Aug 21, 2017 at 6:34 AM, Darac Marjal 
wrote:

> On Sun, Aug 20, 2017 at 08:08:07PM -0400, Kynn Jones 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  [1]http://deb.debian.org/debian stretch main contrib non-free
>>   deb-src  [2]http://deb.debian.org/debian stretch main contrib
>> non-free
>>
>>   deb  [3]http://deb.debian.org/debian stretch-updates main contrib
>> non-free
>>   deb-src  [4]http://deb.debian.org/debian stretch-updates main
>> contrib non-free
>>
>>   deb [5]http://security.debian.org/ stretch/updates main contrib
>> non-free
>>   deb-src [6]http://security.debian.org/ stretch/updates main
>> contrib non-free
>>
>>   What am I doing wrong?
>>
>
> What happens if you try to get the source package directly?
>
> % apt-get source emacs25
>


I get exactly the same error.


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

2017-08-21 Thread Darac Marjal

On Sun, Aug 20, 2017 at 08:08:07PM -0400, Kynn Jones 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  [1]http://deb.debian.org/debian stretch main contrib non-free
      deb-src  [2]http://deb.debian.org/debian stretch main contrib non-free

      deb  [3]http://deb.debian.org/debian stretch-updates main contrib non-free
      deb-src  [4]http://deb.debian.org/debian stretch-updates main contrib 
non-free

      deb [5]http://security.debian.org/ stretch/updates main contrib non-free
      deb-src [6]http://security.debian.org/ stretch/updates main contrib 
non-free

  What am I doing wrong?


What happens if you try to get the source package directly?

% apt-get source emacs25

(I don't *think* you need to be root to run 'apt-get source', but if it 
complains about permissions, try again with sudo).




References

  Visible links
  1. http://deb.debian.org/debian
  2. http://deb.debian.org/debian
  3. http://deb.debian.org/debian
  4. http://deb.debian.org/debian
  5. http://security.debian.org/
  6. http://security.debian.org/


--
For more information, please reread.


signature.asc
Description: PGP signature


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

2017-08-21 Thread Curt
On 2017-08-21, Dejan Jocic  wrote:
> On 21-08-17, Kynn Jones wrote:
>> OK, I added the trailing / (which, BTW, I guarantee I *never* needed
>> before, and I've been doing this for years), ran apt-get update, etc., but
>> in the end I got the same results.
>> 
>> Does apt-get build-dep emacs25 work ok for you all?  (I assume that if you
>> try it, you'll get a Y/N prompt that'll let you back out.)
>> 
>> Thanks!
>> 
>
> Hmm, live and learn. I've been using trailing / for years, I think.
> Anyway, yes, apt-get build-dep emacs25 works here fine, at least with
> --simulate flag.
>

I have none and neither does the wiki (trailing slashes, that is).

https://wiki.debian.org/SourcesList


-- 
"One can remain alive long past the usual date of disintegration if one is
unafraid of change, insatiable in intellectual curiosity, interested in big
things, and happy in small things." — Edith Wharton




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

2017-08-21 Thread Kynn Jones
On Mon, Aug 21, 2017 at 6:02 AM, Kynn Jones  wrote:

> (Sorry, Dejan; I intended to send this to the list.  Apologies for the
> duplicate message.)
>
> On Mon, Aug 21, 2017 at 5:13 AM, Dejan Jocic  wrote:
>
>> Anyway, yes, apt-get build-dep emacs25 works here fine, at least with
>> --simulate flag.
>>
>>
> Thanks!  That's good to know.  It means that I have a misconfiguration
> somewhere.
>
> How do I troubleshoot this problem further?
>

Also, for the record, normal `apt-get install ...` works fine.


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

2017-08-21 Thread Kynn Jones
(Sorry, Dejan; I intended to send this to the list.  Apologies for the
duplicate message.)

On Mon, Aug 21, 2017 at 5:13 AM, Dejan Jocic  wrote:

> Anyway, yes, apt-get build-dep emacs25 works here fine, at least with
> --simulate flag.
>
>
Thanks!  That's good to know.  It means that I have a misconfiguration
somewhere.

How do I troubleshoot this problem further?

On Mon, Aug 21, 2017 at 5:13 AM, Dejan Jocic  wrote:

> On 21-08-17, Kynn Jones wrote:
> > OK, I added the trailing / (which, BTW, I guarantee I *never* needed
> > before, and I've been doing this for years), ran apt-get update, etc.,
> but
> > in the end I got the same results.
> >
> > Does apt-get build-dep emacs25 work ok for you all?  (I assume that if
> you
> > try it, you'll get a Y/N prompt that'll let you back out.)
> >
> > Thanks!
> >
>
> Hmm, live and learn. I've been using trailing / for years, I think.
> Anyway, yes, apt-get build-dep emacs25 works here fine, at least with
> --simulate flag.
>
>


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

2017-08-21 Thread Dejan Jocic
On 21-08-17, Kynn Jones wrote:
> OK, I added the trailing / (which, BTW, I guarantee I *never* needed
> before, and I've been doing this for years), ran apt-get update, etc., but
> in the end I got the same results.
> 
> Does apt-get build-dep emacs25 work ok for you all?  (I assume that if you
> try it, you'll get a Y/N prompt that'll let you back out.)
> 
> Thanks!
> 

Hmm, live and learn. I've been using trailing / for years, I think.
Anyway, yes, apt-get build-dep emacs25 works here fine, at least with
--simulate flag.



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

2017-08-21 Thread Kynn Jones
OK, I added the trailing / (which, BTW, I guarantee I *never* needed
before, and I've been doing this for years), ran apt-get update, etc., but
in the end I got the same results.

Does apt-get build-dep emacs25 work ok for you all?  (I assume that if you
try it, you'll get a Y/N prompt that'll let you back out.)

Thanks!


On Mon, Aug 21, 2017 at 3:42 AM, Cindy-Sue Causey 
wrote:

> On 8/21/17, Dejan Jocic  wrote:
> > On 20-08-17, kamaraju kusumanchi wrote:
> >> On Sun, Aug 20, 2017 at 8:08 PM, Kynn Jones  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
>
>
> I came in here to ask about the "apt-get update", too.
>
> I was also wondering about the "httpredir" one. There was some
> publicity about it becoming "a thing" to do a long time ago. Then I
> noticed it disappeared out of my new installations. And then I read
> something about it going by the wayside. :)
>
> I tried this command earlier. It failed with the same error as Kynn.
> While I was dissecting to see if I could catch some tiny error in
> Kynn's sources.list, I smacked myself in the head about mine.
>
> Of course mine wouldn't work. My sources.list was only one line. It
> didn't have the deb-src line. Always wondered what that was for, now I
> know. I had just been thinking about changing that yesterday so I did
> today.
>
> My lines don't have slashes at the end. I didn't do that. Debootstrap
> sets it up with no trailing slash. In fact I just got to verify for
> 100% because I ran the first step in debootstrap'ing Sid again a
> couple hours ago.
>
> I just ran the "apt-get build-dep emacs25" command again.. It's
> working as expected now... so I'm back to leaning heavy on did you
> "apt-get update"? :)
>
> Cindy :)
> --
> Cindy-Sue Causey
> Talking Rock, Pickens County, Georgia, USA
>
> * runs with duct tape *
>
>


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

2017-08-21 Thread Cindy-Sue Causey
On 8/21/17, Dejan Jocic  wrote:
> On 20-08-17, kamaraju kusumanchi wrote:
>> On Sun, Aug 20, 2017 at 8:08 PM, Kynn Jones  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


I came in here to ask about the "apt-get update", too.

I was also wondering about the "httpredir" one. There was some
publicity about it becoming "a thing" to do a long time ago. Then I
noticed it disappeared out of my new installations. And then I read
something about it going by the wayside. :)

I tried this command earlier. It failed with the same error as Kynn.
While I was dissecting to see if I could catch some tiny error in
Kynn's sources.list, I smacked myself in the head about mine.

Of course mine wouldn't work. My sources.list was only one line. It
didn't have the deb-src line. Always wondered what that was for, now I
know. I had just been thinking about changing that yesterday so I did
today.

My lines don't have slashes at the end. I didn't do that. Debootstrap
sets it up with no trailing slash. In fact I just got to verify for
100% because I ran the first step in debootstrap'ing Sid again a
couple hours ago.

I just ran the "apt-get build-dep emacs25" command again.. It's
working as expected now... so I'm back to leaning heavy on did you
"apt-get update"? :)

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with duct tape *



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

2017-08-21 Thread Sven Hartge
kamaraju kusumanchi  wrote:

> 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.

Both URLs point to exactly the same service. The old
httpredir.debian.org has been discontinued and its hostname points to
deb.debian.org.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



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

2017-08-21 Thread Dejan Jocic
On 20-08-17, kamaraju kusumanchi wrote:
> On Sun, Aug 20, 2017 at 8:08 PM, Kynn Jones  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
> 



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

2017-08-20 Thread kamaraju kusumanchi
On Sun, Aug 20, 2017 at 9:12 PM, Kynn Jones  wrote:
> Raju, thanks.  I get the same error after I make that change.
>

You need to run "apt-get update" after updating the
/etc/apt/sources.list file with the new mirror. Have you done that
already? Were there any errors when you did that?

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



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

2017-08-20 Thread Jude DaShiell

Please try apt-cache search emacsbuild-dep
apt-cache search emacs25
If both packages show up in above commands then your apt-get command 
ought to work.
On Sun, 20 Aug 2017, Kynn Jones 
wrote:



Date: Sun, 20 Aug 2017 20:08:07
From: Kynn Jones <kyn...@gmail.com>
To: Debian User <debian-user@lists.debian.org>
Subject: apt-get: Why "Unable to find source package" errors?
Resent-Date: Mon, 21 Aug 2017 00:08:24 + (UTC)
Resent-From: debian-user@lists.debian.org

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?



--



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

2017-08-20 Thread Kynn Jones
Raju, thanks.  I get the same error after I make that change.


On Sun, Aug 20, 2017 at 8:51 PM, kamaraju kusumanchi <
raju.mailingli...@gmail.com> wrote:

> On Sun, Aug 20, 2017 at 8:08 PM, Kynn Jones  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.
>
> raju
> --
> Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog
>
>


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

2017-08-20 Thread kamaraju kusumanchi
On Sun, Aug 20, 2017 at 8:08 PM, Kynn Jones  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.

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



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

2017-08-20 Thread Kynn Jones
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?