在 ubuntu 22.04 上安装 qt5-defualt 时出现以下错误。
sudo apt-get install qt5-default
输出:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package qt5-default is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'qt5-default' has no installation candidate
Ubuntu 22.04 存储库没有 qt5-default 软件包。
您可以通过安装 qtbase5-dev 来获取预构建的库。
sudo apt install qtbase5-dev qt5-qmake
我遇到了同样的错误,我正在使用 ubuntu24.04。我尝试了 Serkan ÜNAL 的答案,但没有成功。