Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[bullseye] r-cran-ggplot2 depends on missing libpq5 v13.8

10 views
Skip to first unread message

Loris Bennett

unread,
Mar 10, 2023, 4:20:06 AM3/10/23
to
Hi,

I am on bullseye and am trying to install the package r-cran-ggplot2.
This fails with

E: Failed to fetch
http://deb.debian.org/debian/pool/main/p/postgresql-13/libpq5_13.8-0%2bdeb11u1_amd64.deb
404 Not Found [IP: 146.75.122.132 80]

(full output below).

There seems to be a dependency on libpq5 version 13.8 whereas the
version available for bullseye is 13.9.

Any ideas how to solve this?

Cheers,

Loris

root:~# apt-get install r-cran-ggplot2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
fonts-glyphicons-halflings fonts-mathjax libboost-dev libboost1.74-dev
libc-ares2 libcmark-gfm-extensions0 libcmark-gfm0 libjs-bootstrap
libjs-d3 libjs-es5-shim libjs-highlight.js libjs-jquery-datatables
libjs-jquery-datatables-extensions libjs-jquery-selectize.js
libjs-jquery-ui libjs-json libjs-mathjax libjs-microplugin.js
libjs-modernizr libjs-prettify libjs-sifter.js
libjs-twitter-bootstrap-datepicker libnode72 libpq5 littler
node-highlight.js node-html5shiv nodejs nodejs-doc pandoc pandoc-data
r-cran-askpass r-cran-assertthat r-cran-base64enc r-cran-bh r-cran-bit
r-cran-bit64 r-cran-bitops r-cran-blob r-cran-brew r-cran-brio
r-cran-cachem r-cran-callr r-cran-cli r-cran-cliapp r-cran-clipr
r-cran-colorspace r-cran-commonmark r-cran-conquer r-cran-covr
r-cran-cpp11 r-cran-crayon r-cran-credentials r-cran-crosstalk
r-cran-curl r-cran-data.table r-cran-dbi r-cran-dbitest r-cran-dbplyr
r-cran-decor r-cran-desc r-cran-devtools r-cran-diffobj r-cran-digest
r-cran-dplyr r-cran-dt r-cran-dygraphs r-cran-ellipsis r-cran-evaluate
r-cran-fansi r-cran-farver r-cran-fastmap r-cran-filehash
r-cran-fontbitstreamvera r-cran-fontliberation r-cran-fontquiver
r-cran-freetypeharfbuzz r-cran-fs r-cran-fts r-cran-future
r-cran-gdtools r-cran-generics r-cran-gert r-cran-gh r-cran-gitcreds
r-cran-globals r-cran-glue r-cran-gtable r-cran-hexbin r-cran-highr
r-cran-hms r-cran-htmltools r-cran-htmlwidgets r-cran-httpuv
r-cran-httr r-cran-ini r-cran-isoband r-cran-jsonlite r-cran-knitr
r-cran-labeling r-cran-later r-cran-lazyeval r-cran-lifecycle
r-cran-listenv r-cran-littler r-cran-lubridate r-cran-magrittr
r-cran-mapproj r-cran-maps r-cran-markdown r-cran-matrixmodels
r-cran-matrixstats r-cran-memoise r-cran-mime r-cran-mockery
r-cran-mockr r-cran-munsell r-cran-openssl r-cran-parallelly
r-cran-pillar r-cran-pkgbuild r-cran-pkgconfig r-cran-pkgkitten
r-cran-pkgload r-cran-plogr r-cran-png r-cran-praise r-cran-prettycode
r-cran-prettyunits r-cran-processx r-cran-progress r-cran-promises
r-cran-ps r-cran-purrr r-cran-quadprog r-cran-quantmod r-cran-quantreg
r-cran-r.methodss3 r-cran-r.oo r-cran-r6 r-cran-rappdirs
r-cran-rcmdcheck r-cran-rcolorbrewer r-cran-rcpp r-cran-rcpparmadillo
r-cran-rematch2 r-cran-remotes r-cran-rex r-cran-rlang
r-cran-rmarkdown r-cran-rmysql r-cran-roxygen2 r-cran-rpostgresql
r-cran-rprojroot r-cran-rsqlite r-cran-rstudioapi r-cran-runit
r-cran-rversions r-cran-scales r-cran-selectr r-cran-sessioninfo
r-cran-shiny r-cran-sodium r-cran-sourcetools r-cran-sp r-cran-sparsem
r-cran-stringi r-cran-stringr r-cran-sys r-cran-systemfonts
r-cran-testit r-cran-testthat r-cran-tibble r-cran-tidyr
r-cran-tidyselect r-cran-tikzdevice r-cran-timedate r-cran-timeseries
r-cran-tinytex r-cran-tseries r-cran-ttr r-cran-usethis r-cran-utf8
r-cran-vctrs r-cran-vdiffr r-cran-viridislite r-cran-waldo
r-cran-webutils r-cran-whisker r-cran-withr r-cran-xfun r-cran-xml
r-cran-xml2 r-cran-xopen r-cran-xtable r-cran-xts r-cran-yaml
r-cran-zip r-cran-zoo ttf-bitstream-vera
Suggested packages:
libboost-doc libboost1.74-doc libboost-atomic1.74-dev
libboost-chrono1.74-dev libboost-container1.74-dev
libboost-context1.74-dev libboost-contract1.74-dev
libboost-coroutine1.74-dev libboost-date-time1.74-dev
libboost-exception1.74-dev libboost-fiber1.74-dev
libboost-filesystem1.74-dev libboost-graph1.74-dev
libboost-graph-parallel1.74-dev libboost-iostreams1.74-dev
libboost-locale1.74-dev libboost-log1.74-dev libboost-math1.74-dev
libboost-mpi1.74-dev libboost-mpi-python1.74-dev
libboost-numpy1.74-dev libboost-program-options1.74-dev
libboost-python1.74-dev libboost-random1.74-dev libboost-regex1.74-dev
libboost-serialization1.74-dev libboost-stacktrace1.74-dev
libboost-system1.74-dev libboost-test1.74-dev libboost-thread1.74-dev
libboost-timer1.74-dev libboost-type-erasure1.74-dev
libboost-wave1.74-dev libboost1.74-tools-dev libmpfrc++-dev libntl-dev
libboost-nowide1.74-dev libjs-jquery-ui-docs fonts-mathjax-extras
fonts-stix libjs-mathjax-doc npm texlive-xetex texlive-luatex
pandoc-citeproc context wkhtmltopdf librsvg2-bin groff ghc php python
node-katex citation-style-language-styles r-cran-kernlab
r-cran-mvtnorm r-cran-vcd r-cran-shinyjs r-cran-jpeg r-cran-viridis
r-cran-bench r-cran-r.utils r-cran-biocmanager r-cran-broom
r-cran-unitizer r-cran-hmisc r-cran-maptools r-cran-multcomp r-cran-sf
r-cran-svglite r-cran-forcats r-bioc-affy r-bioc-biobase r-bioc-limma
r-cran-cairo r-cran-ragg r-cran-readr r-cran-magick r-cran-plyr
r-cran-formatr r-cran-rgl r-cran-webshot r-cran-reticulate
r-cran-getopt r-cran-mapdata r-cran-rcurl r-cran-inline r-cran-git2r
r-cran-rvest r-cran-tufte r-cran-rsconnect r-cran-dichromat
r-cran-rgdal r-cran-deldir r-cran-formattable r-cran-robustbase
r-cran-zeallot r-cran-plm r-cran-chron
The following NEW packages will be installed:
fonts-glyphicons-halflings fonts-mathjax libboost-dev libboost1.74-dev
libc-ares2 libcmark-gfm-extensions0 libcmark-gfm0 libjs-bootstrap
libjs-d3 libjs-es5-shim libjs-highlight.js libjs-jquery-datatables
libjs-jquery-datatables-extensions libjs-jquery-selectize.js
libjs-jquery-ui libjs-json libjs-mathjax libjs-microplugin.js
libjs-modernizr libjs-prettify libjs-sifter.js
libjs-twitter-bootstrap-datepicker libnode72 libpq5 littler
node-highlight.js node-html5shiv nodejs nodejs-doc pandoc pandoc-data
r-cran-askpass r-cran-assertthat r-cran-base64enc r-cran-bh r-cran-bit
r-cran-bit64 r-cran-bitops r-cran-blob r-cran-brew r-cran-brio
r-cran-cachem r-cran-callr r-cran-cli r-cran-cliapp r-cran-clipr
r-cran-colorspace r-cran-commonmark r-cran-conquer r-cran-covr
r-cran-cpp11 r-cran-crayon r-cran-credentials r-cran-crosstalk
r-cran-curl r-cran-data.table r-cran-dbi r-cran-dbitest r-cran-dbplyr
r-cran-decor r-cran-desc r-cran-devtools r-cran-diffobj r-cran-digest
r-cran-dplyr r-cran-dt r-cran-dygraphs r-cran-ellipsis r-cran-evaluate
r-cran-fansi r-cran-farver r-cran-fastmap r-cran-filehash
r-cran-fontbitstreamvera r-cran-fontliberation r-cran-fontquiver
r-cran-freetypeharfbuzz r-cran-fs r-cran-fts r-cran-future
r-cran-gdtools r-cran-generics r-cran-gert r-cran-ggplot2 r-cran-gh
r-cran-gitcreds r-cran-globals r-cran-glue r-cran-gtable r-cran-hexbin
r-cran-highr r-cran-hms r-cran-htmltools r-cran-htmlwidgets
r-cran-httpuv r-cran-httr r-cran-ini r-cran-isoband r-cran-jsonlite
r-cran-knitr r-cran-labeling r-cran-later r-cran-lazyeval
r-cran-lifecycle r-cran-listenv r-cran-littler r-cran-lubridate
r-cran-magrittr r-cran-mapproj r-cran-maps r-cran-markdown
r-cran-matrixmodels r-cran-matrixstats r-cran-memoise r-cran-mime
r-cran-mockery r-cran-mockr r-cran-munsell r-cran-openssl
r-cran-parallelly r-cran-pillar r-cran-pkgbuild r-cran-pkgconfig
r-cran-pkgkitten r-cran-pkgload r-cran-plogr r-cran-png r-cran-praise
r-cran-prettycode r-cran-prettyunits r-cran-processx r-cran-progress
r-cran-promises r-cran-ps r-cran-purrr r-cran-quadprog r-cran-quantmod
r-cran-quantreg r-cran-r.methodss3 r-cran-r.oo r-cran-r6
r-cran-rappdirs r-cran-rcmdcheck r-cran-rcolorbrewer r-cran-rcpp
r-cran-rcpparmadillo r-cran-rematch2 r-cran-remotes r-cran-rex
r-cran-rlang r-cran-rmarkdown r-cran-rmysql r-cran-roxygen2
r-cran-rpostgresql r-cran-rprojroot r-cran-rsqlite r-cran-rstudioapi
r-cran-runit r-cran-rversions r-cran-scales r-cran-selectr
r-cran-sessioninfo r-cran-shiny r-cran-sodium r-cran-sourcetools
r-cran-sp r-cran-sparsem r-cran-stringi r-cran-stringr r-cran-sys
r-cran-systemfonts r-cran-testit r-cran-testthat r-cran-tibble
r-cran-tidyr r-cran-tidyselect r-cran-tikzdevice r-cran-timedate
r-cran-timeseries r-cran-tinytex r-cran-tseries r-cran-ttr
r-cran-usethis r-cran-utf8 r-cran-vctrs r-cran-vdiffr
r-cran-viridislite r-cran-waldo r-cran-webutils r-cran-whisker
r-cran-withr r-cran-xfun r-cran-xml r-cran-xml2 r-cran-xopen
r-cran-xtable r-cran-xts r-cran-yaml r-cran-zip r-cran-zoo
ttf-bitstream-vera 0 upgraded, 201 newly installed, 0 to remove and 0
not upgraded. Need to get 180 kB/130 MB of archives. After this
operation, 561 MB of additional disk space will be used. Do you want
to continue? [Y/n] y Err:1 http://deb.debian.org/debian bullseye/main
amd64 libpq5 amd64 13.8-0+deb11u1 404 Not Found [IP: 146.75.122.132
80] E: Failed to fetch
http://deb.debian.org/debian/pool/main/p/postgresql-13/libpq5_13.8-0%2bdeb11u1_amd64.deb
404 Not Found [IP: 146.75.122.132 80] E: Unable to fetch some
archives, maybe run apt-get update or try with --fix-missing?

