Enable WPA3 on Openwrt 19.07.7 and trouble with updates

Hi all..

I update my router to enable WPA3 using this steps:

1 - I uninstall the wpad-basic, version 2019-08-08-ca8c2bd2-7
2 - Install wpad-openssl, version 2019-08-08-ca8c2bd2-7 with this command:

opkg --force-depends --force-maintainer --force-overwrite install wpad-openssl

Ok, but when I try update the packages installed into my router, using this command

opkg update && opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade

I have this error:

Downloading http://downloads.openwrt.org/releases/19.07.7/targets/ath79/generic/packages/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/19.07.7/targets/ath79/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/targets/ath79/generic/kmods/4.14.221-1-b84a5a29b1d5ae1dc33ccf9ba292ca1d/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_kmods
Downloading http://downloads.openwrt.org/releases/19.07.7/targets/ath79/generic/kmods/4.14.221-1-b84a5a29b1d5ae1dc33ccf9ba292ca1d/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/base/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/freifunk/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_freifunk
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/freifunk/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/luci/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/packages/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/routing/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/telephony/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/telephony/Packages.sig
Signature check passed.
opkg: the ``upgrade'' command requires at least one argument
usage: opkg [options...] sub-command [arguments...]
where sub-command is one of:

Package Manipulation:
        update                  Update list of available packages
        upgrade <pkgs>          Upgrade packages
        install <pkgs>          Install package(s)
        configure <pkgs>        Configure unpacked package(s)
        remove <pkgs|regexp>    Remove package(s)
        flag <flag> <pkgs>      Flag package(s)
         <flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)

Informational Commands:
        list                    List available packages
        list-installed          List installed packages
        list-upgradable         List installed and upgradable packages
        list-changed-conffiles  List user modified configuration files
        files <pkg>             List files belonging to <pkg>
        search <file|regexp>    List package providing <file>
        find <regexp>           List packages whose name or description matches <regexp>
        info [pkg|regexp]       Display all info for <pkg>
        status [pkg|regexp]     Display all status for <pkg>
        download <pkg>          Download <pkg> to current directory
        compare-versions <v1> <op> <v2>
                            compare versions using <= < > >= = << >>
        print-architecture      List installable package architectures
        depends [-A] [pkgname|pat]+
        whatdepends [-A] [pkgname|pat]+
        whatdependsrec [-A] [pkgname|pat]+
        whatrecommends[-A] [pkgname|pat]+
        whatsuggests[-A] [pkgname|pat]+
        whatprovides [-A] [pkgname|pat]+
        whatconflicts [-A] [pkgname|pat]+
        whatreplaces [-A] [pkgname|pat]+

Options:
        -A                      Query all packages not just those installed
        -V[<level>]             Set verbosity level to <level>.
        --verbosity[=<level>]   Verbosity levels:
                                        0 errors only
                                        1 normal messages (default)
                                        2 informative messages
                                        3 debug
                                        4 debug level 2
        -f <conf_file>          Use <conf_file> as the opkg configuration file
        --conf <conf_file>
        --cache <directory>     Use a package cache
        -d <dest_name>          Use <dest_name> as the the root directory for
        --dest <dest_name>      package installation, removal, upgrading.
                                <dest_name> should be a defined dest name from
                                the configuration file, (but can also be a
                                directory name in a pinch).
        -o <dir>                Use <dir> as the root directory for
        --offline-root <dir>    offline installation of packages.
        --add-arch <arch>:<prio>        Register architecture with given priority
        --add-dest <name>:<path>        Register destination with given path

Force Options:
        --force-depends         Install/remove despite failed dependencies
        --force-maintainer      Overwrite preexisting config files
        --force-reinstall       Reinstall package(s)
        --force-overwrite       Overwrite files from other package(s)
        --force-downgrade       Allow opkg to downgrade packages
        --force-space           Disable free space checks
        --force-postinstall     Run postinstall scripts even in offline mode
        --force-remove  Remove package even if prerm script fails
        --force-checksum        Don't fail on checksum mismatches
        --no-check-certificate Don't validate SSL certificates
        --noaction              No action -- test only
        --download-only No action -- download only
        --nodeps                Do not follow dependencies
        --nocase                Perform case insensitive pattern matching
        --size                  Print package size when listing available packages
        --force-removal-of-dependent-packages
                                Remove package and all dependencies
        --autoremove            Remove packages that were installed
                                automatically to satisfy dependencies
        -t                      Specify tmp-dir.
        --tmp-dir               Specify tmp-dir.
        -l                      Specify lists-dir.
        --lists-dir             Specify lists-dir.

 regexp could be something like 'pkgname*' '*file*' or similar
 e.g. opkg info 'libstd*' or opkg search '*libop*' or opkg remove 'libncur*'

Is the anyway to solve this?

Thanks!!

1 Like

Hi @vgaetera ...

I will carefully read the links you sent me ...
At the moment, thanks for sharing the material!

1 Like

I came back after reading ...

I performed the installation of the libustream-mbedtls package as instructed and downloaded the opkg-extras.sh script ...

I put the execution permission on it with chmod +x opkg-extras.sh and ran it using sh ./opkg-extras.sh, but I don't see any output from the command, I don't see anything happening ...

I'll reproduce below, but I've already installed the libustream-mbedtls package ...

root@zeus:~# opkg update
Downloading http://downloads.openwrt.org/releases/19.07.7/targets/ar71xx/generic/packages/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/19.07.7/targets/ar71xx/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/targets/ar71xx/generic/kmods/4.14.221-1-342af9e4f67b3447c53216ab8e3b12a1/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_kmods
Downloading http://downloads.openwrt.org/releases/19.07.7/targets/ar71xx/generic/kmods/4.14.221-1-342af9e4f67b3447c53216ab8e3b12a1/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/base/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/freifunk/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_freifunk
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/freifunk/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/luci/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/packages/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/routing/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/telephony/Packages.gz
Updated list of available packages in /usr/lib/opkg/lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/telephony/Packages.sig
Signature check passed.
root@zeus:~# opkg install libustream-mbedtls
Package libustream-mbedtls20150806 (2020-03-13-40b563b1-1) installed in root is up to date.
root@zeus:~# uclient-fetch -O opkg-extras.sh "https://openwrt.org/_export/code/docs/guide-user/advanced/opkg_extras?codeblock=0"
Downloading 'https://openwrt.org/_export/code/docs/guide-user/advanced/opkg_extras?codeblock=0'
Connecting to 2a03:b0c0:3:d0::1af1:1:443
Writing to 'opkg-extras.sh'

Download completed (4795 bytes)
root@zeus:~# chmod +x opkg-extras.sh
root@zeus:~# ll
drwxr-xr-x    1 root     root          4096 Mar 26 16:17 ./
drwxr-xr-x    1 root     root          4096 Mar 26 15:06 ../
drwx------    3 root     root          4096 Mar 26 00:10 .config/
-rwxr-xr-x    1 root     root          4795 Mar 26 16:17 opkg-extras.sh*
root@zeus:~# . ./opkg-extras.sh
root@zeus:~# sh ./opkg-extras.sh
root@zeus:~#

Am I doing something wrong? Could you help me?

1 Like

No output means no updates.

Thanks @vgaetera !

So,

opkg update => OK
opkg ulist => I change by opkg list-upgradable
opkg allupgrade all => I don´t find nothing command to run yet...

The last 2 commands return error here.

Trying to run the "Automated Script", doesn´t work, see...

Into Luci:

ssh session:

root@isis:~# opkg install libustream-mbedtls
Installing libustream-mbedtls20150806 (2020-03-13-40b563b1-1) to root...
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/base/libustream-mbedtls20150806_2020-03-13-40b563b1-1_mips_24kc.ipk
Installing libmbedtls12 (2.16.9-1) to root...
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/base/libmbedtls12_2.16.9-1_mips_24kc.ipk
Configuring libmbedtls12.
Configuring libustream-mbedtls20150806.
root@isis:~# uclient-fetch -O opkg-extras.sh "https://openwrt.org/_export/code/docs/guide-user/advanced/opkg_extras?codeblock=0"
Downloading 'https://openwrt.org/_export/code/docs/guide-user/advanced/opkg_extras?codeblock=0'
Connecting to 2a03:b0c0:3:d0::1af1:1:443
Writing to 'opkg-extras.sh'

Download completed (4795 bytes)
root@isis:~# ll
drwxr-xr-x    1 root     root          4096 Mar 26 16:59 ./
drwxr-xr-x    1 root     root          4096 Mar 26 16:34 ../
-rw-r--r--    1 root     root          4795 Mar 26 16:59 opkg-extras.sh
drwxr-xr-x    2 root     root          4096 Mar 26 16:46 update/
root@isis:~# . ./opkg-extras.sh
root@isis:~# chmod +x opkg-extras.sh
root@isis:~# . ./opkg-extras.sh
root@isis:~# ll
drwxr-xr-x    1 root     root          4096 Mar 26 16:59 ./
drwxr-xr-x    1 root     root          4096 Mar 26 16:34 ../
-rwxr-xr-x    1 root     root          4795 Mar 26 16:59 opkg-extras.sh*
drwxr-xr-x    2 root     root          4096 Mar 26 16:46 update/
root@isis:~# sh ./opkg-extras.sh
root@isis:~# ./opkg-extras.sh
root@isis:~#
1 Like

Do you believe that the controls now worked perfectly?

Arrghhhh!

I believe I may have experienced some instability in my provider's network ...

Anyway, thank you very much for your support so far.

Just so that I can understand even better:

I ran the commands in sequence:

1 - opkg update
2 - opkg ulist
3 - opkg allupgrade all

What is the difference in practice for this command?

opkg update && opkg list-upgradable | cut -f 1 -d '' | xargs opkg upgrade

It's a different implementation to achieve the same purpose, but in a more flexible way.
For example, it makes possible to upgrade all packages, or only packages installed in overlay.
The latter option can be considered a safe upgrade.

1 Like

Nice!

I saved it here in my list of "useful commands" and I will use it from now on because it is a "safe way" to make the updates ...

Once again, thank you very much for the explanations!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.