When trying to open a program that requires Qt6, it gives error while loading shared libraries: libQt6Network.so.6: cannot open shared object file: No such file or directory. I tried installing Qt6 by going to the Qt website -> Downloads for open source users -> Download the Qt Online Installer -> Qt Online Installer for Linux (64-bit), then in the installer itself I selected "Qt 6.2 for desktop development". After it'd finished installing I restarted and tried to open the program again, and it still gave the same error. I'd also seen sudo apt install qt6-base-dev be suggested so I tried that, but that just gives the error Unable to locate package qt6-base-dev, so now I'm not sure what else I could try.
1 Answer
libqt6network6 is indeed part of the qt6-base-dev meta-package and you can install it like so:
sudo apt install qt6-base-devHowever, unfortunately, this meta-package is not available for Ubuntu 21.10. It is currently available only for Ubuntu 22.04
1