Re: [GLLUG] Retrieving debian source package.

2020-07-12 Thread Tim Woodall via GLLUG

On Sun, 12 Jul 2020, Tim Woodall via GLLUG wrote:


I have managed to get it to work but I don't like it:



Finally - I've worked out what I was doing wrong.

the deb10u2 was coming from security.debian.org but I wasn't getting the
sources from the same place.

Now it is all working the way I wanted it to with no pin hacks.

tim@dirac:~/git/pkgrebuild/squid$ apt-get --print-uris -t buster source
squid
Reading package lists... Done
Selected version '4.6-1+deb10u2' (buster) for squid
NOTICE: 'squid' packaging is maintained in the 'Git' version control
system at:
https://salsa.debian.org/squid-team/squid.git
Please use:
git clone https://salsa.debian.org/squid-team/squid.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 5,241 kB of source archives.
'http://security.debian.org/pool/updates/main/s/squid/squid_4.6-1+deb10u2.dsc' 
squid_4.6-1+deb10u2.dsc 2674 
SHA256:6642185cf2a43854da25982f7a6a8550439d172dd69183ffc5fccb6538f46641
'http://security.debian.org/pool/updates/main/s/squid/squid_4.6.orig.tar.gz' 
squid_4.6.orig.tar.gz 5174095 
SHA256:190f5c015624f53279e5376749b08192f4023219398db3a40892d484513701c7
'http://security.debian.org/pool/updates/main/s/squid/squid_4.6-1+deb10u2.debian.tar.xz'
 squid_4.6-1+deb10u2.debian.tar.xz 64420 
SHA256:38698bcb2340085843b502a8045292fcd911c266a9e653a1f7c7e0447a100154

Tim.



--
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug

Re: [GLLUG] Retrieving debian source package.

2020-07-12 Thread Tim Woodall via GLLUG

I have managed to get it to work but I don't like it:

(Obviously I also have a matching deb-src for buster-proposed-updates)

root@dirac:/etc/apt/sources.list.d# cat debian-proposed.sources 
Types: deb

URIs: http://ftp.uk.debian.org/debian
Suites: buster-proposed-updates
Components: main contrib non-free

root@dirac:/etc/apt/preferences.d# cat proposed-pin-100
Package: *
Pin: release
v=10-updates,o=Debian,a=proposed-updates,n=buster-proposed-updates,l=Debian,c=non-free,b=amd64
Pin-Priority: 100

Package: *
Pin: release
v=10-updates,o=Debian,a=proposed-updates,n=buster-proposed-updates,l=Debian,c=contrib,b=amd64
Pin-Priority: 100

Package: *
Pin: release
v=10-updates,o=Debian,a=proposed-updates,n=buster-proposed-updates,l=Debian,c=main,b=amd64
Pin-Priority: 100



tim@dirac:~/git/pkgrebuild/squid$ apt-get --print-uris -t 
buster-proposed-updates source squid
Reading package lists... Done
Selected version '4.6-1+deb10u2' (buster-proposed-updates) for squid
NOTICE: 'squid' packaging is maintained in the 'Git' version control
system at:
https://salsa.debian.org/squid-team/squid.git
Please use:
git clone https://salsa.debian.org/squid-team/squid.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 5,241 kB of source archives.
'http://ftp.uk.debian.org/debian/pool/main/s/squid/squid_4.6-1+deb10u2.dsc' 
squid_4.6-1+deb10u2.dsc 2674 
SHA256:6642185cf2a43854da25982f7a6a8550439d172dd69183ffc5fccb6538f46641
'http://ftp.uk.debian.org/debian/pool/main/s/squid/squid_4.6.orig.tar.gz' 
squid_4.6.orig.tar.gz 5174095 
SHA256:190f5c015624f53279e5376749b08192f4023219398db3a40892d484513701c7
'http://ftp.uk.debian.org/debian/pool/main/s/squid/squid_4.6-1+deb10u2.debian.tar.xz'
 squid_4.6-1+deb10u2.debian.tar.xz 64420 
SHA256:38698bcb2340085843b502a8045292fcd911c266a9e653a1f7c7e0447a100154


Tim.


On Sun, 12 Jul 2020, Tim Woodall via GLLUG wrote:


On Sun, 12 Jul 2020, James Courtier-Dutton via GLLUG wrote:


On Sun, 12 Jul 2020 at 10:14, Tim Woodall via GLLUG
 wrote:


Hi All,

I'm struggling to work out how to retrieve a debian source package. I
get this:

tim@dirac:~/git/pkgrebuild/squid$ apt-get --print-uris -t buster source 
squid

Reading package lists... Done
E: Can not find version '4.6-1+deb10u2' of package 'squid'
E: Unable to find a source package for squid



It should just work.

do you have the src  entries in you /etc/apt/sources.list ?  (or in
sources.list.d)
e.g. (This is the ubuntu equivalent, but the debian line should look 
similar)

deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted




Thanks.


I _think_ I have the correct deb src:

root@dirac:/etc/apt/sources.list.d# cat debian-security-src.sources
Types: deb-src
URIs: http://ftp.uk.debian.org/debian
Suites: buster-updates
Components: main contrib non-free


Hit:6 http://ftp.uk.debian.org/debian buster-updates InRelease
Hit:7 http://ftp.uk.debian.org/debian buster InRelease
Hit:8 http://ftp.uk.debian.org/debian testing InRelease
Hit:9 http://ftp.uk.debian.org/debian sid InRelease
Reading package lists... Done


root@dirac:/var/lib/apt/lists# ls -ltr *main_source_Sources
-rw-r--r-- 1 root root 40133547 May  9 09:56 
ftp.uk.debian.org_debian_dists_buster_main_source_Sources
-rw-r--r-- 1 root root11729 Jun 13 20:56 
ftp.uk.debian.org_debian_dists_buster-updates_main_source_Sources
-rw-r--r-- 1 root root 42526842 Jul 12 08:57 
ftp.uk.debian.org_debian_dists_testing_main_source_Sources
-rw-r--r-- 1 root root 45902184 Jul 12 08:57 
ftp.uk.debian.org_debian_dists_sid_main_source_Sources


