Updating from Turris OS 4.0.1 to Turris OS 6.0.4 fails due to `ath10k-firmware-qca9888-ct-htt`
Updating from Turris OS 4.0.1 to Turris OS 6 fails with the following error (a similar error shows in the WebUI):
root@turris:~# pkgupdate
INFO:Target Turris OS: 6.0.4
WARN:There's no extra option condition for a install
line not found
line not found
line not found
ERROR:
inconsistent: Candidate exists for virtual package ath10k-firmware-qca9888-ct-htt
This has already been mentioned in the forums (see https://forum.turris.cz/t/update-error-on-turrisos-4-ath10k-firmware-qca9888-ct-htt/18256 and https://forum.turris.cz/t/not-able-to-update-after-factory-reset/18033), but since I couldn't find a GitLab issue, I thought I'd report it here too.
Work-around
We can just flash a newer version of Turris OS, but considering that some Turris Omnias still come with Turris OS 4 by default (and factory reset uses Turris OS 4), sometimes doing a manual update is easier:
version
5.4.4, then back to Turris OS branch
hbs
Updating to Manually updating to Turris OS 5.4.4 works:
Modifying /etc/config/updater
to set mode
to version
and version
to 5.4.4
.
config turris 'turris'
# option mode 'branch'
option mode 'version'
option version '5.4.4'
Then, running pkgupdate
lets us do an update to v5.4.4:
root@turris:~# pkgupdate
INFO:Target Turris OS: 5.4.4
WARN:There's no extra option condition for a install
INFO:Queue install of libgcc/core/7.5.0-2
INFO:Queue install of libc/core/1.1.24-2
INFO:Queue install of ca-certificates/base/20200601-1
INFO:Queue install of libopenssl/base/1.1.1q-1
INFO:Queue install of libexpat/packages/2.2.10-2
INFO:Queue install of libbz2/base/1.0.8-1
INFO:Queue install of libpthread/core/1.1.24-2
INFO:Queue install of liblzma/packages/5.2.5-1
INFO:Queue install of zlib/base/1.2.12
INFO:Queue install of libarchive/packages/3.4.2-1
INFO:Queue install of liburiparser/turrispackages/0.9.6-1
INFO:Queue install of ca-bundle/base/20200601-1
INFO:Queue install of libcurl/base/7.66.0-3
INFO:Queue install of libevent2/base/2.1.11-1
INFO:Queue install of liblua/base/5.1.5-3
INFO:Queue install of libubox/base/2020-05-25-66195aee-1
INFO:Queue install of libuci/base/2019-09-01-415f9e48-4
INFO:Queue install of libuci-lua/base/2019-09-01-415f9e48-4
INFO:Queue install of updater-ng/turrispackages/69.1.3-2
Press return to continue, CTRL+C to abort
<...>
Finally, we can undo our changes to /etc/config/updater
by setting mode
to branch
and deleting the version
key.
config turris 'turris'
option mode 'branch'
Then, running pkgupdate
again worked to update us to Target Turris OS: 6.0.4
.
root@turris:~# pkgupdate
INFO:Target Turris OS: 6.0.4
INFO:Queue upgrade of libgcc/core/8.4.0-3[7.5.0-2]
INFO:Queue upgrade of libc/core/1.1.24-3[1.1.24-2]
<...>