Open xtkoba opened 1 year ago
because pkg command seems to select the mirror randomly.
This mirror, however, is not kept up-to-date
I will create an issue to report it.
In fact, in the past, the tool auto-selected sdu.edu.cn
and it is also not up to date...
We've disscussed about how to solve this, see https://github.com/termux/termux-tools/issues/4.
We also have a mirrorbits tracker, but it is only available when the mirror opens rsync
.
I wonder how other distros handle this.
What I came up with is to distribute a file containing some sort of timestamp and to make pkg
check it and mark the mirror as "bad" if it is older than say 1 week.
The timestamp is a part of Release metadata file:
Origin: termux-main stable
Label: termux-main stable
Suite: stable
Codename: stable
Date: Mon, 26 Dec 2022 07:56:31 UTC
Architectures: aarch64 arm i686 x86_64
Components: main
Description: Generated by aptly
MD5Sum:
Mentioned that at https://github.com/termux/termux-tools/issues/4#issuecomment-1358998183 with potential solution.
People here may not have gotten the notification.
Problem description
The following is a terminal output of
pkg update
command:In the list, we see mirrors.nju.edu.cn is marked as ok:
This mirror, however, is not kept up-to-date. I noticed that when I tried to install
mariadb
package.What steps will reproduce the bug?
Strictly this is hard to reproduce because
pkg
command seems to select the mirror randomly. But we can manually modify$PREFIX/etc/apt/sources.list
and see what happens:Note that the latest
mariadb
package in our repo does not depend onopenssl-1.1
.What is the expected behavior?
Mirrors that are not kept up-to-date should not be selected by
pkg
command.System information
termux-info: