termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.15k stars 3.02k forks source link

[Bug]: in "apt list" output, random duplicate "stable" with a single deb line #12071

Closed vinc17fr closed 2 years ago

vinc17fr commented 2 years ago

Problem description

When I run apt list (possibly via pkg list-installed), some lines of the output get a duplicate stable. This occurs even though there is a single deb line in my configuration (this is the default configuration, I have never changed it manually).

What steps will reproduce the bug?

Make sure that the default apt configuration is used:

% ls -l $PREFIX/etc/apt/sources.list*
-rw------- 1 u0_a548 u0_a548 50 Sep 16 16:37 /data/data/com.termux/files/usr/etc/apt/sources.list
% cat $PREFIX/etc/apt/sources.list
deb https://mirror.mwt.me/termux/main stable main
%

So there's a single sources.list file, and it has a single deb line.

Then

% apt list zsh-completions
Listing... Done
zsh-completions/stable,stable,now 0.34.0 all [installed,automatic]

What is the expected behavior?

One should get a single "stable":

zsh-completions/stable,now 0.34.0 all [installed,automatic]

System information

termux-info:

Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirror.mwt.me/termux/main stable main
Updatable packages:
All packages up to date
termux-tools version:
1.29.2
Android version:
12
Kernel build information:
Linux localhost 4.14.113-24230781 #1 SMP PREEMPT Thu Jul 21 11:08:22 KST 2022 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-N975F
xtkoba commented 2 years ago

Confirmed. It seems to happen for platform-independent packages. Note that it does not seem to happen with main repository (https://packages-cf.termux.dev/apt/termux-main/ or https://packages.termux.dev/apt/termux-main/). I am personally not familiar with the infrastructure and cannot figure out why this is happening.

sylirre commented 2 years ago

https://mirror.mwt.me/termux/main does mirroring from grimler.se repository which has both binary-all and binary-$TERMUX_ARCH package sets. Platform independent package is present in both all and architecture-specific sets, that is why stable word is duplicated.

Maybe @Grimler91 can look into removing the binary-all set on his package server.

I'm closing this issue now since it doesn't really affect installations.

Grimler91 commented 2 years ago

Yeah, just removing the all arch should fix it