[GLLUG] Retrieving debian source package.

Tim Woodall t at woodall.me.uk
Sun Jul 12 13:20:46 UTC 2020


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

> On Sun, 12 Jul 2020 at 10:14, Tim Woodall via GLLUG
> <gllug at mailman.lug.org.uk> wrote:
>>
>> Hi All,
>>
>> I'm struggling to work out how to retrieve a debian source package. I
>> get this:
>>
>> tim at 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 at 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 at 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 root    11729 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 at 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.




More information about the GLLUG mailing list