Support
Forums

How to install pyqt4 in Ubuntu 24.04

Dell Latitude E5570 running Ubuntu 24.04 and Python3 When installing HPLIP it required pyqt4 and pyqt5. I could install pyqt5 successfully at the terminal but the system couldn’t find pyqt4. I get: keith@E5570:~$ sudo apt-get install py...

Dell Latitude E5570 running Ubuntu 24.04 and Python3

When installing HPLIP it required pyqt4 and pyqt5. I could install pyqt5 successfully at the terminal but the system couldn’t find pyqt4. I get:

keith@E5570:~$ sudo apt-get install pyqt4
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package pyqt4
keith@E5570:~$

The result is that although the main features of HPLIP are available, its GUI, with the options to change settings , is not.

A web search reveals answers for installation on Python2, and earlier versions of Ubuntu but mostly not helpful. This link looks the most straightforward but, again, it’s very out of date. Trying it anyway, I get this after sudo apt update:
.
.

Reading package lists… Done
E: The repository ‘Index of /rock-core/qt4/ubuntu noble Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
keith@E5570:~$

I would welcome any advice.

2 posts - 2 participants

Read full topic