freesh-archive-keyring_1.1 breaks apt update in Debian 12
Alexis
alexis at xt3.it
Sun Dec 14 10:58:01 UTC 2025
Hello
freesh-archive-keyring_1.1_all.deb breaks "apt update" in Debian 12 due
to wrong formatted line "URL" in the file
etc/apt/sources.list.d/freesh.sources which is installed by the package.
The breakage is quite maddening for low knowledge users because "apt
update" breaks without a clear message as to why:
# apt update
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr: __pos (which is 64) > this->size()
(which is 63)
This can be corrected by substituting:
URIs: mirror://linux-libre.fsfla.org/pub/linux-libre/freesh/mirrors.txt
by
URIs: https://linux-libre.fsfla.org/pub/linux-libre/freesh/
in
/etc/apt/sources.list.d/freesh.sources
for example doing:
sed -i 's|URIs:
mirror://linux-libre.fsfla.org/pub/linux-libre/freesh/mirrors.txt|URIs:
https://linux-libre.fsfla.org/pub/linux-libre/freesh/|g'
/etc/apt/sources.list.d/freesh.sources
I take advantage of this email to suggest that the classic one-line
Debian sources.list format be keeped instead of the new DEB822
multi-line format considering that the standard graphical interface for
deb packages, named synaptic, does not support the new DEB822 format.
Thank you very much.
More information about the linux-libre
mailing list