Problem after upgrade

Hello,
I have an issue since upgrading OpenWrt from 22.03.1 to 23.05.2. The upgrade went through without errors, but it seems that my version has not changed in some files:

DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='22.03.1'
DISTRIB_REVISION='r19777-2853b6d652'
DISTRIB_TARGET='mediatek/mt7622'
DISTRIB_ARCH='aarch64_cortex-a53'
DISTRIB_DESCRIPTION='OpenWrt 22.03.1 r19777-2853b6d652'
DISTRIB_TAINTS=''

After upgrading the packages, I no longer have access to Luci. Internet and SSH work correctly. Here is what happens when I try to install Luci:

root@OPENWRT:~# opkg install luci
Multiple packages (libgcc1 and libgcc1) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (libgcc1 and libgcc1) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Installing luci (git-23.093.42303-d58cd69) to root...
Downloading https://downloads.openwrt.org/releases/22.03.1/packages/aarch64_cortex-a53/luci/luci_git-23.093.42303-d58cd69_all.ipk
Configuring luci.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nfnetlink
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nfnetlink found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nf-reject
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-reject found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nf-reject6
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-reject6 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nf-conntrack
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-conntrack found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nf-conntrack6
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-conntrack6 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nf-nat
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-nat found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nf-log
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-log found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nf-log6
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-log6 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-crypto-hash
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-crypto-hash found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-crypto-crc32c
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-crypto-crc32c found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-lib-crc32c
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-lib-crc32c found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nft-core
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nft-core found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nft-fib
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nft-fib found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nf-flow
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-flow found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nft-nat
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nft-nat found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nft-offload
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nft-offload found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-nf-ipt
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-ipt found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-ipt-core
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-core found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-ipt-conntrack
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-conntrack found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.146-1-78b7feac8241898bca1ce7844c52d6a2) for kmod-ipt-nat
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-nat found, but incompatible with the architectures configured

OK, I performed a sysupgrade again, and I have access to Luci again, but I still have some irregularities:

Powered by LuCI openwrt-23.05 branch (git-23.306.39416-c86c256) / OpenWrt 23.05.2 (r23630-842932a63d)

Firmware Version OpenWrt 22.03.1 r19777-2853b6d652 / LuCI openwrt-23.05 branch git-23.306.39416-c86c256
Kernel Version 5.15.137

and :

root@OPENWRT:~# cat /etc/openwrt_version
r19777-2853b6d652
root@OPENWRT:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='22.03.1'
DISTRIB_REVISION='r19777-2853b6d652'
DISTRIB_TARGET='mediatek/mt7622'
DISTRIB_ARCH='aarch64_cortex-a53'
DISTRIB_DESCRIPTION='OpenWrt 22.03.1 r19777-2853b6d652'
DISTRIB_TAINTS=''

when changing version it's often needed to factory default or upgrade with keeping setting
do can save the setting before and use from reference but time to start again

post output of ubus call system board too.

root@OPENWRT:~# ubus call system board
{
        "kernel": "5.15.137",
        "hostname": "OPENWRT",
        "system": "ARMv8 Processor rev 4",
        "model": "Linksys E8450 (UBI)",
        "board_name": "linksys,e8450-ubi",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "22.03.1",
                "revision": "r19777-2853b6d652",
                "target": "mediatek/mt7622",
                "description": "OpenWrt 22.03.1 r19777-2853b6d652"
        }
}


How can I upgrade and keep my network settings ?

I think this may be a device that changed from swconfig to DSA in the move from 22.x to 23.x, which means you can't keep the network config. Best to do an upgrade as an install and factory reset and then go from there.

Pretty sure someone else will confirm that.

I have multiple switches with VLANs, and it's problematic to reset the router and regain access afterward. I noticed that I can create a script using (uci-defaults) and a new kernel.

How can I create a script that configures WiFi to regain access and restores the configuration after upgrading the kernel?