LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-29-2011, 05:28 PM   #1
LloydRice
Member
 
Registered: Jun 2011
Location: Colorado
Distribution: Debian and Ubuntu
Posts: 67

Rep: Reputation: Disabled
"Unable to copy PPD file"


I am running Debian 6.0.1a on a Gateway SX-2841, trying to set up a Toshiba e4511 (laser) on the LAN. I can ping the printer address and get replies in < 1 ms. I downloaded the PPD from openprinting.org and copied it to /usr/share/ppd. I then do the command (as su) -
lpadmin -p tosh4511 -E -v http://(address) -m /usr/share/ppd/tosh4511.ppd

The result is "lpadmin: Unable to copy PPD file!".

What am I missing?
I have looked at two similar threads from 2003 and 2008.
No clues there.

Yes, I did rename the PPD. Is that what's killing me?
The name I have used in the -p option (tosh4511) is not defined anywhere.
Does that name need to be listed somewhere?

Last edited by LloydRice; 06-29-2011 at 05:38 PM.
 
Old 06-29-2011, 09:52 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi LloydRice, Welcome to LQ. Are there any clues to the problem at /var/log/cups/error_log ?

Good luck. ;-)
 
1 members found this post helpful.
Old 06-30-2011, 04:43 AM   #3
LloydRice
Member
 
Registered: Jun 2011
Location: Colorado
Distribution: Debian and Ubuntu
Posts: 67

Original Poster
Rep: Reputation: Disabled
Yes (maybe?). Three new lines were added for each lpadmin attempt. The last three were (I'm on a different machine, so I can't paste):
[cups_driverd] Bad PPD name "/usr/share/ppd/tosh4511.ppd"!
copy_model: empty PPD file!
returning IPP server_error_internal_error for CUPS-Add-Modify-Printer ...

Similar lines were added for other PPDs I tried, including one that was in /usr/share/ppd/cups-included/postscript.ppd.
The PPDs look OK to me. The tosh4511 one has stuff for this printer pretty much as I expected.
 
Old 06-30-2011, 05:16 AM   #4
LloydRice
Member
 
Registered: Jun 2011
Location: Colorado
Distribution: Debian and Ubuntu
Posts: 67

Original Poster
Rep: Reputation: Disabled
There is one (to me) curious thing about the PPDs. Both tosh4511.ppd and the existing postscript.ppd have "*" at the beginning of every line. Is that correct?
 
Old 06-30-2011, 09:45 PM   #5
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Try copying the ppd to /usr/share/cups/model/. You might also try grabbing a clean copy from here.

http://www.openprinting.org/printer/...-e-Studio_4511

Good luck. ;-)
 
1 members found this post helpful.
Old 07-01-2011, 01:37 AM   #6
LloydRice
Member
 
Registered: Jun 2011
Location: Colorado
Distribution: Debian and Ubuntu
Posts: 67

Original Poster
Rep: Reputation: Disabled
Peacedog: Here is what happened. The PPD you suggested is 10 times the size of the one I was trying. It has much more detail about what can be done with different sizes of paper, running the stapler (which I don't have), and on, and on. Looks good. I tried copies of each PPD in each of the directories /usr/share/cups/model as you suggested and /usr/share/ppd, as before. I got the same result on all four tries: "Unable to copy PPD file".
 
Old 07-01-2011, 02:11 AM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Do you have the permissions in place to copy to the directory & copy the file?
 
Old 07-01-2011, 02:38 PM   #8
LloydRice
Member
 
Registered: Jun 2011
Location: Colorado
Distribution: Debian and Ubuntu
Posts: 67

Original Poster
Rep: Reputation: Disabled
EDDY1: Well, I'm doing the PPD copying and running lpadmin as su. Am I missing something? The PPD files do indeed appear in the target directories as expected.

The permissions on all ppd files are "-rw-r--r--".

After following Peacedog's recommendation, I now believe the PPDs are probably OK. My next question is about the argument to the -p option in the lpadmin command. Does that name have to be defined somewhere first, or am I defining it now for use in other places when I run the printer?

Last edited by LloydRice; 07-01-2011 at 03:25 PM.
 
Old 07-02-2011, 11:37 AM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
In a terminal you can check your history of chmod & chown commands by using the up arrow.
I'm not going to give you an exact command as I'm not sure in your case, but there are 2 list in this link.
I really think you should ask for more accurate advice on these commands from someone who knows more about it.
http://welcome.solutions.brother.com...ion_prn1c.html

I hope that atleast it points you in the right direction.
 
Old 07-02-2011, 02:37 PM   #10
LloydRice
Member
 
Registered: Jun 2011
Location: Colorado
Distribution: Debian and Ubuntu
Posts: 67

Original Poster
Rep: Reputation: Disabled
EDDY1: The Brother reference looks good. I will check PPD owner and try using cupsys instead of lpadmin. Another problem is that http://localhost does not seems to work. That may be for another forum.
 
Old 07-02-2011, 03:43 PM   #11
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
If you're trying to access the cups web interface it should live at http://localhost:631 .

Good luck. ;-)
 
Old 07-02-2011, 04:40 PM   #12
LloydRice
Member
 
Registered: Jun 2011
Location: Colorado
Distribution: Debian and Ubuntu
Posts: 67

Original Poster
Rep: Reputation: Disabled
OK. localhost works. I don't know what I was doing wrong. Now I have lots more reading to do.

I will either get the lp working, then mark this thread as solved, or come back with another question. Thanks for the help.
 
Old 07-02-2011, 08:00 PM   #13
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
How much progress have you gotten, I just want you to know that, we're here to help & I know what you're going thru.
I will say that in order to write to the usr group you must be a member.
You may not have to have write permissions on usr as a whole, but you do need permissions on /usr/share/cups......

Last edited by EDDY1; 07-02-2011 at 08:02 PM.
 
Old 07-02-2011, 08:13 PM   #14
LloydRice
Member
 
Registered: Jun 2011
Location: Colorado
Distribution: Debian and Ubuntu
Posts: 67

Original Poster
Rep: Reputation: Disabled
Thanks for the good words, EDDY1. I thought I understood permissions and ownership, but I see there may have been some holes in that understanding. I do appreciate the clues, but perhaps the forum is not the best place for my training. When it gets to areas where others could benefit, then this is a good place to air it. But anybody can read HOWTOs and man listings.
 
Old 07-02-2011, 09:29 PM   #15
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Actually you're in the best place for your training, but some of us here would like to see you try & get it working rather than just give the solution.
They want to know what you tried & the result, so it's not that no ones paying attention, but your problem is not as serious as the guy whoes machine won't boot.
A lot of attention is paid to getting a person back up and running as having a broken machine on the first try at linux is quite discouraging.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cupsaddsmb "Unable to copy Windows 2000 printer driver files (2)!" molard Linux - Server 4 04-06-2015 09:56 AM
using linux "LIVE CD" cannot read & copy non english character file,solution? hocheetiong Linux - Newbie 3 12-14-2008 05:03 AM
Ntfs-Fuse copy error Debian "Sid" / Ubuntu "6.06" animefriik Linux - General 0 10-06-2006 09:28 AM
Why doesn't "cp -p <file>" copy <file> and preserve ownership? davidas Linux - Newbie 5 04-12-2004 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration