Author

Topic: E: Package 'libqt4-dev' has no installation candidate (Read 107 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
Maybe other option would be to manually download .deb packages from 18.04 and install them on 20.04?

I doubt it's that easy when Qt4 depends on lots of specific library version.

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
thanks ,i use this link https://askubuntu.com/questions/1234786/qt4-libqt4-in-ubuntu-20-04 .can it be ok?

What exactly do you mean by ok? On security side, i did not find any report that repository contain dangerous binary. But i don't know whether it'll work since i haven't try it myself.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
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. 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.
newbie
Activity: 23
Merit: 6
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
thanks ,i use this link https://askubuntu.com/questions/1234786/qt4-libqt4-in-ubuntu-20-04 .can it be ok?
legendary
Activity: 952
Merit: 1385
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?
newbie
Activity: 23
Merit: 6
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.
Jump to: