Is this still the case? If so, seems like the warning should be made more prominent - particularly in the login banner and apk --help output.
In a nutshell I'm asking for openwrt to be definitive: either apk upgrade is expected to work as well as the rest of OpenWRT (that is to say, very well!), or it has known hazards for the unsuspecting and in and should not be used without due diligence in which case that should be made crystal clear to the unwary.
That is current and will remain current for the forseeable future, not only because of "incomplete dependency information" (ABI tracking. symbol versioning and ABI co-installability), but also because of hardware imposed design constraints (no initramfs, pivot_root to the overlay happening rather late in the boot process - and ABI compatibility between squashfs and overlay packages), as well as simple size issues for common devices with limited flash space.
This wouldn't magically change if OpenWrt would switch to dpkg/ apt or rpm/ dnf either, it's a side effect of dealing with heavily size-constrained embedded devices.
In which case, in the shoes of a user who is unlikely to be aware of these nuances, what do you think about apk being patched to require a flag when no packages are specified.
e.g., a hypothetical session would go as:
# apk upgrade tailscale
... (works same as now)
OK: 107.4 MiB in 248 packages
# apk upgrade
ERROR: --force-upgradeall is required to upgrade all packages; for more information visit <url>
# apk upgrade --force-upgradeall
(carries on same as now)
Do not take it personal but I've seen Attended sysupgrade failing more often than apk failing to resolve packages. If you know what you do apk upgrade (probably combined with --cache-predownload) is safe enough. Packaging issues do apply in both cases. I can upgrade, let's say, banip package without rebooting (which is totally safe) but I can't make it with Attended sysupgrade...
You have to distinguish between failure to create an image (e.g. server overloaded) and ABI mismatches, ENOSPC and similar issues. The former (asu) will just not proceed with the upgrade right now, leaving the installed system untouched (not updated) and fully working, the later (in-place package upgrades) can leave you soft-bricked, needing a reset and a config restore.
Keep in mind, we're talking about Joe Sixpack here, who probably doesn't have the desaster recovery fleshed out, without recent backups and needing online resources for recovery/ reset procedures - probably hours before the deadline to hand in their dissertation.
All package issues of apk upgrade (or opkg) apply to Attended sysupgrade images. Whenether I build image I get same packages which are delivered by apk.
accidental ENOSPC is less likely, no duplication between squahsfs and overlay
no issues with pivot_root, the handover between squashfs and overlay and ABI or behaviour differences (no, dependencies don't help here)
no partial upgrades running into issues with undeclared ABI issues, asu builds images from an internally consistent repo snapshot (built together from the same source checkout; yes I'm aware of shared <> nonshared here).
Keep in mind, not all upgrades happen within a stable branch, nor regularly or upon a 'recent' base image.
... General advice goes like this: "Do not upgrade hostapd, luci, whatever (via apk, opkg) because it can break your system". Indeed it can, but same versions you install via Attended sysupgrade when new image is being built.
But if you use asu, the consistent repository state of (nearly) atomic upgrades that ensure everything is from the same build, without outdated/ incompatible artefacts, and therefore compatible.
ASU (imagebuilder) builds use apk internally, so there's nothing that ASU is doing that's "special" in some way with respect to package selection. The difference is that when imagebuilder does it, you're starting from a clean slate and all packages are upgraded together, not just those that appear to be out-of-date per apk's database.
The root cause of issues arising when using apk upgrade is that some ABI versioning is missing in various packaging dependencies, so you can get into a situation where a binary is installed that requires concurrent changes in some library, but either the binary or the library don't make the connection and you get calls that do not work. So, you see things failing with strange message, processes hanging, seg faulting or freezing the device.
Occasionally, this will also bite you on a simple apk add with the same root cause. For example, a new ABI call was added to ucode between 24.10.1 and 24.10.2. If you set up a device using 24.10.1 after .2 was published, a simple opkg install owut would grab a required ucode library that didn't work with the installed ucode main. Then owut check would crash on startup with
Runtime error: Unable to dlopen file '/usr/lib/ucode/uloop.so':
Error relocating /usr/lib/ucode/uloop.so:
ucv_resource_new_ex: symbol not found
This was relatively benign, as owut was the only user of uloop.so, but if this were to happen to something inside a core networking function or something, you'd be in for a very bad time.
There's a subtle difference between saying apk upgrade resulting in bricking your device, versus running owut upgrade and having it tell you it can't upgrade right now.
There is no difference whether you get faulty kernel driver (kmod-* package) or luci-app-* (which breaks interface) update via Attended sysupgrade or via regular apk upgrade. That is exactly why I said If you know what you do in original statement. Attended sysupgrade kept packaging problem... which does exist, I never denied that. That is why that don't do apk upgrade exists... and added whole new layer of problems. The recommendation itself is stupid (indeed it is). You create certain functionality (Updates tab in System -> Software) and say DO NOT USE. That's insane. It's counterintuitive. Novice users will (and do) that mistake every Thursday and all the days in between.
P.S. I have strong impression of déjà vu. We have discussed it before and it was agreed that packaging problem does exist. It is strange that I have to reiterate that once again. Those thumbs up under your message only prove that we're still on denial step. Which is kinda sad.
BusyBox v1.37.0 (2026-10-17 21:45:38 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 25.12.6, r33311-981c978eff Dave's Guitar
-----------------------------------------------------
root@router:~# apk upgrade
(1/2) Upgrading adblock (4.5.9-r2 -> 4.5.9-r3)
Installing file to etc/adblock/adblock.blocklist.apk-new
Installing file to etc/config/adblock.apk-new
Executing adblock-4.5.9-r3.post-upgrade
(2/2) Upgrading banip (1.9.1-r1 -> 1.9.1-r2)
Installing file to etc/banip/banip.allowlist.apk-new
Installing file to etc/banip/banip.blocklist.apk-new
Installing file to etc/config/banip.apk-new
Executing banip-1.9.1-r2.post-upgrade
OK: 42.0 MiB in 254 packages
Can those two f...ck up my system by breaking DNS and firewall? They totally can. Just like hostapd package upgrade can lock me up if WiFi is the only way of router connection I have. So the problem is in package testing which are released to respective branches and not in apk upgrade.
@timur.davletshin the kind of issues you mention are not related to the same issues because the limitations of using opkg/apk upgrades.
Not denying the @slh other points about when the issues about this could arise, I have only seem this kind of problems with base-file package updates, doing an attended sysupgrade won't fail in that situations while package manager upgrades will.