--
This signature is currently under constuction.

David Wright

unread,
Mar 10, 2023, 10:10:05 PM3/10/23
to
On Fri 10 Mar 2023 at 10:10:48 (+0100), Loris Bennett wrote:
>
> I am on bullseye and am trying to install the package r-cran-ggplot2.
> This fails with
>
> E: Failed to fetch
> http://deb.debian.org/debian/pool/main/p/postgresql-13/libpq5_13.8-0%2bdeb11u1_amd64.deb
> 404 Not Found [IP: 146.75.122.132 80]
>
> (full output below).
>
> There seems to be a dependency on libpq5 version 13.8 whereas the
> version available for bullseye is 13.9.
>
> Any ideas how to solve this?

Try:

# apt-get update

first.

Cheers,
David.

Loris Bennett

unread,
Mar 13, 2023, 2:40:06 AM3/13/23
to
I had already done this. It does not solve the problem.

Cheers,

Loris

David Wright

unread,
Mar 13, 2023, 12:00:05 PM3/13/23
to
OK, forget all the r-cran stuff for the moment.
The current version of libpq5 is:

$ dpkg -l | grep libpq5
ii libpq5:amd64 13.9-0+deb11u1 amd64 PostgreSQL C client library
$

and you don't have libpq5 installed, so what do you get from this?

