Author Topic: Is impossible to install HP printing application, it fails due to lack of PyQt4.  (Read 2036 times)

Offline joejac

  • Full Member
  • ***
  • Posts: 169
1.- I Reload, Mark All Upgrades and there is nothing to Apply.

2- I searched and marked libqtdeclarative4 (latest version 4.7.3-1pclos2011) and I got:
libqtdeclarative4:
 Depends: qt4-common (= 4.7.3)
 
3.- I searched for:
       qt4-common
 
3.1 and I see already installed (green square):
      qt4-common    4.8.1-5pclos2012
   
3.2 I do not understand why is asking for an older version, any suggestion?

4.- I saw also: python-qt4-declarative  but it is not lib. I marked anyway but I got:
python-qt4-declarative:
 Depends: libQtDeclarative.so.4
 
 This name libQtDeclarative.so.4 is not exactly libqtdeclarative4
 
4.1 How can I install libQtDeclarative.so.4 for the version of  qt4-common  4.8.1-5pclos2012 I have, if it is not in the repos?.

5.- The LXDE VM guest is printing with no problem.

6.- How can I see a log of the machine and look for a cause for the freeze that occurs one time a day?, the machine still has about 6 or 8GB of RAM and 2 CPUs available for the Host. 

Thanks djohnston
joejac

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2440
  • Any Bugs in site?
joejac
Most of what I have read here is a bit over my head but there seems to be an indication that printing does work at some stage. I would like just one piece of information.

From konsole can you post the output of lpstat -t    ;D


32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline joejac

  • Full Member
  • ***
  • Posts: 169
Hello and thanks wedgetail

lpstat -t
scheduler is running
no system default destination
device for DeskJet_845C: ipp://10.0.2.15:631/printers/DeskJet_845C
device for DeskJet_845C_2: ipp://10.0.2.15:631/printers/DeskJet_845C_2
DeskJet_845C accepting requests since Fri 08 Jun 2012 07:43:19 AM VET
DeskJet_845C_2 accepting requests since Fri 08 Jun 2012 07:43:20 AM VET
printer DeskJet_845C is idle.  enabled since Fri 08 Jun 2012 07:43:19 AM VET
printer DeskJet_845C_2 is idle.  enabled since Fri 08 Jun 2012 07:43:20 AM VET

But I try to print from the LXDE Host and I get:
 Status
   Getting printer information failed

Regards
joejac

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2440
  • Any Bugs in site?
joejac
There is something wrong around the CUPS operation, I am tempted to say CUPS is not working, however I do not use LXDE a lot so I can not give exact instructions.

You can try to click on this link, if I am right this will fail.  (I think this needs to work before you can use PCC ....)

http://localhost:631/printers/

Also try in root konsole to do:

Quote
[root@KDE-mini-Cprog gert]# service -f cups
Stopping CUPS printing system:                                             [  OK  ]
Starting CUPS printing system:                                             [  OK  ]
Re-enabling disabled print queues:
[root@KDE-mini-Cprog gert]#


If CUPS is working you should get exactly above response.  :)
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline joejac

  • Full Member
  • ***
  • Posts: 169
Hello wedgetail,

1.- I click in the link and now CUPS is working, 2 days ago was not working.
1.1 There is no printer in CUPS printers list.
1.2 Same as before: "PCC-Hardware-Configure printing and scanner and Setup the printer" do not respond when I click on it.

2.- Same problem if I try to instal task-printing-hp
task-printing-hp:
 Depends: hplip-gui


3.- This is the output of the command
Code: [Select]
[b]# service -f cups[/b]
Stopping CUPS printing system:                                  [  OK  ]
Starting CUPS printing system:                                  [  OK  ]
Re-enabling disabled print queues:
lpstat: No destinations added.

Thanks
joejac
« Last Edit: June 08, 2012, 07:23:30 PM by joejac »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
wedgetail,

Hang on. He has a working printer in a Linux VM. The printer is not working in the host. In both instances, it is the same printer. This is not a CUPS issue. He has badly broken package dependencies. Would you like to help him solve the dependency issues?

joejac,

In reply #11, when you tried to apt-get install python-qt4, one of the results was:


The following packages have unmet dependencies:
  python-qt4: Depends: python-qt4-declarative (= 4.8.4)
              Depends: python-qt4-designer (= 4.8.4)
              Depends: python-qt4-help (= 4.8.4)
              Depends: python-qt4-multimedia (= 4.8.4)
              Depends: python-qt4-scripttools (= 4.8.4)
              Depends: python-qt4-test (= 4.8.4)
              Depends: python-qt4-webkit (= 4.8.4)
E: Broken packages



In reply #15, in trying to solve this in Synaptic, you said,


2- I searched and marked libqtdeclarative4 (latest version 4.7.3-1pclos2011) and I got:
libqtdeclarative4:
 Depends: qt4-common (= 4.7.3)
 
3.- I searched for:
       qt4-common
 
3.1 and I see already installed (green square):
      qt4-common    4.8.1-5pclos2012
   
3.2 I do not understand why is asking for an older version, any suggestion?

4.- I saw also: python-qt4-declarative  but it is not lib. I marked anyway but I got:
python-qt4-declarative:
 Depends: libQtDeclarative.so.4
 
 This name libQtDeclarative.so.4 is not exactly libqtdeclarative4
 
4.1 How can I install libQtDeclarative.so.4 for the version of  qt4-common  4.8.1-5pclos2012 I have, if it is not in the repos?.


So, you are trying to install python-qt4-declarative version 4.8.4. That package depends on libqtdeclarative4.so.4, which is provided by the libqtdeclarative4 package, but the version you have installed is 4.7.3. In addition, libqtdeclarative4 depends on qt4-common, but you have version 4.8.1 installed. You have three different version numbers of packages, and they should all be the same version number. If this was limited to two versions, it would be much easier. But, because qt4-common is involved, you may be at an impasse.

Open Synaptic again. Click Reload. Click Mark All Upgrades. Install updates if there are any. Look for libqtdeclarative4. Mark it for complete removal. If it is going to remove more packages, post them here before going any further.


6.- How can I see a log of the machine and look for a cause for the freeze that occurs one time a day?, the machine still has about 6 or 8GB of RAM and 2 CPUs available for the Host. 


At sometime in the past, on the host, you probably updated from an old, no longer maintained repo, before installing the apt-sources-list package. You may have had some partial updates or you had more than one repo enabled at the same time. In any case, this problem with printer package dependencies may be indicative of a system wide problem causing your computer lockups. I don't know. If I were in your shoes, because you already have a working printer installation in one of your VMs, I would open Synaptic and compare the packages installed in the guest, compared to the packages installed in the host. They are definitely not the same.

If we cannot solve the printer problem in the host, I would not venture to try to solve the computer lockups. You may be looking at reinstalling the host OS. If so, you need to follow a pre-planned outline, to the letter.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2440
  • Any Bugs in site?
djohnston
I will be more than happy to hang on and watch from the sideline. The dependencies need to be right under all circumstances to have confidence in the future operation. ;D
« Last Edit: June 08, 2012, 10:29:11 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline joejac

  • Full Member
  • ***
  • Posts: 169
Hello to both, and thanks.

My head aches with this issue and yes I made the mistake to use more than one repo. So I guess a fresh new install as recommended by djohnston would be the best approach, instead of continuing trying to solve a damaged installation.

The key issue is that I have very new hardware, the test kernel-3.2.18-pclos1.pae.bfs was useful to recognize my Network card. My questions are:

1.- Is there a way with Synaptic to reinstall everything from scratch or I will be leaving in the Desktop pieces of the old installation that will not allow a new fresh installation. If not possible:
2.- Is there a stable PCLOS iso installation with kernel-3.2.18-pclos1.pae.bfs available, I do not mind if it is not LXDE?
3.- If so where I can download it.
4.- The best recommended repository, I do not need the games repo.
5.- Any other necessary recommendation.

I will back up my VMs just before to reinstall and then I will reinstall. I hope I do not need to erase the Solid State Drive, I mean that I can install the new PCLOS over the old installation, because it is a dual boot, PCLOS-Win7.

Regards
joejac

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows

1.- Is there a way with Synaptic to reinstall everything from scratch or I will be leaving in the Desktop pieces of the old installation that will not allow a new fresh installation. If not possible:


Yes, it can be done. Please post results of the following:

su
cat /etc/fstab
cat /boot/grub/menu.lst



2.- Is there a stable PCLOS iso installation with kernel-3.2.18-pclos1.pae.bfs available, I do not mind if it is not LXDE?


No, there is no iso yet. This is where a plan of action, in the form of an outline comes in. You can reinstall your current LXDE desktop correctly to the PC host in less than 2 hours. You just have to follow some guidelines. The guidelines will cover items 4 and 5. You will beed to reformat the root partition for PCLinuxOS. Nothing else will be erased, and your Windows install won't be touched.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline joejac

  • Full Member
  • ***
  • Posts: 169
Great djohnston!, so you are one of the PCLOS Gurus  :)

1.- The output for: cat /etc/fstab
Code: [Select]
# cat /etc/fstab
# Entry for /dev/sdb1 :
UUID=fa578f0b-3dcb-4a31-b32d-0425898b2114 / ext4 defaults 1 1
# Entry for /dev/sdb6 :
UUID=54d94a3c-89f1-43ef-8e70-457bbd503c28 /home ext4 defaults 1 2
none /proc proc defaults 0 0
# Entry for /dev/sdb5 :
UUID=5d1d223b-d7f0-4fe3-b7b1-b99ddbf950c4 swap swap defaults 0 0
none /dev/pts devpts defaults 0 0

2.- The output for: cat /boot/grub/menu.lst
Code: [Select]
# cat /boot/grub/menu.lst
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,0)/boot/gfxmenu
default 0

title linux
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=fa578f0b-3dcb-4a31-b32d-0425898b2114 quiet nokmsboot vmalloc=256M acpi=on resume=UUID=5d1d223b-d7f0-4fe3-b7b1-b99ddbf950c4 splash=silent vga=788
initrd (hd0,0)/boot/initrd.img

title linux-nonfb
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=fa578f0b-3dcb-4a31-b32d-0425898b2114 quiet nokmsboot vmalloc=256M acpi=on resume=UUID=5d1d223b-d7f0-4fe3-b7b1-b99ddbf950c4
initrd (hd0,0)/boot/initrd.img

title failsafe
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=fa578f0b-3dcb-4a31-b32d-0425898b2114 quiet failsafe vmalloc=256M acpi=on
initrd (hd0,0)/boot/initrd.img

title windows
root (hd1,0)
map (0x81) (0x80)
map (0x80) (0x81)
makeactive
chainloader +1

title 2.6.38.8-pclos3.bfs
kernel (hd0,0)/boot/vmlinuz-2.6.38.8-pclos3.bfs BOOT_IMAGE=2.6.38.8-pclos3.bfs root=UUID=fa578f0b-3dcb-4a31-b32d-0425898b2114 quiet nokmsboot vmalloc=256M acpi=on resume=UUID=5d1d223b-d7f0-4fe3-b7b1-b99ddbf950c4 splash=silent vga=788
initrd (hd0,0)/boot/initrd-2.6.38.8-pclos3.bfs.img

title 2.6.38.8-pclos3.pae.bfs
kernel (hd0,0)/boot/vmlinuz-2.6.38.8-pclos3.pae.bfs BOOT_IMAGE=2.6.38.8-pclos3.pae.bfs root=UUID=fa578f0b-3dcb-4a31-b32d-0425898b2114 quiet nokmsboot vmalloc=256M acpi=on resume=UUID=5d1d223b-d7f0-4fe3-b7b1-b99ddbf950c4 splash=silent vga=788
initrd (hd0,0)/boot/initrd-2.6.38.8-pclos3.pae.bfs.img

title 3.2.18-pclos1.pae.bfs
kernel (hd0,0)/boot/vmlinuz-3.2.18-pclos1.pae.bfs BOOT_IMAGE=3.2.18-pclos1.pae.bfs root=UUID=fa578f0b-3dcb-4a31-b32d-0425898b2114 quiet nokmsboot vmalloc=256M acpi=on resume=UUID=5d1d223b-d7f0-4fe3-b7b1-b99ddbf950c4 splash=silent vga=788
initrd (hd0,0)/boot/initrd-3.2.18-pclos1.pae.bfs.img
#

3.- I appreciate a lot your action plan with your guidelines, please.

4.- These are the wonderful things Linux has:
You will need to reformat the root partition for PCLinuxOS. Nothing else will be erased, and your Windows install won't be touched.

Thanks a lot.
Regards
joejac

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Okay, good. Your home directory is on a separate partition. And we now have a public copy of your GRUB boot menu, just in case.

Great djohnston!, so you are one of the PCLOS Gurus  :)

I don't know about that. But I do know how to get what you want done. Print this out.

1. Open your file manager in your home directory. Set the file manager to read hidden files. Make a folder named hidden. Copy every file and folder that begins with a . (dot) to the folder named hidden.
2. After you have backed up all files you need to back up, boot the computer with the 2012.01 LXDE mini or full iso. It must be a 2012.01, or there will be more "catching up" to do, and these instructions will not work.
3. At the keyboard screen, pick your keyboard layout, whatever it will be, English or Spanish.
4. After you have booted from the iso, click the My Documents icon on the desktop and navigate to your home folder on sdb6. It will be one of the items listed in the left pane of the window after "Applications". I cannot tell you which one it will be. You should be able to tell by the size indicated, or the disk label, (if there is one), or by browsing the contents.
5. Once you are in your home folder, click Tools at the top of the window, and select "Open Current Folder as Root". The password is root.
6. As user root, delete the hidden files and folders (the ones starting with a .) that you previously copied to the folder named hidden.
7. Close the PCManFM window.
8. Open a terminal. Enter:

su
umount -a


9. You will get a message that / is busy. That is normal. In the terminal, enter: mount.
10. Be sure nothing on sda and sdb is still mounted. Enter exit in the terminal and close the terminal.
11. You may want to disable xscreensaver by going to More Applications > Configuration > Configure Xscreensaver and choosing Mode: Disable Screen Saver.
12. Click Install PCLinuxOS on the desktop. Select sdb1 as mount point / and sdb6 as mount point /home. sdb5 will automatically be selected as swap partition.
13. After choosing your mount points, sdb1 will automatically be selected to be formatted. That is what you want.
14. sdb6 will not be selected to be formatted. That is your home partition. Do not format it!
15. Proceed with the installation.
16. When you get to the GRUB bootloader part of the installation, install GRUB to the MBR of sdb, the solid state drive. Be sure you do not install GRUB to the Windows drive.

If you have any doubts or any questions during installation, stop and post here.

17. The installation will probably create a GRUB entry for Windows. Most likely, it will need correcting later.
18. After installation, eject the CD and boot to the Linux installation. Create your root password and your username and password.

Because you do not yet have the newer kernel installed, you will need to use your ethernet connection. You will be able to use the wireless after installing the newer kernel.

19. As soon as you have logged in to the new installation, enable Clipit if you want. Open Synaptic. Just the heanet repository will be selected. Click Reload.
20. DO NOT click Mark All Upgrades.

The next step is crucial. If this is not done correctly, you may have to do everything again. This is where you originally ran into problems, because none of the latest isos have the current repository list.

21. Scroll down the list of packages and mark apt-sources-list for installation. DO NOT select anything else for installation. Click the Install button and install just that one package.
22. You will see a message that /etc/apt/sources.list was saved as /etc/apt/sources.list.rpmsave. That is normal. The rpmsave file is your old (out of date) repository list.
23. Click Settings > Repositories. You will now have two repos selected. The first one only has the megagames section. That is okay. The second one will be the heanet repository with the regular PCLinuxOS sections enabled. You can select another repo, other than heanet, if you wish. But DO NOT select more than one repo other than the megagames entry.
24. Click the Reload button again.
25. Click Mark All Upgrades.
26. Click Apply and install all updates. After they are installed, REBOOT.

27. Log in to a PCLinux session again. Don't install any extra packages yet.
28. Open Synaptic. Click Settings > Repositories. Select the PCLinuxOS repo you are using other than the megagames one. In the Section(s): line, add the word testing with an extra space after the word. The contents should now be:
main updates nonfree games kde4 xfce4 testing
Don't forget the extra space after the word testing. Save the changes.
29. Click the Reload button.
30. DO NOT click Mark All Upgrades.
31. Click the Search button and search for packages with the word kernel.
32. Find kernel-3.2.18-pclos1.pae.bfs and mark it for installation. Accept all other packages to be installed.
33. Find all packages beginning with dkms-. Mark for upgrade any that are upgradeable. They will all be video drivers.
34. Click Apply. Wait for the packages to be installed.
35. You will get a message that you need to reboot to apply the new kernel. Before rebooting, click Settings > Repositories. DELETE the testing section, leaving one extra space after the word xfce4. Save the changes.
36. REBOOT.
37. Let the GRUB menu boot Linux from the default selection. That will boot your new kernel. You should be able to set up your wireless card again.
38. To correct your Windows GRUB entry, add the entry shown below, or replace the current Windows entry with what is shown below. You will need root privileges to edit /boot/grub/menu.lst.

title windows
root (hd1,0)
map (0x81) (0x80)
map (0x80) (0x81)
makeactive
chainloader +1


Any questions, problems or comments, post again.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline joejac

  • Full Member
  • ***
  • Posts: 169
Thanks a lot djohnston for your valuable time.

I had so many problems that I decided to make a new installation from scratch, so:
1.- I backed up all the VMs to 2 diferent external Hard Disks
2.- I formatted the SSD and installed PCLinuxOS LXDE version 01-2012
3.- Followed your procedure from step 15 above.
4.- Configured NVidia video
5.- Installed VirtualBox and the VMs
6.- task-printing-hp, and my printer worked even with CUPS.
7.- task-pulseaudio and pavucontrol, but the microphone is not working.
7.1 I followed the installation recommendations of Just18 in this post

Yesterday in the afternoon and today in the morning, the Host was working without freeze.
I only have to resolve 2 issues:

1.- At some point the Host recognized the 2 monitors, and after one of the restarts, when upgrading, the system  stopped recognizing the second monitor. They have different resolutions and sizes. I can not say when that happened. I mark Turn-on the second monitor in LXDE Control Center-System-Monitor Settings, and save it and Apply it, but the system unmark it, and the monitor shows no signal.

2.- Now in the Host when I click in: PulseAudio Volume Control I get the error: "Connection failed: Connection refused" I did not have that error in my previous installation, it was working, now I have audio, but not microphone and in Skype test call I can not hear my voice recording. I do not have access to Pulse Audio Volume Control due to that error.

2.1 I had completely removed both, task-pulseaudio and pavucontrol, from Synaptic, rebooted and reinstalled them and same error, any idea?, for now I can live with one monitor, but I depend on the mic for my Skype calls.

Thanks a lot
Regards
joejac

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows

Yesterday in the afternoon and today in the morning, the Host was working without freeze.


Well, at least that's solved.


I only have to resolve 2 issues:


You really need to start new topics for each issue. That will get better responses than the ones I can give.


1.- At some point the Host recognized the 2 monitors, and after one of the restarts, when upgrading, the system  stopped recognizing the second monitor. They have different resolutions and sizes. I can not say when that happened. I mark Turn-on the second monitor in LXDE Control Center-System-Monitor Settings, and save it and Apply it, but the system unmark it, and the monitor shows no signal.


Always set up your hardware in the PCLinuxOS Control Center, not the LXDE one. Hope that helps.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline joejac

  • Full Member
  • ***
  • Posts: 169

Yesterday in the afternoon and today in the morning, the Host was working without freeze.


Hello, unfortunately after I reinstalled the LXDE Host from scratch last Sunday, today, 30 minutes ago the Host froze.  I do not know what to do, I followed very carefully Mr. djohnston procedure, in fact I formatted all the SSD and did a new installation. Meanwhile my son spent a week ago a complete weekend in the Win7 disk on same machine without rest, in his Battlefield 3 wars, and no froze for him.

Any help is very much appreciated, I hope none of my VMs get damaged in a possible freeze of the host. I am going to start a new topic.

Regards
joejac
« Last Edit: August 16, 2012, 02:09:00 PM by joejac »