To use Enterprise Debian packages with Qt, add your enterprise repositories to Advanced Packaging Tool (APT). For details, see Debian Repository Configuration Format .
To use the enterprise repositories, you need to:
注意: The Enterprise Qt Debian packages are provided as technology-preview packages. For more details and support, contact us .
To add extra repositories for APT, insert repositories into a file with an extension of .list under the /etc/apt/sources.list.d directory. For each repository, add a new entry in the file. The generic format is as follows:
deb [arch=<arch> signed-by=<path>] <REPO_URL> <DIST> <COMPONENT(s)>
An example of an enterprise repository entry:
$ sudo nano /etc/apt/sources.list.d/tqtc.list deb [arch=arm64 signed-by=/home/<user>/keyrings/tqtc/qt-company-debian-repo.gpg] https://debian-packages.qt.io/debian/enterprise/qt-6.3.1-arm64 tqtc-focal main
见 Repository information for Qt Releases for detailed information on how you can configure repositories per Qt release and architecture.
Install a public GPG (GNU Privacy Guard) key for Enterprise Qt Debian repositories as follows:
$ mkdir -p $HOME/keyrings/tqtc # pick a suitable location for you! $ cd $HOME/keyrings/tqtc $ wget https://cdn.qt.io/debian/keys/qt-company-debian-repo.gpg
To access the listed repositories, you need an enterprise Qt Account or an evaluation Qt Account.
注意: If your password contains special characters, you may need to escape those by using '\' or '%40' .
Configure the Qt Account credentials for your APT package manager as follows:
$ sudo nano /etc/apt/auth.conf machine https://debian-packages.qt.io login <Qt Account login name (email)> password <Qt Account password>
Update the local package cache as follows:
$ sudo apt-get update
No errors should originate from the added repository in the output.
The following code snippet demonstrates the whole work flow with Enterprise Qt Debian packages:
# install repository key $ mkdir -p $HOME/keyrings/tqtc $ cd $HOME/keyrings/tqtc $ wget https://cdn.qt.io/debian/keys/qt-company-debian-repo.gpg # configure Qt Account based authentication to Qt Debian repositories $ sudo nano /etc/apt/auth.conf machine https://debian-packages.qt.io login <your Qt Account email> password <your Qt Account password> # add repositories $ sudo nano /etc/apt/sources.list.d/tqtc.list deb [arch=arm64 signed-by=/home/<user>/keyrings/tqtc/qt-company-debian-repo.gpg] https://debian-packages.qt.io/debian/enterprise/qt-6.3.1-arm64 tqtc-focal main # update local package cache $ sudo apt-get update # search and install packages $ apt-cache search qt6.3.1 .... .... # files are installed under /opt/qt-6.3.1/ $ sudo apt-get install qt6.3.1-declarative-dev qt6.3.1-declarative-private-dev ...
见 Repository information for Qt Releases to pick the needed repositories into your /etc/apt/sources.list.d/tqtc.list 文件。
The server may response with the following HTTP error codes:
Wrong credentials. User email and password must be provided in correct format.
Also, try storing the credentials directly into the repository config:
deb [...] https://<Qt Account email>:<Qt Account passwd>@https://debian-packages.qt.io/.....
If your password contains special characters, you may need to escape those for APT. Use '' or '%40' for escaping those characters or try changing your Qt Account password.
Missing credentials.
User has sent too much failed requests (3 requests per minute).
联络 Qt 支持 .
An alternative to 'signed-by' usage attribute in the repository config is to install the key in the following way, althoug this is not recommended as it's deprecated way to install it:
$ sudo apt-key add qt-company-debian-repo.gpg
Below you can find the Qt releases that the Enterprise Qt Debian packages supports. Pick the needed repositories and add them to your /etc/apt/sources.list.d/tqtc.list as instructed above.
Also, the following tables list the installation directories on your system and the Linux distribution compatible with the packages.
注意: To access the listed repositories, you need an evaluation Qt Account or a commercial Qt Account with a Qt for Device Creation license.
注意: The packages may work on other distributions as well but there is no guarantee on that.
体系结构 | 分发 | Installation directory | Package resource list entries for APT |
---|---|---|---|
amd64 | focal-fossa (Ubuntu 20.04) | /opt/qt-creator/ | deb [arch=amd64 signed-by=<path>] https://debian-packages.qt.io/debian/enterprise/qtcreator-amd64 tqtc-focal main |
arm64 | focal-fossa (Ubuntu 20.04) | /opt/qt-creator/ | deb [arch=arm64 signed-by=<path>] https://debian-packages.qt.io/debian/enterprise/qtqtcreator-arm64 tqtc-focal main |
体系结构 | 分发 | Installation directory | Package resource list entries for APT |
---|---|---|---|
amd64 | focal-fossa (Ubuntu 20.04) | /opt/qt-6.3.2/x86_64-linux-gnu/ | deb [arch=amd64 signed-by=<path>] https://debian-packages.qt.io/debian/enterprise/qt-6.3.2-amd64 tqtc-focal main |
arm64 | focal-fossa (Ubuntu 20.04) | /opt/qt-6.3.2/aarch64-linux-gnu/ | deb [arch=arm64 signed-by=<path>] https://debian-packages.qt.io/debian/enterprise/qt-6.3.2-arm64 tqtc-focal main |
体系结构 | Distribution (build platform) | Installation directory | Package resource list entries for APT |
---|---|---|---|
amd64 | focal-fossa (Ubuntu 20.04) | /opt/qt-6.3.1/x86_64-linux-gnu/ | deb [arch=amd64 signed-by=<path>] https://debian-packages.qt.io/debian/enterprise/qt-6.3.1-amd64 tqtc-focal main |
arm64 | focal-fossa (Ubuntu 20.04) | /opt/qt-6.3.1/aarch64-linux-gnu/ | deb [arch=arm64 signed-by=<path>] https://debian-packages.qt.io/debian/enterprise/qt-6.3.1-arm64 tqtc-focal main |