No idea. I am not a dev myself and not the author of the pull request that I linked to.
It's not a bug, is by designed. But I think it's a bad design. (Even alpine linux doesn't use apk v3 yet)
Does apk upgrade foo
install foo if it's not already installed or does it just upgrade it if installed and NOOP if not?
The latter would be the ideal behaviour. I've never understood why other package managers (I'm looking at you opkg
) conflate upgrade
with install
like that.
You have APK automatically if you build from current main/master sources with the current defaults (like CONFIG_USE_APK).
But if you e.g. keep a stale full .config instead of allowing new defaults to propagate, you may naturally end up with old package selections. To prevent that, I always build from a short .config recipe, instead of using the old .config.
APK does just that. Upgrade does not install new packages.
I am unable to upgrade packages using APK (apk-openssl-3.0.0_pre20241113-r1) on GL-MT6000 (mediatek/filogic), MAIN SNAPSHOT r28072-b902284290.
# apk --version
apk-tools 3.0.0_pre20241113, compiled for aarch64.
# apk update
fetch https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/packages/packages.adb
fetch https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base/packages.adb
fetch https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/kmods/6.6.60-1-0561031e21f60f05c8f540bffb723036/packages.adb
fetch https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/luci/packages.adb
fetch https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages/packages.adb
fetch https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/routing/packages.adb
fetch https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/telephony/packages.adb
[https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/packages/packages.adb]
[https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base/packages.adb]
[https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/kmods/6.6.60-1-0561031e21f60f05c8f540bffb723036/packages.adb]
[https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/luci/packages.adb]
[https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages/packages.adb]
[https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/routing/packages.adb]
[https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/telephony/packages.adb]
OK: 10619 distinct packages available
# apk list -u
kmod-mt76-connac-6.6.60.2024.10.28~c246fa54-r1 aarch64_cortex-a53 {feeds/base/kernel/mt76} (GPLv2) [upgradable from: kmod-mt76-connac-6.6.60.2024.10.11.1~ecca0e77-r1]
kmod-mt76-core-6.6.60.2024.10.28~c246fa54-r1 aarch64_cortex-a53 {feeds/base/kernel/mt76} (GPLv2) [upgradable from: kmod-mt76-core-6.6.60.2024.10.11.1~ecca0e77-r1]
kmod-mt7915e-6.6.60.2024.10.28~c246fa54-r1 aarch64_cortex-a53 {feeds/base/kernel/mt76} (GPLv2) [upgradable from: kmod-mt7915e-6.6.60.2024.10.11.1~ecca0e77-r1]
kmod-mt7986-firmware-6.6.60.2024.10.28~c246fa54-r1 aarch64_cortex-a53 {feeds/base/kernel/mt76} (GPLv2) [upgradable from: kmod-mt7986-firmware-6.6.60.2024.10.11.1~ecca0e77-r1]
luci-app-bcp38-24.319.72217~9fe1e34 all {feeds/luci/applications/luci-app-bcp38} (Apache-2.0) [upgradable from: luci-app-bcp38-24.315.52043~d650688]
luci-app-ddns-24.319.72217~9fe1e34 all {feeds/luci/applications/luci-app-ddns} (Apache-2.0) [upgradable from: luci-app-ddns-24.315.52043~d650688]
luci-app-firewall-24.319.72217~9fe1e34 all {feeds/luci/applications/luci-app-firewall} (Apache-2.0) [upgradable from: luci-app-firewall-24.315.52043~d650688]
luci-app-irqbalance-24.319.72217~9fe1e34 all {feeds/luci/applications/luci-app-irqbalance} (Apache-2.0) [upgradable from: luci-app-irqbalance-24.315.52043~d650688]
luci-app-openvpn-24.319.72217~9fe1e34 all {feeds/luci/applications/luci-app-openvpn} (Apache-2.0) [upgradable from: luci-app-openvpn-24.315.52043~d650688]
luci-app-package-manager-24.319.72217~9fe1e34 all {feeds/luci/applications/luci-app-package-manager} (Apache-2.0) [upgradable from: luci-app-package-manager-24.315.52043~d650688]
luci-app-sqm-24.319.72217~9fe1e34 all {feeds/luci/applications/luci-app-sqm} (Apache-2.0) [upgradable from: luci-app-sqm-24.315.52043~d650688]
luci-app-travelmate-24.319.72217~9fe1e34 all {feeds/luci/applications/luci-app-travelmate} (Apache-2.0) [upgradable from: luci-app-travelmate-24.315.52043~d650688]
luci-app-ttyd-24.319.72217~9fe1e34 all {feeds/luci/applications/luci-app-ttyd} (Apache-2.0) [upgradable from: luci-app-ttyd-24.315.52043~d650688]
luci-app-uhttpd-24.319.72217~9fe1e34 all {feeds/luci/applications/luci-app-uhttpd} (Apache-2.0) [upgradable from: luci-app-uhttpd-24.315.52043~d650688]
luci-app-wol-24.319.72217~9fe1e34 all {feeds/luci/applications/luci-app-wol} (Apache-2.0) [upgradable from: luci-app-wol-24.315.52043~d650688]
luci-base-24.319.72217~9fe1e34 aarch64_cortex-a53 {feeds/luci/modules/luci-base} (Apache-2.0) [upgradable from: luci-base-24.315.52043~d650688]
luci-compat-24.319.72217~9fe1e34 all {feeds/luci/modules/luci-compat} (Apache-2.0) [upgradable from: luci-compat-24.315.52043~d650688]
luci-lib-base-24.319.72217~9fe1e34 all {feeds/luci/libs/luci-lib-base} (Apache-2.0) [upgradable from: luci-lib-base-24.315.52043~d650688]
luci-lib-ip-24.319.72217~9fe1e34 aarch64_cortex-a53 {feeds/luci/libs/luci-lib-ip} (Apache-2.0) [upgradable from: luci-lib-ip-24.315.52043~d650688]
luci-lib-jsonc-24.319.72217~9fe1e34 aarch64_cortex-a53 {feeds/luci/libs/luci-lib-jsonc} (Apache-2.0) [upgradable from: luci-lib-jsonc-24.315.52043~d650688]
luci-lib-nixio-24.319.72217~9fe1e34 aarch64_cortex-a53 {feeds/luci/libs/luci-lib-nixio} (Apache-2.0) [upgradable from: luci-lib-nixio-24.315.52043~d650688]
luci-lib-uqr-24.319.72217~9fe1e34 all {feeds/luci/libs/luci-lib-uqr} (MIT) [upgradable from: luci-lib-uqr-24.315.52043~d650688]
luci-light-24.319.72217~9fe1e34 all {feeds/luci/collections/luci-light} (Apache-2.0) [upgradable from: luci-light-24.315.52043~d650688]
luci-lua-runtime-24.319.72217~9fe1e34 aarch64_cortex-a53 {feeds/luci/modules/luci-lua-runtime} (Apache-2.0) [upgradable from: luci-lua-runtime-24.315.52043~d650688]
luci-mod-admin-full-24.319.72217~9fe1e34 all {feeds/luci/modules/luci-mod-admin-full} (Apache-2.0) [upgradable from: luci-mod-admin-full-24.315.52043~d650688]
luci-mod-network-24.319.72217~9fe1e34 all {feeds/luci/modules/luci-mod-network} (Apache-2.0) [upgradable from: luci-mod-network-24.315.52043~d650688]
luci-mod-status-24.319.72217~9fe1e34 aarch64_cortex-a53 {feeds/luci/modules/luci-mod-status} (Apache-2.0) [upgradable from: luci-mod-status-24.315.52043~d650688]
luci-mod-system-24.319.72217~9fe1e34 all {feeds/luci/modules/luci-mod-system} (Apache-2.0) [upgradable from: luci-mod-system-24.315.52043~d650688]
luci-proto-batman-adv-24.319.72217~9fe1e34 all {feeds/luci/protocols/luci-proto-batman-adv} (Apache-2.0) [upgradable from: luci-proto-batman-adv-24.315.52043~d650688]
luci-proto-ipv6-24.319.72217~9fe1e34 all {feeds/luci/protocols/luci-proto-ipv6} (Apache-2.0) [upgradable from: luci-proto-ipv6-24.315.52043~d650688]
luci-proto-ppp-24.319.72217~9fe1e34 all {feeds/luci/protocols/luci-proto-ppp} (Apache-2.0) [upgradable from: luci-proto-ppp-24.315.52043~d650688]
luci-proto-wireguard-24.319.72217~9fe1e34 all {feeds/luci/protocols/luci-proto-wireguard} (Apache-2.0) [upgradable from: luci-proto-wireguard-24.315.52043~d650688]
luci-ssl-openssl-24.319.72217~9fe1e34 all {feeds/luci/collections/luci-ssl-openssl} (Apache-2.0) [upgradable from: luci-ssl-openssl-24.315.52043~d650688]
luci-theme-bootstrap-24.319.72217~9fe1e34 all {feeds/luci/themes/luci-theme-bootstrap} (Apache-2.0) [upgradable from: luci-theme-bootstrap-24.315.52043~d650688]
# apk upgrade
ERROR: unable to select packages:
libc-1.2.5-r4:
error: uninstallable
arch: aarch64_cortex-a53
satisfies: world[libc] apk-openssl-3.0.0_pre20241108-r1[libc] arp-scan-1.10.0-r2[libc] arp-scan-database-1.10.0-r2[libc]
atop-2.11.0-r1[libc] base-files-1633~b902284290[libc] bash-5.2.32-r1[libc] batctl-full-2024.3-r1[libc] bcp38-5-r11[libc]
block-mount-2024.07.14~408c2cc4-r1[libc] bridge-1.7.1-r1[libc] busybox-1.36.1-r2[libc] bzip2-1.0.8-r1[libc]
ca-bundle-20240203-r1[libc] ca-certificates-20240203-r1[libc] cgi-io-2022.08.10~901b0f04-r21[libc] chrony-nts-4.6.1-r1[libc]
coreutils-9.3-r1[libc] coreutils-date-9.3-r1[libc] coreutils-sleep-9.3-r1[libc] curl-8.10.1-r1[libc]
ddns-scripts-2.8.2-r52[libc] ddns-scripts-services-2.8.2-r52[libc] diffutils-3.10-r1[libc] dosfstools-4.2-r4[libc]
dropbear-2024.85-r1[libc] dropbearconvert-2024.85-r1[libc] e2fsprogs-1.47.0-r2[libc] eip197-mini-firmware-20241017-r1[libc]
ell-0.69-r1[libc] etherwake-1.09-r5[libc] ethtool-6.10-r1[libc] f2fs-tools-1.16.0-r3[libc] f2fsck-1.16.0-r3[libc]
fdisk-2.40.2-r1[libc] file-5.45-r1[libc] firewall4-2024.05.21~4c01d1eb-r1[libc] fitblk-2[libc] flent-tools-2.1.1-r1[libc]
fping-5.2-r1[libc] fstools-2024.07.14~408c2cc4-r1[libc] fwtool-2019.11.12~8f7fe925-r1[libc] gdisk-1.0.10-r1[libc]
getrandom-2024.04.26~85f10530-r1[libc] glib2-2.82.0-r1[libc] hostapd-common-2024.09.15~5ace39b0-r1[libc] htop-3.3.0-r2[libc]
https-dns-proxy-2023.12.26-r1[libc] ip-full-6.11.0-r1[libc] ip6tables-nft-1.8.10-r1[libc] iperf-2.1.9-r1[libc]
iperf3-ssl-3.17.1-r3[libc] iptables-mod-ipopt-1.8.10-r1[libc] iptables-nft-1.8.10-r1[libc] iputils-ping-20240905-r1[libc]
irqbalance-1.9.4-r1[libc] irtt-0.9.1-r1[libc] iw-full-6.9-r1[libc] iwinfo-2024.10.20~b94f066e-r1[libc] jansson4-2.14-r3[libc]
jshn-2024.03.29~eb9bcb64-r1[libc] jsonfilter-2024.01.23~594cfa86-r1[libc]
kernel-6.6.60~0561031e21f60f05c8f540bffb723036-r1[libc] libacl-2.3.2-r2[libc] libattr-2.5.2-r3[libc] libblkid1-2.40.2-r1[libc]
libblobmsg-json20240329-2024.03.29~eb9bcb64-r1[libc] libbpf1-1.4.6-r1[libc] libbz2-1.0-1.0.8-r1[libc] libcap-2.69-r1[libc]
libcap-ng-0.8.4-r1[libc] libcares-1.33.1-r1[libc] libcomerr0-1.47.0-r2[libc] libcurl4-8.10.1-r1[libc] libe2p2-1.47.0-r2[libc]
libelf1-0.191-r1[libc] libev-4.33-r2[libc] libevdev-1.13.1-r1[libc] libext2fs2-1.47.0-r2[libc] libf2fs6-1.16.0-r3[libc]
libfdisk1-2.40.2-r1[libc] libffi-3.4.6-r1[libc] libgmp10-6.3.0-r1[libc] libgnutls-3.8.5-r1[libc]
libiptext-nft0-1.8.10-r1[libc] libiptext0-1.8.10-r1[libc] libiptext6-0-1.8.10-r1[libc]
libiwinfo-data-2024.10.20~b94f066e-r1[libc] libiwinfo20230701-2024.10.20~b94f066e-r1[libc] libjson-c5-0.18-r1[libc]
libjson-script20240329-2024.03.29~eb9bcb64-r1[libc] libkmod-32-r1[libc] liblua5.1.5-5.1.5-r11[libc]
liblua5.4-5.4-5.4.6-r1[libc] liblucihttp-lua-2023.03.15~9b5b683f-r1[libc] liblucihttp-ucode-2023.03.15~9b5b683f-r1[libc]
liblucihttp0-2023.03.15~9b5b683f-r1[libc] liblz4-1-1.10.0-r1[libc] liblzma-5.6.2-r2[libc] liblzo2-2.10-r4[libc]
libmagic-5.45-r1[libc] libmbedtls21-3.6.2-r1[libc] libminiupnpc-2.2.8-r1[libc] libmnl0-1.0.5-r1[libc]
libnatpmp1-20230423-r1[libc] libncurses6-6.4-r2[libc] libnettle8-3.9.1-r1[libc] libnftnl11-1.2.8-r1[libc]
libnghttp2-14-1.63.0-r1[libc] libnl-tiny1-2023.12.05~965c4bf4-r1[libc] libopenssl-conf-3.0.15-r1[libc]
libopenssl-legacy-3.0.15-r1[libc] libopenssl3-3.0.15-r1[libc] libparted-3.6-r1[libc] libpcap1-1.10.5-r1[libc]
libpci-3.12.0-r2[libc] libpcre2-10.42-r1[libc] libreadline8-8.2-r2[libc] libsmartcols1-2.40.2-r1[libc] libss2-1.47.0-r2[libc]
libssh2-1-1.11.0-r1[libc] libubox20240329-2024.03.29~eb9bcb64-r1[libc] libubus-lua-2024.10.20~252a9b0c-r1[libc]
libubus20241020-2024.10.20~252a9b0c-r1[libc] libuci20130104-2023.08.10~5781664d-r1[libc]
libuclient20201210-2024.10.22~88ae8f20-r1[libc] libucode20230711-2024.07.22~b610860d-r3[libc]
libudebug-2023.12.06~6d3f51f9[libc] libudev-zero-1.0.3-r1[libc] libusb-1.0-0-1.0.27-r1[libc]
libustream-openssl20201210-2024.07.28~99bd3d2b-r1[libc] libuuid1-2.40.2-r1[libc] libuv1-1.48.0-r1[libc]
libwebsockets-full-4.3.3-r1[libc] libxtables12-1.8.10-r1[libc] logd-2024.04.26~85f10530-r1[libc] lua-5.1.5-r11[libc]
luci-app-bcp38-24.319.72217~9fe1e34[libc] luci-app-ddns-24.319.72217~9fe1e34[libc]
luci-app-firewall-24.319.72217~9fe1e34[libc] luci-app-https-dns-proxy-2023.12.26-r1[libc]
luci-app-irqbalance-24.319.72217~9fe1e34[libc] luci-app-openvpn-24.319.72217~9fe1e34[libc]
luci-app-package-manager-24.319.72217~9fe1e34[libc] luci-app-sqm-24.319.72217~9fe1e34[libc]
luci-app-travelmate-24.319.72217~9fe1e34[libc] luci-app-ttyd-24.319.72217~9fe1e34[libc]
luci-app-uhttpd-24.319.72217~9fe1e34[libc] luci-app-wol-24.319.72217~9fe1e34[libc] luci-base-24.319.72217~9fe1e34[libc]
luci-compat-24.319.72217~9fe1e34[libc] luci-lib-base-24.319.72217~9fe1e34[libc] luci-lib-ip-24.319.72217~9fe1e34[libc]
luci-lib-jsonc-24.319.72217~9fe1e34[libc] luci-lib-nixio-24.319.72217~9fe1e34[libc] luci-lib-uqr-24.319.72217~9fe1e34[libc]
luci-light-24.319.72217~9fe1e34[libc] luci-lua-runtime-24.319.72217~9fe1e34[libc]
luci-mod-admin-full-24.319.72217~9fe1e34[libc] luci-mod-network-24.319.72217~9fe1e34[libc]
luci-mod-status-24.319.72217~9fe1e34[libc] luci-mod-system-24.319.72217~9fe1e34[libc]
luci-proto-batman-adv-24.319.72217~9fe1e34[libc] luci-proto-ipv6-24.319.72217~9fe1e34[libc]
luci-proto-ppp-24.319.72217~9fe1e34[libc] luci-proto-wireguard-24.319.72217~9fe1e34[libc]
luci-ssl-openssl-24.319.72217~9fe1e34[libc] luci-theme-bootstrap-24.319.72217~9fe1e34[libc] mkf2fs-1.16.0-r3[libc]
mptcpd-0.12-r1[libc] mptcpize-0.12-r1[libc] mt7986-wo-firmware-20241017-r1[libc] mtd-26[libc] nano-8.2-r1[libc]
netifd-2024.11.08~34eb11eb-r1[libc] netperf-2.7.0-r3[libc] nftables-json-1.1.1-r1[libc] nmap-full-7.95-r1[libc]
odhcp6c-2023.05.12~bcd28363-r20[libc] odhcpd-2024.05.08~a2988231-r1[libc] openssh-sftp-server-9.9_p1-r1[libc]
openssl-util-3.0.15-r1[libc] openvpn-openssl-2.6.12-r1[libc] openwrt-keyring-2024.11.01~fbae29d7-r2[libc] parted-3.6-r1[libc]
pciids-0.387-r1[libc] pciutils-3.12.0-r2[libc] ppp-2.5.1-r1[libc] ppp-mod-pppoe-2.5.1-r1[libc] pppdump-2.5.1-r1[libc]
pppoe-discovery-2.5.1-r1[libc] procd-2024.11.06~109fa41b-r1[libc] procd-seccomp-2024.11.06~109fa41b-r1[libc]
procd-ujail-2024.11.06~109fa41b-r1[libc] qosify-2024.09.20~1501e093-r1[libc] resize2fs-1.47.0-r2[libc] resolveip-2[libc]
rpcd-2024.09.17~9f4b86e7-r1[libc] rpcd-mod-file-2024.09.17~9f4b86e7-r1[libc] rpcd-mod-iwinfo-2024.09.17~9f4b86e7-r1[libc]
rpcd-mod-luci-20240305-r1[libc] rpcd-mod-rpcsys-2024.09.17~9f4b86e7-r1[libc] rpcd-mod-rrdns-20170710[libc]
rpcd-mod-ucode-2024.09.17~9f4b86e7-r1[libc] speedtest-go-1.7.7-r1[libc] speedtest-netperf-1.1.0-r1[libc]
sqm-scripts-1.6.0-r1[libc] tailscale-1.76.6-r1[libc] tar-1.35-r1[libc] tc-bpf-6.11.0-r1[libc] tcpdump-4.99.5-r1[libc]
terminfo-6.4-r2[libc] travelmate-2.1.3-r2[libc] ttyd-1.7.3-r1[libc] tune2fs-1.47.0-r2[libc] ubi-utils-2.2.1-r1[libc]
uboot-envtools-2024.07-r1[libc] ubox-2024.04.26~85f10530-r1[libc] ubus-2024.10.20~252a9b0c-r1[libc]
ubusd-2024.10.20~252a9b0c-r1[libc] uci-2023.08.10~5781664d-r1[libc] uclient-fetch-2024.10.22~88ae8f20-r1[libc]
ucode-2024.07.22~b610860d-r3[libc] ucode-mod-fs-2024.07.22~b610860d-r3[libc] ucode-mod-html-1[libc] ucode-mod-lua-1[libc]
ucode-mod-math-2024.07.22~b610860d-r3[libc] ucode-mod-nl80211-2024.07.22~b610860d-r3[libc]
ucode-mod-rtnl-2024.07.22~b610860d-r3[libc] ucode-mod-ubus-2024.07.22~b610860d-r3[libc]
ucode-mod-uci-2024.07.22~b610860d-r3[libc] ucode-mod-uloop-2024.07.22~b610860d-r3[libc] uhttpd-2023.06.25~34a8a74d-r4[libc]
uhttpd-mod-ubus-2023.06.25~34a8a74d-r4[libc] urandom-seed-3[libc] urngd-2023.11.01~44365eb1-r1[libc] usbids-0.387-r1[libc]
usbutils-017-r1[libc] usign-2020.05.23~f1f65026-r1[libc] vsftpd-tls-3.0.5-r2[libc] wget-ssl-1.24.5-r1[libc]
wifi-scripts-1.0-r1[libc] wireguard-tools-1.0.20210914-r4[libc] wireless-regdb-2024.10.07-r1[libc]
wpad-openssl-2024.09.15~5ace39b0-r1[libc] xtables-nft-1.8.10-r1[libc] xz-5.6.2-r2[libc] xz-utils-5.6.2-r2[libc]
zerotier-1.14.1-r1[libc] zlib-1.3.1-r1[libc]
base-files-1633~b902284290:
error: uninstallable
arch: aarch64_cortex-a53
satisfies: world[base-files]
kernel-6.6.60~0561031e21f60f05c8f540bffb723036-r1:
error: uninstallable
arch: aarch64_cortex-a53
satisfies: world[kernel] kmod-batman-adv-6.6.60.2024.3-r2[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-cfg80211-6.6.60.6.11.2-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-aead-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-arc4-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-authenc-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-ccm-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-chacha20poly1305-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-cmac-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-crc32c-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-ctr-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-des-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-ecb-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-gcm-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-geniv-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-gf128-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-ghash-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-hash-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-hmac-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-hw-safexcel-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-kpp-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-lib-chacha20-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-lib-chacha20poly1305-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-lib-curve25519-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-lib-poly1305-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-manager-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-md5-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-null-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-rng-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-seqiv-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-sha1-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-sha256-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-sha3-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-sha512-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-crypto-user-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-fs-ext4-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-fs-vfat-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-gpio-button-hotplug-6.6.60-r5[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-hwmon-core-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-ifb-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-inet-diag-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-inet-mptcp-diag-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-ip6tables-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-ipt-core-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-ipt-ipopt-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-ipvlan-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-leds-gpio-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-lib-crc-ccitt-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-lib-crc16-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-lib-crc32c-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-libphy-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-mac80211-6.6.60.6.11.2-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-macvlan-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-mppe-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-mt76-connac-6.6.60.2024.10.28~c246fa54-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-mt76-core-6.6.60.2024.10.28~c246fa54-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-mt7915e-6.6.60.2024.10.28~c246fa54-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-mt7986-firmware-6.6.60.2024.10.28~c246fa54-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-mtd-rw-6.6.60.2021.02.28~e8776739-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nf-conntrack-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nf-conntrack6-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nf-flow-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nf-ipt-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nf-ipt6-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nf-log-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nf-log6-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nf-nat-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nf-reject-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nf-reject6-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nfnetlink-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nft-compat-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nft-core-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nft-fib-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nft-nat-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nft-offload-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nls-base-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nls-cp437-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nls-iso8859-1-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-nls-utf8-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-phy-aquantia-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-ppp-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-pppoe-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-pppox-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-sched-bpf-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-sched-cake-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-sched-core-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-scsi-core-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-slhc-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-tcp-bbr-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-thermal-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-tun-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-udptunnel4-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-udptunnel6-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-usb-core-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-usb-storage-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-usb-xhci-hcd-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-usb-xhci-mtk-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-usb3-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-veth-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-vrf-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-wireguard-6.6.60-r1[kernel=6.6.60~0561031e21f60f05c8f540bffb723036-r1]
kmod-cfg80211-6.6.60.6.11.2-r1:
error: uninstallable
arch: aarch64_cortex-a53
satisfies: kmod-batman-adv-6.6.60.2024.3-r2[kmod-cfg80211] kmod-mac80211-6.6.60.6.11.2-r1[kmod-cfg80211]
EDIT: Cause of this issue is mentioned in The future is now: opkg vs apk - #235 by ka2107 .
works just nicely for me. (although none of the upgrades was a real one, as buildbot has built without history to a newer-looking automatic versioning)
Self-built image from sources.
OpenWrt SNAPSHOT, r28089-749a43325b
-----------------------------------------------------
root@router6000:~# apk --version
apk-tools 3.0.0_pre20241108, compiled for aarch64.
root@router6000:~# apk update
fetch https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/packages/pack ages.adb
fetch https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base/packa ges.adb
...
[https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/routing/packag es.adb]
OK: 9869 distinct packages available
root@router6000:~# apk upgrade
( 1/27) Upgrading luci-base (24.312.73405~8f7f142 -> 24.319.72217~9fe1e34)
( 2/27) Upgrading luci-app-adblock (24.284.61488~02f2d47 -> 24.319.72217~9fe1e34)
( 3/27) Upgrading luci-app-banip (24.208.74286~7154efa -> 24.319.72217~9fe1e34)
...
(27/27) Upgrading luci-ssl-openssl (24.079.45685~320744f -> 24.319.72217~9fe1e34)
1 error; 71 MiB in 308 packages
You are probably using the problematic apk version that was already reverted here, and we returned to a bit older code.
Some testing and I can confirm that apk
uses wget
for downloading, just as opkg does.
This means it has the same problem opkg does. If you have active ipv6 on your lan (along with ipv4) and you have an openwrt device (like an access point, meshnode etc) and want to install or update anything, you also need an active ipv6 Internet feed, as wget/uclient-fetch will default to ipv6 and give up on failure.
The following script, taken from the mesh11sd package, will fix the problem:
if ! grep "#!/bin/sh" /usr/bin/wget; then
mv /usr/bin/wget /usr/bin/wget.bak
echo -e "#!/bin/sh\n/usr/bin/wget.bak -4 \"\$@\"" > /usr/bin/wget && chmod +x /usr/bin/wget
exit 0
fi
exit 127
And the following will revert the change:
if grep "#!/bin/sh" /usr/bin/wget; then
rm /usr/bin/wget
mv /usr/bin/wget.bak /usr/bin/wget
exit 0
fi
exit 127
OPKG: https://github.com/openwrt/uclient/issues/8
APK: https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10862
Fixing these issues is unlikely to happen any time soon I would guess...
Feel free to use the script snippets I posted
Thank you for testing so quickly, maybe it's a snapshot with the faulty apk. I'll try to rebuild everything over the weekend and I'll PM you then.
I didn't notice this until just now, look a the file name it's trying to fetch.
For some reason apk
uses the other entries in the repositories
file as direct download targets, but for this one it appends /x86_64/APKINDEX.tar.gz
again. Whaaat?
Does this mean we can install software from the APK repos? OR just OpenWRT repo?
Just from the OpenWrt repo, and naturally all other packages that are directly compatible, meaning exactly same CPU architecture, c library etc.
WTF
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Try::Tiny
Writing MYMETA.yml and MYMETA.json
make[4]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/perl/Try-Tiny-0.32'
cp lib/Try/Tiny.pm blib/lib/Try/Tiny.pm
Manifying 1 pod document
Installing /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/perl/Try-Tiny-0.32/ipkg-install/usr/lib/perl5/5.40/Try/Tiny.pm
Installing /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/perl/Try-Tiny-0.32/ipkg-install/usr/man/man3/Try::Tiny.0
Appending installation info to /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/perl/Try-Tiny-0.32/ipkg-install/usr/lib/perl5/5.40/perllocal.pod
make[4]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/perl/Try-Tiny-0.32'
cd+++++++++ Try/
>f+++++++++ Try/Tiny.pm
---> Stripping modules in: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/perl/Try-Tiny-0.32/.pkgdir/perl-try-tiny/usr/lib/perl5/5.40
cd+++++++++ Try/
>f+++++++++ Try/Tiny.pm
---> Stripping modules in: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/perl/Try-Tiny-0.32/ipkg-aarch64_cortex-a53/perl-try-tiny/usr/lib/perl5/5.40
ERROR: info field 'version' has invalid value: package version is invalid
ERROR: failed to create package: /builder/shared-workdir/build/sdk/bin/packages/aarch64_cortex-a53/packages/perl-try-tiny-0.32+perl5.40-r1.apk: package version is invalid
make[3]: *** [Makefile:77: /builder/shared-workdir/build/sdk/bin/packages/aarch64_cortex-a53/packages/perl-try-tiny-0.32+perl5.40-r1.apk] Error 99
time: package/feeds/packages/perl-try-tiny/compile#1.42#0.60#2.74
Almost none of the Perl packages adheres to APK semantics, see https://github.com/openwrt/packages/issues/23706#issuecomment-2012937454. The maintainers needs to update the version string to be compatible.
EDIT: I took a quick look, it's https://github.com/openwrt/packages/commit/0d9584724ff1c011f587540c2d25be8a90a81413 that introduced it, which was fine for opkg but not APK.
No news. Perl packages are still version incompatible.
https://downloads.openwrt.org/snapshots/faillogs/aarch64_cortex-a53/packages/
A tentative fix was merger a while ago (12 minutes ago) to perlmod, but let's see if that fixes also the individual packages. It will take 1-2 days for buildbot to churn through all targets.
fix
perl-xstring-0.005-r1.apk
perl fix apk
diff --git a/perl/perlmod.mk b/perl/perlmod.mk
index db83d603..77c81fed 100644
--- a/perl/perlmod.mk
+++ b/perl/perlmod.mk
@@ -8,7 +8,7 @@ endif
include $(PERL_INCLUDE_DIR)/perlver.mk
ifneq ($(PKG_NAME),perl)
- PKG_VERSION:=$(PKG_VERSION)+perl$(PERL_VERSION2)
+ PKG_VERSION:=$(PKG_VERSION)
endif
PERL_VERSION:=$(PERL_VERSION2)