Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: linz on September 29, 2022, 11:57:51 AM



Title: E: Package 'libqt4-dev' has no installation candidate
Post by: linz on September 29, 2022, 11:57:51 AM
when i install in ubuntu20
```
sudo apt-get install autoconf libtool pkg-config libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libevent-dev libqt4-dev libcanberra-gtk-module libdb++-dev
   
```
it show E: Package 'libqt4-dev' has no installation candidate

how can i solve it.


Title: Re: E: Package 'libqt4-dev' has no installation candidate
Post by: PawGo on September 29, 2022, 12:10:20 PM
You may follow instructions from there:
https://ubuntuhandbook.org/index.php/2020/07/install-qt4-ubuntu-20-04/

Like ETFBitcoin wrote, you need to use an additional repository.

Maybe other option would be to manually download .deb packages from 18.04 and install them on 20.04?


Title: Re: E: Package 'libqt4-dev' has no installation candidate
Post by: linz on September 29, 2022, 12:13:27 PM
Qt4 already each end of life, so Ubuntu 20.04 or other more recent linux distro no longer include Qt4 on their repository. You could add third party repository such as ppa:rock-core/qt4[1], but there's no guarantee you won't face another problem. Alternatively, setup a VM or Docker image which contain older linux distro, then compile the application inside it.

[1] https://launchpad.net/~rock-core/+archive/ubuntu/qt4/+packages (https://launchpad.net/~rock-core/+archive/ubuntu/qt4/+packages)
thanks ,i use this link https://askubuntu.com/questions/1234786/qt4-libqt4-in-ubuntu-20-04 .can it be ok?


Title: Re: E: Package 'libqt4-dev' has no installation candidate
Post by: NotATether on September 29, 2022, 01:22:56 PM
This is a highly annoying problem that can be solved by adding a PPA that packages QT4. Here are some PPAs for 20.04 and 22.04 (https://ubuntuhandbook.org/index.php/2020/07/install-qt4-ubuntu-20-04/amp/). In particular, Armory still depends on libqt4 (and it was actually wiped out when I upgraded from Focal to Jammy) but there is a beta version of Armory that runs on QT5.