# apt-get install libpq5

If that fails, I think we need to see your /etc/apt/sources.list
and anything in /etc/apt/sources.list.d/*

Cheers,
David.

Loris Bennett

unread,
Mar 14, 2023, 3:00:07 AM3/14/23
to
David Wright <deb...@lionunicorn.co.uk> writes:

> On Mon 13 Mar 2023 at 07:38:50 (+0100), Loris Bennett wrote:
>> David Wright <deb...@lionunicorn.co.uk> writes:
>> > On Fri 10 Mar 2023 at 10:10:48 (+0100), Loris Bennett wrote:
>> >>
>> >> I am on bullseye and am trying to install the package r-cran-ggplot2.
>> >> This fails with
>> >>
>> >> E: Failed to fetch
>> >> http://deb.debian.org/debian/pool/main/p/postgresql-13/libpq5_13.8-0%2bdeb11u1_amd64.deb
>> >> 404 Not Found [IP: 146.75.122.132 80]
>> >>
>> >> (full output below).
>> >>
>> >> There seems to be a dependency on libpq5 version 13.8 whereas the
>> >> version available for bullseye is 13.9.
>> >>
>> >> Any ideas how to solve this?
>> >
>> > Try:
>> >
>> > # apt-get update
>> >
>> > first.
>>
>> I had already done this. It does not solve the problem.
>
> OK, forget all the r-cran stuff for the moment.
> The current version of libpq5 is:
>
> $ dpkg -l | grep libpq5
> ii libpq5:amd64 13.9-0+deb11u1 amd64 PostgreSQL C client library
> $
>
> and you don't have libpq5 installed, so what do you get from this?
>
> # apt-get install libpq5

root:~# apt-get install libpq5
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
libpq5
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 180 kB of archives.
After this operation, 805 kB of additional disk space will be used.
Err:1 http://deb.debian.org/debian bullseye/main amd64 libpq5 amd64 13.8-0+deb11u1
404 Not Found [IP: 146.75.118.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/p/postgresql-13/libpq5_13.8-0%2bdeb11u1_amd64.deb 404 Not Found [IP: 146.75.118.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

> If that fails, I think we need to see your /etc/apt/sources.list
> and anything in /etc/apt/sources.list.d/*

root:~# cat /etc/apt/sources.list
# See https://wiki.debian.org/SourcesList for more information.
deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free

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

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

So relative to the original 'source.list' I just added 'contrib' and
'non-free'. I have nothing in 'sources.list.d':

root:~# ll /etc/apt/sources.list.d
total 0

to...@tuxteam.de

unread,
Mar 14, 2023, 3:40:07 AM3/14/23
to
On Tue, Mar 14, 2023 at 07:54:45AM +0100, Loris Bennett wrote:

[...]

> > OK, forget all the r-cran stuff for the moment.
> > The current version of libpq5 is:
> >
> > $ dpkg -l | grep libpq5
> > ii libpq5:amd64 13.9-0+deb11u1 amd64 PostgreSQL C client library
^^^^^^^^^^^^^^
[...]

> Err:1 http://deb.debian.org/debian bullseye/main amd64 libpq5 amd64 13.8-0+deb11u1
> 404 Not Found [IP: 146.75.118.132 80]
> E: Failed to fetch http://deb.debian.org/debian/pool/main/p/postgresql-13/libpq5_13.8-0%2bdeb11u1_amd64.deb 404 Not Found [IP: 146.75.118.132 80]
^^^^^^

Your package cache is stale. Try doing a (sudo) apt-get update
or equivalent and retry.

Cheers
--
t
signature.asc

Loris Bennett

unread,
Mar 14, 2023, 4:20:06 AM3/14/23
to
You edited out the part of the message in which this has already been
suggested to which I replied that I had already done that and that the
problem remains.

to...@tuxteam.de

unread,
Mar 14, 2023, 4:50:06 AM3/14/23
to
The error message above doesn't correspond to this state. If I retry my
"curl -I" with the corrected, current URL, I don't get a 404, but a 200.

Please retry and post the new error message.

Cheers
--
t
signature.asc

Loris Bennett

unread,
Mar 14, 2023, 5:20:06 AM3/14/23
to
<to...@tuxteam.de> writes:

> On Tue, Mar 14, 2023 at 09:17:17AM +0100, Loris Bennett wrote:
>> <to...@tuxteam.de> writes:
>>
>> > On Tue, Mar 14, 2023 at 07:54:45AM +0100, Loris Bennett wrote:
>> >
>> > [...]
>> >
>> >> > OK, forget all the r-cran stuff for the moment.
>> >> > The current version of libpq5 is:
>> >> >
>> >> > $ dpkg -l | grep libpq5
>> >> > ii libpq5:amd64 13.9-0+deb11u1 amd64 PostgreSQL C client library
>> > ^^^^^^^^^^^^^^
>> > [...]
>> >
>> >> Err:1 http://deb.debian.org/debian bullseye/main amd64 libpq5 amd64 13.8-0+deb11u1
>> >> 404 Not Found [IP: 146.75.118.132 80]
>> >> E: Failed to fetch
>> >> http://deb.debian.org/debian/pool/main/p/postgresql-13/libpq5_13.8-0%2bdeb11u1_amd64.deb
>> >> 404 Not Found [IP: 146.75.118.132 80]
>> > ^^^^^^
>> >
>> > Your package cache is stale. Try doing a (sudo) apt-get update
>> > or equivalent and retry.
>>
>> You edited out the part of the message in which this has already been
>> suggested to which I replied that I had already done that and that the
>> problem remains.
>
> The error message above doesn't correspond to this state. If I retry my
> "curl -I" with the corrected, current URL, I don't get a 404, but a 200.

I'm sorry, I don't understand what you mean by 'this state'.

If I run 'curl -I' for 'libpq5_13.8', I get also get 404 and for
'libpq5_13.9', I get 200.

The problem as I understand it is that 'apt-get install libpq5' with an
updated cache tries to install version 13.8, which is not the correct
version for bullseye.

> Please retry and post the new error message.

Do you mean retry 'apt-get update'? As I wrote, updating the cache does
not make any difference:

root:~# apt-get update
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Reading package lists... Done

root:~# apt-get install libpq5
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
libpq5
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 180 kB of archives.
After this operation, 805 kB of additional disk space will be used.
Err:1 http://deb.debian.org/debian bullseye/main amd64 libpq5 amd64 13.8-0+deb11u1
404 Not Found [IP: 146.75.122.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/p/postgresql-13/libpq5_13.8-0%2bdeb11u1_amd64.deb 404 Not Found [IP: 146.75.122.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

to...@tuxteam.de

unread,
Mar 14, 2023, 6:40:06 AM3/14/23
to
On Tue, Mar 14, 2023 at 10:12:50AM +0100, Loris Bennett wrote:
> <to...@tuxteam.de> writes:
>
> > On Tue, Mar 14, 2023 at 09:17:17AM +0100, Loris Bennett wrote:
> >> <to...@tuxteam.de> writes:

[...]

> > The error message above doesn't correspond to this state. If I retry my
> > "curl -I" with the corrected, current URL, I don't get a 404, but a 200.
>
> I'm sorry, I don't understand what you mean by 'this state'.

state /post/ apt-get update.

> If I run 'curl -I' for 'libpq5_13.8', I get also get 404 and for
> 'libpq5_13.9', I get 200.

as expected.

> The problem as I understand it is that 'apt-get install libpq5' with an
> updated cache tries to install version 13.8, which is not the correct
> version for bullseye.

What does "apt-cache policy libpq5" say?

Cheers
--
t
signature.asc

Loris Bennett

unread,
Mar 14, 2023, 7:10:07 AM3/14/23
to
root:~# apt-cache policy libpq5
libpq5:
Installed: (none)
Candidate: 13.8-0+deb11u1
Version table:
13.8-0+deb11u1 500
500 http://deb.debian.org/debian bullseye/main amd64 Packages
13.7-0+deb11u1 500
500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages

I notice that on my laptop, the system with the problem, I have

root:~# cat /etc/debian_version
11.5

whereas on a server I have access to

root@server:~# cat /etc/debian_version
11.6
root@server:~# apt-cache policy libpq5
libpq5:
Installed: 13.9-0+deb11u1
Candidate: 13.9-0+deb11u1
Version table:
*** 13.9-0+deb11u1 500
500 http://ftp.de.debian.org/debian bullseye/main amd64 Packages
100 /var/lib/dpkg/status
13.7-0+deb11u1 500
500 http://security.debian.org bullseye-security/main amd64 Packages

So it looks like my laptop it on the previous point release.

Shouldn't a new point release just show up as a big bunch of updates? I
don't ever remember having to do anything special in the past.

Greg Wooledge

unread,
Mar 14, 2023, 7:10:07 AM3/14/23
to
On Tue, Mar 14, 2023 at 09:17:17AM +0100, Loris Bennett wrote:
> <to...@tuxteam.de> writes:
> > Your package cache is stale. Try doing a (sudo) apt-get update
> > or equivalent and retry.
>
> You edited out the part of the message in which this has already been
> suggested to which I replied that I had already done that and that the
> problem remains.

Show, don't tell.

Show us you ACTUALLY running it, including the output.

Also show us the output of "apt-cache policy libpq5".

Greg Wooledge

unread,
Mar 14, 2023, 7:20:06 AM3/14/23
to
On Tue, Mar 14, 2023 at 12:01:32PM +0100, Loris Bennett wrote:
> > What does "apt-cache policy libpq5" say?
>
> root:~# apt-cache policy libpq5
> libpq5:
> Installed: (none)
> Candidate: 13.8-0+deb11u1
> Version table:
> 13.8-0+deb11u1 500
> 500 http://deb.debian.org/debian bullseye/main amd64 Packages
> 13.7-0+deb11u1 500
> 500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages

Something's wrong here, but it's not clear what. Maybe you're getting
results from a stale mirror or something?

For grins, what happens if you replace "deb.debian.org" with something
like "ftp.us.debian.org" in your sources.list, then do apt-get update,
then try again? (If you're not in/near the US, then perhaps try a
different country code. And don't worry about the "ftp" in the hostname.
It's a naming relic, and doesn't actually mean it uses FTP.)

Loris Bennett

unread,
Mar 14, 2023, 8:20:06 AM3/14/23
to
So I copied 'sources.list' from the server, which looks like:

deb http://ftp.de.debian.org/debian bullseye main contrib non-free
deb-src http://ftp.de.debian.org/debian bullseye main contrib non-free

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

# deb http://backports.debian.org/debian-backports bullseye-backports main
# deb-src http://backports.debian.org/debian-backports/ bullseye-backports main non-free contrib

to my laptop.

Now I get:

root:~# apt-cache policy libpq5
libpq5:
Installed: (none)
Candidate: 13.9-0+deb11u1
Version table:
13.9-0+deb11u1 500
500 http://ftp.de.debian.org/debian bullseye/main amd64 Packages
13.7-0+deb11u1 500
500 http://security.debian.org bullseye-security/main amd64 Packages

So the problem is with the original 'sources.list', namely

# See https://wiki.debian.org/SourcesList for more information.
deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free

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

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

I didn't change the URLs and only added the section 'main' and
'non-free', so how come this is broken just for me?

Is it possible that the machine that 'deb.debian.org' resolves for me to
just does not have the current point release?

root:~# ping deb.debian.org
PING debian.map.fastlydns.net (146.75.118.132) 56(84) bytes of data.
64 bytes from 146.75.118.132 (146.75.118.132): icmp_seq=1 ttl=53 time=44.3 ms
...

Greg Wooledge

unread,
Mar 14, 2023, 8:40:06 AM3/14/23
to
On Tue, Mar 14, 2023 at 01:16:51PM +0100, Loris Bennett wrote:
> So the problem is with the original 'sources.list', namely
>
> # See https://wiki.debian.org/SourcesList for more information.
> deb http://deb.debian.org/debian bullseye main contrib non-free
> deb-src http://deb.debian.org/debian bullseye main contrib non-free
>
> deb http://deb.debian.org/debian bullseye-updates main contrib non-free
> deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
>
> deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
> deb-src http://security.debian.org/debian-security/ bullseye-security main contrib non-free
>
> I didn't change the URLs and only added the section 'main' and
> 'non-free', so how come this is broken just for me?

deb.debian.org is an extra super fancy redirection thingy that uses
"SRV" records instead of ordinary round-robin DNS. Most of the time,
it works, for most people.

But every once in a while, you get redirected to a mirror that's out
of date. Unfortunately, when that happens, it's really damned hard
to figure out that this is happening, or how to fix it.

In fact, the only way I know how to force it to use a different mirror
is exactly what I recommended here -- stop using deb.debian.org entirely.
You could try going back to it in a week or two, and maybe the mirror
it's using for you will be up to date, or you'll get a different mirror.
Or, you could stick with your ftp.COUNTRYCODE.debian.org mirror set if
it's working well for you.

The country code mirror sets aren't immune from staleness issues either.
There've been plenty of times when one of them has been out of date,
and people have been advised to use a different country code for a
while, until the mirrors get fixed. So, just keep an eye out for this
kind of problem no matter what mirrors you use.

Loris Bennett

unread,
Mar 14, 2023, 9:40:06 AM3/14/23
to
I have another laptop at work which I have continually upgraded,
starting probably from Wheezy. I have never had any issues with that,
so I'll probably use the setting from there on this new laptop. I can't
access the work laptop at the moment, but I guess it is probably using
ftp.de.debian.org.

Thanks for pointing me in the right direction.

David Wright

unread,
Mar 14, 2023, 2:00:06 PM3/14/23
to
On Tue 14 Mar 2023 at 08:38:09 (-0400), Greg Wooledge wrote:
> On Tue, Mar 14, 2023 at 01:16:51PM +0100, Loris Bennett wrote:
> > So the problem is with the original 'sources.list', namely
> >
> > # See https://wiki.debian.org/SourcesList for more information.
> > deb http://deb.debian.org/debian bullseye main contrib non-free
> > deb-src http://deb.debian.org/debian bullseye main contrib non-free
> >
> > deb http://deb.debian.org/debian bullseye-updates main contrib non-free
> > deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
> >
> > deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
> > deb-src http://security.debian.org/debian-security/ bullseye-security main contrib non-free
> >
> > I didn't change the URLs and only added the section 'main' and

contrib, rather than main, I hope.

> > 'non-free', so how come this is broken just for me?

Chance, perhaps. I appears the lists were stale, but you were seeing
a fresh archive. How frequently do you update your lists. (Every
three hours, with a cron job, in my case.)

> deb.debian.org is an extra super fancy redirection thingy that uses
> "SRV" records instead of ordinary round-robin DNS. Most of the time,
> it works, for most people.
>
> But every once in a while, you get redirected to a mirror that's out
> of date. Unfortunately, when that happens, it's really damned hard
> to figure out that this is happening, or how to fix it.
>
> In fact, the only way I know how to force it to use a different mirror
> is exactly what I recommended here -- stop using deb.debian.org entirely.
> You could try going back to it in a week or two, and maybe the mirror
> it's using for you will be up to date, or you'll get a different mirror.
> Or, you could stick with your ftp.COUNTRYCODE.debian.org mirror set if
> it's working well for you.
>
> The country code mirror sets aren't immune from staleness issues either.
> There've been plenty of times when one of them has been out of date,
> and people have been advised to use a different country code for a
> while, until the mirrors get fixed. So, just keep an eye out for this
> kind of problem no matter what mirrors you use.

If you run into this problem, you can make things easier the next time
by placing your current sources.list file into /etc/apt/sources.list.d/
and keep an alternative version there as well. For example:

/etc/apt/sources.list.d/deb.list
/etc/apt/sources.list.d/france.backup

and on a bad day, you rename them to:

/etc/apt/sources.list.d/deb.backup
/etc/apt/sources.list.d/france.list

APT only reads the .list filename. Disadvantage: keeping them in sync,
but usually there's very little need for any changes to be made.

Cheers,
David.

Loris Bennett

unread,
Mar 15, 2023, 5:00:06 AM3/15/23
to
David Wright <deb...@lionunicorn.co.uk> writes:

> On Tue 14 Mar 2023 at 08:38:09 (-0400), Greg Wooledge wrote:
>> On Tue, Mar 14, 2023 at 01:16:51PM +0100, Loris Bennett wrote:
>> > So the problem is with the original 'sources.list', namely
>> >
>> > # See https://wiki.debian.org/SourcesList for more information.
>> > deb http://deb.debian.org/debian bullseye main contrib non-free
>> > deb-src http://deb.debian.org/debian bullseye main contrib non-free
>> >
>> > deb http://deb.debian.org/debian bullseye-updates main contrib non-free
>> > deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
>> >
>> > deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
>> > deb-src http://security.debian.org/debian-security/ bullseye-security main contrib non-free
>> >
>> > I didn't change the URLs and only added the section 'main' and
>
> contrib, rather than main, I hope.

Indeed.
That sounds like a bit of a faff. Now I know about the potential
problem, I'll probably just stick with 'deb.debian.org'.

Strangely, on my work laptop I just have

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

in 'sources.list' and 'deb.debian.org' resolves to the same IP as it did
on my home laptop with the problem, namely

root@work:~# ping deb.debian.org
PING debian.map.fastlydns.net (146.75.118.132) 56(84) bytes of data.
64 bytes from 146.75.118.132 (146.75.118.132): icmp_seq=1 ttl=54 time=15.0 ms
...

But on my work laptop I have point release 11.6 and on the home laptop
I had 11.5. Very odd.
0 new messages