Which matches ftp.debian.org (I did wonder if the ftp.uk.debian.org
mirror was out of date for some reason:

Index of /debian/dists/stable-updates/main/source
[ICO] Name Last modified Size
[PARENTDIR] Parent Directory   -
[ ] Release 2019-07-06 11:27  111
[DIR] Sources.diff/ 2020-07-12 08:19  -
[ ] Sources.gz 2020-06-13 19:56  3.9K
[ ] Sources.xz 2020-06-13 19:56  3.6K
[DIR] by-hash/ 2017-06-17 11:56  -

(Only difference is a timezone difference)

But the 4.6.1+deb10u2 exists in the binary list but not in the sources
lists. In fact squid doesn't appear at all in
ftp.uk.debian.org_debian_dists_buster-updates_main_source_Sources.


I'd assumed it was something I'd done wrong at my end but I'm starting
to suspect that the Sources.gz/Sources.xz for buster-updates
(stable-updates) is wrong.

I've managed to find a reference to this version in proposed-updates:

root@dirac:/var/lib/apt/lists# grep '4\.6-1+deb10u2' *Sources
ftp.uk.debian.org_debian_dists_proposed-updates_main_source_Sources:Version: 
4.6-1+deb10u2
ftp.uk.debian.org_debian_dists_proposed-updates_main_source_Sources: 
6642185cf2a43854da25982f7a6a8550439d172dd69183ffc5fccb6538f46641 2674 
squid_4.6-1+deb10u2.dsc
ftp.uk.debian.org_debian_dists_proposed-updates_main_source_Sources: 
38698bcb2340085843b502a8045292fcd911c266a9e653a1f7c7e0447a100154 64420 
squid_4.6-1+deb10u2.debian.tar.xz



Now I just have to work out how to get it to pull the source via this 

Re: [GLLUG] Retrieving debian source package.

2020-07-12 Thread Tim Woodall via GLLUG

On Sun, 12 Jul 2020, James Courtier-Dutton via GLLUG wrote:


On Sun, 12 Jul 2020 at 10:14, Tim Woodall via GLLUG
 wrote:


Hi All,

I'm struggling to work out how to retrieve a debian source package. I
get this:

tim@dirac:~/git/pkgrebuild/squid$ apt-get --print-uris -t buster source squid
Reading package lists... Done
E: Can not find version '4.6-1+deb10u2' of package 'squid'
E: Unable to find a source package for squid



It should just work.

do you have the src  entries in you /etc/apt/sources.list ?  (or in
sources.list.d)
e.g. (This is the ubuntu equivalent, but the debian line should look similar)
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted




Thanks.


I _think_ I have the correct deb src:

root@dirac:/etc/apt/sources.list.d# cat debian-security-src.sources
Types: deb-src
URIs: http://ftp.uk.debian.org/debian
Suites: buster-updates
Components: main contrib non-free


Hit:6 http://ftp.uk.debian.org/debian buster-updates InRelease
Hit:7 http://ftp.uk.debian.org/debian buster InRelease
Hit:8 http://ftp.uk.debian.org/debian testing InRelease
Hit:9 http://ftp.uk.debian.org/debian sid InRelease
Reading package lists... Done


root@dirac:/var/lib/apt/lists# ls -ltr *main_source_Sources
-rw-r--r-- 1 root root 40133547 May  9 09:56 
ftp.uk.debian.org_debian_dists_buster_main_source_Sources
-rw-r--r-- 1 root root11729 Jun 13 20:56 
ftp.uk.debian.org_debian_dists_buster-updates_main_source_Sources
-rw-r--r-- 1 root root 42526842 Jul 12 08:57 
ftp.uk.debian.org_debian_dists_testing_main_source_Sources
-rw-r--r-- 1 root root 45902184 Jul 12 08:57 
ftp.uk.debian.org_debian_dists_sid_main_source_Sources

Which matches ftp.debian.org (I did wonder if the ftp.uk.debian.org
mirror was out of date for some reason:

Index of /debian/dists/stable-updates/main/source
[ICO] Name Last modified Size
[PARENTDIR] Parent Directory   -
[ ] Release 2019-07-06 11:27  111
[DIR] Sources.diff/ 2020-07-12 08:19  -
[ ] Sources.gz 2020-06-13 19:56  3.9K
[ ] Sources.xz 2020-06-13 19:56  3.6K
[DIR] by-hash/ 2017-06-17 11:56  -

(Only difference is a timezone difference)

But the 4.6.1+deb10u2 exists in the binary list but not in the sources
lists. In fact squid doesn't appear at all in
ftp.uk.debian.org_debian_dists_buster-updates_main_source_Sources.


I'd assumed it was something I'd done wrong at my end but I'm starting
to suspect that the Sources.gz/Sources.xz for buster-updates
(stable-updates) is wrong.

I've managed to find a reference to this version in proposed-updates:

root@dirac:/var/lib/apt/lists# grep '4\.6-1+deb10u2' *Sources
ftp.uk.debian.org_debian_dists_proposed-updates_main_source_Sources:Version: 
4.6-1+deb10u2
ftp.uk.debian.org_debian_dists_proposed-updates_main_source_Sources: 
6642185cf2a43854da25982f7a6a8550439d172dd69183ffc5fccb6538f46641 2674 
squid_4.6-1+deb10u2.dsc
ftp.uk.debian.org_debian_dists_proposed-updates_main_source_Sources: 
38698bcb2340085843b502a8045292fcd911c266a9e653a1f7c7e0447a100154 64420 
squid_4.6-1+deb10u2.debian.tar.xz


Now I just have to work out how to get it to pull the source via this (I
don't want to include proposed updates in my binary sources but perhaps
I'll have to and then pin it at a very low priority.)


Tim.


--
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug

Re: [GLLUG] Retrieving debian source package.

2020-07-12 Thread Martin A. Brooks via GLLUG

On 2020-07-12 10:14, Tim Woodall via GLLUG wrote:

E: Can not find version '4.6-1+deb10u2' of package 'squid'
E: Unable to find a source package for squid


...



I have this in my lists:

Package: squid
Binary: squid3, squid, squid-common, squidclient, squid-cgi, 
squid-purge

Version: 4.6-1+deb10u1



4.6-1+deb10u1 and 4.6-1+deb10u2 are not the same thing.

I suggest "apt-get update".



--
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug

Re: [GLLUG] Retrieving debian source package.

2020-07-12 Thread James Courtier-Dutton via GLLUG
On Sun, 12 Jul 2020 at 10:14, Tim Woodall via GLLUG
 wrote:
>
> Hi All,
>
> I'm struggling to work out how to retrieve a debian source package. I
> get this:
>
> tim@dirac:~/git/pkgrebuild/squid$ apt-get --print-uris -t buster source squid
> Reading package lists... Done
> E: Can not find version '4.6-1+deb10u2' of package 'squid'
> E: Unable to find a source package for squid
>

It should just work.

do you have the src  entries in you /etc/apt/sources.list ?  (or in
sources.list.d)
e.g. (This is the ubuntu equivalent, but the debian line should look similar)
deb-src http://gb.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

-- 
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug

Re: [GLLUG] Retrieving debian source package.

2020-07-12 Thread John Hearns via GLLUG
If you can 'see' the source package can you not use wget to download it?

On Sun, 12 Jul 2020 at 10:14, Tim Woodall via GLLUG <
gllug@mailman.lug.org.uk> wrote:

> Hi All,
>
> I'm struggling to work out how to retrieve a debian source package. I
> get this:
>
> tim@dirac:~/git/pkgrebuild/squid$ apt-get --print-uris -t buster source
> squid
> Reading package lists... Done
> E: Can not find version '4.6-1+deb10u2' of package 'squid'
> E: Unable to find a source package for squid
>
> I can see the source packages in http://ftp.uk.debian.org/
>
> I have this in my lists:
>
> Package: squid
> Binary: squid3, squid, squid-common, squidclient, squid-cgi, squid-purge
> Version: 4.6-1+deb10u1
> Maintainer: Luigi Gangitano 
> Uploaders: Santiago Garcia Mantinan 
>
>
> And there's nothing for squid in buster-updates sources which is where the
> Version: 4.6-1+deb10u2
> binary package lives.
>
>
> Obviously I can manually download these source files and work from that
> but I'd like to understand how this is supposed to work.
>
> These are, I think, the relevant sources:
> root@dirac:/etc/apt/sources.list.d# grep "" *src.sources
> debian-security-src.sources:Types: deb-src
> debian-security-src.sources:URIs: http://ftp.uk.debian.org/debian
> debian-security-src.sources:Suites
> :
> buster-updates
> debian-security-src.sources:Components: main contrib non-free
> debian-security-src.sources:
> debian-src.sources:Types: deb-src
> debian-src.sources:URIs: http://ftp.uk.debian.org/debian
> debian-src.sources:Suites: buster testing sid
> debian-src.sources:Components: main contrib non-free
> debian-src.sources:
>
>
> Can anybody tell me what, if anything, I'm doing wrong?
>
>
> --
> GLLUG mailing list
> GLLUG@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/gllug
-- 
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug

[GLLUG] Retrieving debian source package.

2020-07-12 Thread Tim Woodall via GLLUG

Hi All,

I'm struggling to work out how to retrieve a debian source package. I
get this:

tim@dirac:~/git/pkgrebuild/squid$ apt-get --print-uris -t buster source squid
Reading package lists... Done
E: Can not find version '4.6-1+deb10u2' of package 'squid'
E: Unable to find a source package for squid

I can see the source packages in http://ftp.uk.debian.org/

I have this in my lists:

Package: squid
Binary: squid3, squid, squid-common, squidclient, squid-cgi, squid-purge
Version: 4.6-1+deb10u1
Maintainer: Luigi Gangitano 
Uploaders: Santiago Garcia Mantinan 


And there's nothing for squid in buster-updates sources which is where the
Version: 4.6-1+deb10u2
binary package lives.


Obviously I can manually download these source files and work from that
but I'd like to understand how this is supposed to work.

These are, I think, the relevant sources:
root@dirac:/etc/apt/sources.list.d# grep "" *src.sources
debian-security-src.sources:Types: deb-src
debian-security-src.sources:URIs: http://ftp.uk.debian.org/debian
debian-security-src.sources:Suites: buster-updates
debian-security-src.sources:Components: main contrib non-free
debian-security-src.sources:
debian-src.sources:Types: deb-src
debian-src.sources:URIs: http://ftp.uk.debian.org/debian
debian-src.sources:Suites: buster testing sid
debian-src.sources:Components: main contrib non-free
debian-src.sources:


Can anybody tell me what, if anything, I'm doing wrong?


--
GLLUG mailing list
GLLUG@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug