You are not logged in.

#1 2013-07-30 04:40:49

vinnie1
Member
From: Brisbane, Australia
Registered: 2013-06-28
Posts: 7

Cups printing no longer works, and pacman errors

Hi, hope someone can point me in the right direction, I'm a new user so take it easy on me.

My Archlinux install is about 4 months old, everything was working fine until about a couple of weeks ago when I started getting error messages with pacman, and also printing no longer works, perhaps the two problems are related ?

First the cups errors.

vincent ~ $  sudo systemctl start cups.service
Failed to issue method call: Unit cups.service is masked.
vincent ~ $  sudo systemctl enable cups.service
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).

Also when I use pacman, I get these errors at the end of the operation.


ldconfig: File /usr/lib/libfontembed.so is empty, not checked.
ldconfig: File /usr/lib/libcupsfilters.so.1 is empty, not checked.
ldconfig: File /usr/lib/libfontembed.so.1 is empty, not checked.
ldconfig: File /usr/lib/libcupsfilters.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib/libcupsfilters.so is empty, not checked.
ldconfig: File /usr/lib/libfontembed.so.1.0.0 is empty, not checked.

Strangely enough, I am also using Archlinux on my desktop computer which does not seem to be having any issues at all. Both systems are regularly updated.

Last edited by vinnie1 (2013-07-30 06:14:46)

Offline

#2 2013-07-30 04:59:57

straykat
Member
From: Queensland, Australia
Registered: 2009-12-06
Posts: 60

Re: Cups printing no longer works, and pacman errors

vinnie1,
            With your printing errors; what cups packages have you installed? Is it just libcups or do you have the full fat cups installed? What is your printer? Do you have the "driver" package installed for your printer eg; if it's a HP printer have you installed HPLIP?

If you haven't already the cups Arch Wiki is worth a read:
https://wiki.archlinux.org/index.php/Cups

Offline

#3 2013-07-30 05:08:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Cups printing no longer works, and pacman errors

the * is empty, not checked error means that those files are corrupted. Reinstall them.

Offline

#4 2013-07-30 05:24:01

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Cups printing no longer works, and pacman errors

Also, systemd (systemctl) is doing the right thing by not letting you enable the masked cups.service.  So if you want to use/enable it you need to unmask it. 

BTW, once you get cups working properly, I find the cups.socket to be a nice option as the service won't be started until it is actually needed.

Offline

#5 2013-07-30 05:24:04

vinnie1
Member
From: Brisbane, Australia
Registered: 2013-06-28
Posts: 7

Re: Cups printing no longer works, and pacman errors

Hi guys, thanks for the replies.

This is what is installed

vincent ~ $  sudo pacman -Ss cups
[sudo] password for vincent: 
extra/cups 1.6.3-1 [installed]
    The CUPS Printing System - daemon package
extra/cups-filters 1.0.35-2 [installed]
    OpenPrinting CUPS Filters
extra/cups-pdf 2.6.1-1 [installed]
    PDF printer for cups
extra/cups-pk-helper 0.2.5-1
    A helper that makes system-config-printer use PolicyKit
extra/libcups 1.6.3-1 [installed]
    The CUPS Printing System - client libraries and headers
extra/pycups 1.9.62-1

Also hplip,  and a brother printer driver from AUR



When i try and do a cups re-installation I get a couple of screens like below, I can't see the first errors as I can't scroll back that far.

-------------------SNIP------------------------------------------
cups: /usr/share/man/man5/subscriptions.conf.5.gz exists in filesystem
cups: /usr/share/man/man7/backend.7.gz exists in filesystem
cups: /usr/share/man/man7/filter.7.gz exists in filesystem
cups: /usr/share/man/man7/notifier.7.gz exists in filesystem
cups: /usr/share/man/man8/accept.8.gz exists in filesystem
cups: /usr/share/man/man8/cups-deviced.8.gz exists in filesystem
cups: /usr/share/man/man8/cups-driverd.8.gz exists in filesystem
cups: /usr/share/man/man8/cups-lpd.8.gz exists in filesystem
cups: /usr/share/man/man8/cups-snmp.8.gz exists in filesystem
cups: /usr/share/man/man8/cupsaccept.8.gz exists in filesystem
cups: /usr/share/man/man8/cupsaddsmb.8.gz exists in filesystem
cups: /usr/share/man/man8/cupsctl.8.gz exists in filesystem
cups: /usr/share/man/man8/cupsd.8.gz exists in filesystem
cups: /usr/share/man/man8/cupsdisable.8.gz exists in filesystem
cups: /usr/share/man/man8/cupsenable.8.gz exists in filesystem
cups: /usr/share/man/man8/cupsfilter.8.gz exists in filesystem
cups: /usr/share/man/man8/cupsreject.8.gz exists in filesystem
cups: /usr/share/man/man8/lpadmin.8.gz exists in filesystem
cups: /usr/share/man/man8/lpc.8.gz exists in filesystem
cups: /usr/share/man/man8/lpinfo.8.gz exists in filesystem
cups: /usr/share/man/man8/lpmove.8.gz exists in filesystem
cups: /usr/share/man/man8/reject.8.gz exists in filesystem
Errors occurred, no packages were upgraded.
vincent ~ $


The command I am using is pacman -S cups

Like I said, everything was working fine before, something must have happened on an upgrade or something.

Last edited by jasonwryan (2013-07-30 06:10:55)

Offline

#6 2013-07-30 05:25:03

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Cups printing no longer works, and pacman errors

Offline

#7 2013-07-30 05:34:15

vinnie1
Member
From: Brisbane, Australia
Registered: 2013-06-28
Posts: 7

Re: Cups printing no longer works, and pacman errors

Hi WonderWoofy

WonderWoofy wrote:

Also, systemd (systemctl) is doing the right thing by not letting you enable the masked cups.service.  So if you want to use/enable it you need to unmask it. 

BTW, once you get cups working properly, I find the cups.socket to be a nice option as the service won't be started until it is actually needed.


How is all this done. All know at this stage is when I go to http://localhost:631 to look at my printers I get page not found, Coupled with the systemctrl error I am assuming that cups isn't starting, but why the change, I am sure I haven't done anything to cups.

Any pointers about cups.socket, and this masking buisiness. Also what about those pacman errors ?

Offline

#8 2013-07-30 06:12:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Cups printing no longer works, and pacman errors

I've edited your post to use code tags, please do so in future. Also, please edit your first post and remove the redundant 'Help' in the title:
https://wiki.archlinux.org/index.php/Fo … ow_to_Post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2013-07-31 04:19:56

straykat
Member
From: Queensland, Australia
Registered: 2009-12-06
Posts: 60

Re: Cups printing no longer works, and pacman errors

After, as WonderWoofy pointed to, ensuring our repo is up-to-date you still get the warnings try removing the cups package pacman -Rns cups & then retry pacman -S cups.

This will (should) remove the files that caused the warnings so you should then get a clean install. This can happen occasionally & is usually caused by corrupt files.

If the problem persists you can try pacman -Rns cups followed by pacman -Sc to clean the package cache of packages no longer installed. When you then do pacman -S cups the cups package will then need to be downloaded.

I have just done this on my system successfully (no conflicts) so should work for you?

Offline

#10 2013-07-31 04:53:10

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Cups printing no longer works, and pacman errors

If you have your printers already configured, it might be advisable to just try "pacman -Rn cups" first.  That way the configs will be saved to *.pacsave files.  Of course in the event that these too are corrupt, then you might as well delete those too.  You can check to see if pacman thinks any of these files are modified by doing:

# pacman -Qii cups 

(and yes, in this case you do need to run that command as root because some of the configs are readable by root only)

Of course, it should be noted that if these configuration files are corrupt, then they are probably going to show up as modified anyway by pacman since they will now not match the checksum that pacman thinks they should.

Offline

#11 2013-07-31 10:44:45

vinnie1
Member
From: Brisbane, Australia
Registered: 2013-06-28
Posts: 7

Re: Cups printing no longer works, and pacman errors

Hi guys.

It looks like we have made progress, but still not out of the woods yet.

This is what I have done.

For pacman errors I have deleted the offending files, so that issue is now sorted,

Straycat, I have followed your suggestions and cups seems to be working, but at this time printing is not working, I can though go to http:///localhost:631 and configure printers etc, but printing not working.

WonderWoofy, the output of pacman -Qii cups

 vincent ~ $  sudo pacman -Qii cups
[sudo] password for vincent: 
Name           : cups
Version        : 1.6.3-1
Description    : The CUPS Printing System - daemon package
Architecture   : x86_64
URL            : http://www.cups.org/
Licenses       : GPL
Groups         : None
Provides       : None
Depends On     : acl  pam  libcups>=1.6.3  cups-filters  bc  colord  libusb  dbus-core  libsystemd  hicolor-icon-theme
Optional Deps  : xdg-utils: xdg .desktop file support [installed]
Required By    : cups-pdf
Optional For   : brother-hl3045cn-cupswrapper  hplip
Conflicts With : None
Replaces       : None
Installed Size : 10741.00 KiB
Packager       : Andreas Radke <andyrtr@archlinux.org>
Build Date     : Fri 12 Jul 2013 23:30:32 EST
Install Date   : Thu 01 Aug 2013 02:30:42 EST
Install Reason : Explicitly installed
Install Script : Yes
Validated By   : Signature
Backup Files:
UNMODIFIED      /etc/cups/cupsd.conf
UNMODIFIED      /etc/cups/snmp.conf
MODIFIED        /etc/cups/printers.conf
UNMODIFIED      /etc/cups/classes.conf
UNMODIFIED      /etc/cups/cups-files.conf
UNMODIFIED      /etc/cups/subscriptions.conf
UNMODIFIED      /etc/dbus-1/system.d/cups.conf
UNMODIFIED      /etc/logrotate.d/cups
UNMODIFIED      /etc/pam.d/cups
UNMODIFIED      /etc/xinetd.d/cups-lpd

Everything looks ok.

When I try to print a test page I get to either my localy connected HP printer, My Brother network printer , or even the virtual pdf printer I get

"Unable to print test page, no file in print request."

In the error log

/org/freedesktop/ColorManager/devices/cups_Officejet_7400
W [01/Aug/2013:06:30:13 +1000] AddProfile failed: org.freedesktop.DBus.Error.UnknownMethod:No such interface `org.freedesktop.ColorManager' on object at path /org/freedesktop/ColorManager/devices/cups_Officejet_7400_fax
W [01/Aug/2013:06:30:13 +1000] AddProfile failed: org.freedesktop.DBus.Error.UnknownMethod:No such interface `org.freedesktop.ColorManager' on object at path /org/freedesktop/ColorManager/devices/cups_Officejet_7400_fax
W [01/Aug/2013:06:30:14 +1000] AddProfile failed: org.freedesktop.DBus.Error.UnknownMethod:No such interface `org.freedesktop.ColorManager' on object at path /org/freedesktop/ColorManager/devices/cups_Virtual_PDF_Printer
W [01/Aug/2013:06:30:14 +1000] AddProfile failed: org.freedesktop.DBus.Error.UnknownMethod:No such interface `org.freedesktop.ColorManager' on object at path /org/freedesktop/ColorManager/devices/cups_Virtual_PDF_Printer
E [01/Aug/2013:06:39:23 +1000] Returning IPP client-error-bad-request for Print-Job (ipp://localhost:631/printers/Officejet_7400) from localhost

Any ideas ???

Offline

#12 2013-07-31 10:52:09

vinnie1
Member
From: Brisbane, Australia
Registered: 2013-06-28
Posts: 7

Re: Cups printing no longer works, and pacman errors

Well, I just printed a test page using hp-testpage, that seemed to work ok

Offline

#13 2013-07-31 22:32:24

straykat
Member
From: Queensland, Australia
Registered: 2009-12-06
Posts: 60

Re: Cups printing no longer works, and pacman errors

Working with your (local) HP printer first, this should be set up using the HPLIP package. HPLIP will configure cups for you so you should have no need to play with cups.

As you have already set up your printers via cups may I suggest moving (cut & paste) .hplip, .cups & .sane (hidden config.) files from your "home" (/home/"user") & ensure that your desktops "printer config" has no printers set up & then set up your HP printer with HPLIP. Because you now have no printers set up you will get hp-setup pop up to get you started.

Offline

Board footer

Powered by FluxBB