LinuxQuestions.org
Review your favorite Linux distribution.
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 05-27-2012, 01:46 PM   #1
darthpinguim
Member
 
Registered: Feb 2011
Location: Belo Horizonte - MG - Brasil
Distribution: Ubuntu 12.04 / Debian 6
Posts: 32

Rep: Reputation: 0
Problem installing HP Photosmart C4680 on Ubuntu 12.04


Hi!
I've faced a problem trying to install a printer on Ubuntu 12.04. I have a HP Photosmart C4680 and couldn't make it work on Ubuntu 12.04. Before I had Ubuntu 10.04 and the printer was installed using the hplip device driver together with the HPLIP ToolBox. It did work fine until some weeks ago it stopped functioning. At this time I was still using Ubuntu 10.04 and thought that the problem was related to the fact the there would be no more updates for 10.04. So I decided installing 12.04 and thought there'd be no problem installing the printer because this version already comes with the hplip driver. I've also tried using CUPS but didn't succeed. The system doesn't seem to identify that the printer is connected.
Is there anything else I could try?

Thanks in advance.
darthpinguim
 
Old 05-27-2012, 02:33 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
First thing would be to check that the printer be recognized as such.

Please open a terminal, unplug the printer if it was plugged in, plug it in again, wait 30 seconds, then type "sudo dmesg|tail" and copy/paste the results here.
 
Old 05-27-2012, 02:41 PM   #3
darthpinguim
Member
 
Registered: Feb 2011
Location: Belo Horizonte - MG - Brasil
Distribution: Ubuntu 12.04 / Debian 6
Posts: 32

Original Poster
Rep: Reputation: 0
Here's the result:
Code:
[  144.788721] type=1400 audit(1338143308.735:31): apparmor="DENIED" operation="file_lock" parent=1 profile="/usr/sbin/cupsd" name="/run/utmp" pid=873 comm="cupsd" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
[  146.981824] type=1400 audit(1338143310.928:32): apparmor="DENIED" operation="file_lock" parent=1 profile="/usr/sbin/cupsd" name="/run/utmp" pid=873 comm="cupsd" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
[  149.114057] type=1400 audit(1338143313.061:33): apparmor="DENIED" operation="file_lock" parent=1 profile="/usr/sbin/cupsd" name="/run/utmp" pid=873 comm="cupsd" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
[  161.085748] type=1400 audit(1338143325.031:34): apparmor="DENIED" operation="file_lock" parent=1 profile="/usr/sbin/cupsd" name="/run/utmp" pid=873 comm="cupsd" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
[  162.484620] type=1400 audit(1338143326.432:35): apparmor="DENIED" operation="file_lock" parent=1 profile="/usr/sbin/cupsd" name="/run/utmp" pid=873 comm="cupsd" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
[  163.814474] type=1400 audit(1338143327.761:36): apparmor="DENIED" operation="file_lock" parent=1 profile="/usr/sbin/cupsd" name="/run/utmp" pid=873 comm="cupsd" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
[  166.282522] type=1400 audit(1338143330.226:37): apparmor="DENIED" operation="file_lock" parent=1 profile="/usr/sbin/cupsd" name="/run/utmp" pid=873 comm="cupsd" requested_mask="k" denied_mask="k" fsuid=0 ouid=0
[  195.259085] parport0: ppdev0 forgot to release port
[ 4128.768500] type=1400 audit(1338147292.715:38): apparmor="STATUS" operation="profile_load" name="/usr/bin/freshclam" pid=4673 comm="apparmor_parser"
[ 4129.973748] type=1400 audit(1338147293.919:39): apparmor="STATUS" operation="profile_load" name="/usr/sbin/clamd" pid=5081 comm="apparmor_parser"
Hope that helps!
Best regards
darthpinguim
 
Old 05-27-2012, 03:16 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
It seems that you printer be not seen at all by the USB sub-system. Are you sure it is switched on and/or the electrical outlet is plugged in ?

Try this :

Make sure you printer is not plugged in
Open a terminal
Become root (sudo su)
type "tail -f /var/log/messages"
Plug in the printer
Check if you see new output in the terminal and post it here.
 
Old 05-27-2012, 03:32 PM   #5
darthpinguim
Member
 
Registered: Feb 2011
Location: Belo Horizonte - MG - Brasil
Distribution: Ubuntu 12.04 / Debian 6
Posts: 32

Original Poster
Rep: Reputation: 0
I tried it but it didn't work.
It showed the following message:

Quote:
tail: unable to open "var/log/messages" for reading: File or directory not found
 
Old 05-27-2012, 03:39 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
You should type :
Code:
tail -f /var/log/messages
My guess is you omitted the slash character before var.

Last edited by Didier Spaier; 05-27-2012 at 03:43 PM.
 
Old 05-27-2012, 04:03 PM   #7
darthpinguim
Member
 
Registered: Feb 2011
Location: Belo Horizonte - MG - Brasil
Distribution: Ubuntu 12.04 / Debian 6
Posts: 32

Original Poster
Rep: Reputation: 0
Actually I did write the slash before var/...
I wrote exactly the way you mentioned. The same message appeared again.
 
Old 05-27-2012, 04:19 PM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
Strange... Please you post the output of
Code:
ls -l /var/log
 
Old 05-27-2012, 08:45 PM   #9
darthpinguim
Member
 
Registered: Feb 2011
Location: Belo Horizonte - MG - Brasil
Distribution: Ubuntu 12.04 / Debian 6
Posts: 32

Original Poster
Rep: Reputation: 0
Here's the output of ls -l /var/log
Quote:
-rw-r--r-- 1 root root 27919 Mai 27 16:20 alternatives.log
drwxr-xr-x 2 root root 4096 Mai 19 13:25 apt
-rw-r----- 1 syslog adm 34280 Mai 27 22:36 auth.log
-rw-r----- 1 syslog adm 137474 Mai 27 14:05 auth.log.1
-rw-r----- 1 syslog adm 1756 Mai 20 12:17 auth.log.2.gz
-rw-r----- 1 root adm 31 Abr 25 13:04 boot
-rw-r--r-- 1 root root 2050 Mai 27 22:35 boot.log
-rw-r--r-- 1 root root 47105 Abr 25 13:04 bootstrap.log
-rw-rw---- 1 root utmp 384 Mai 20 14:40 btmp
drwxr-xr-x 2 clamav clamav 4096 Mai 27 16:34 clamav
drwxr-xr-x 2 root root 4096 Mai 19 13:37 ConsoleKit
drwxr-xr-x 2 root root 4096 Mai 27 14:05 cups
drwxr-xr-x 2 root root 4096 Abr 20 14:23 dist-upgrade
-rw-r----- 1 root adm 49840 Mai 27 22:35 dmesg
-rw-r----- 1 root adm 49758 Mai 27 21:12 dmesg.0
-rw-r----- 1 root adm 13757 Mai 27 21:01 dmesg.1.gz
-rw-r----- 1 root adm 13663 Mai 27 15:26 dmesg.2.gz
-rw-r----- 1 root adm 13607 Mai 27 13:42 dmesg.3.gz
-rw-r----- 1 root adm 13614 Mai 26 23:56 dmesg.4.gz
-rw-r--r-- 1 root root 1397110 Mai 27 16:34 dpkg.log
-rw-r--r-- 1 root root 32160 Mai 27 16:34 faillog
-rw-r--r-- 1 root root 2652 Mai 20 14:09 fontconfig.log
drwxr-xr-x 2 root root 4096 Abr 25 13:04 fsck
drwxr-xr-x 2 root root 4096 Abr 4 09:23 hp
drwxr-xr-x 2 root root 4096 Mai 19 13:29 installer
-rw-r--r-- 1 root root 0 Mai 23 12:38 jockey.log
-rw-r--r-- 1 root root 38050 Mai 23 12:38 jockey.log.1
-rw-r--r-- 1 root root 3332 Mai 20 12:27 jockey.log.2.gz
-rw-r----- 1 syslog adm 328172 Mai 27 22:36 kern.log
-rw-r----- 1 syslog adm 9644449 Mai 27 13:44 kern.log.1
-rw-r----- 1 syslog adm 131200 Mai 20 12:27 kern.log.2.gz
-rw-rw-r-- 1 root utmp 293460 Mai 27 16:34 lastlog
drwxr-xr-x 2 root root 4096 Mai 27 22:35 lightdm
-rw-r----- 1 syslog adm 0 Mai 19 13:37 mail.err
-rw-r----- 1 syslog adm 0 Mai 19 13:37 mail.log
drwxr-xr-x 2 root root 4096 Mai 19 13:37 news
-rw-r--r-- 1 root root 140867 Mai 27 22:35 pm-powersave.log
drwxr-x--- 2 root adm 4096 Abr 12 17:11 samba
drwx------ 2 speech-dispatcher root 4096 Fev 6 00:53 speech-dispatcher
-rw-r----- 1 syslog adm 446539 Mai 27 22:37 syslog
-rw-r----- 1 syslog adm 5660324 Mai 27 14:05 syslog.1
-rw-r----- 1 syslog adm 174829 Mai 26 00:17 syslog.2.gz
-rw-r----- 1 syslog adm 204515 Mai 25 10:58 syslog.3.gz
-rw-r----- 1 syslog adm 155370 Mai 23 12:38 syslog.4.gz
-rw-r----- 1 syslog adm 85900 Mai 22 16:42 syslog.5.gz
-rw-r----- 1 syslog adm 68151 Mai 21 13:46 syslog.6.gz
-rw-r----- 1 syslog adm 148910 Mai 20 12:27 syslog.7.gz
-rw-r--r-- 1 root root 257546 Mai 27 22:35 udev
-rw-r----- 1 syslog adm 0 Mai 19 13:37 ufw.log
drwxr-xr-x 2 root root 4096 Mar 12 06:03 unattended-upgrades
drwxr-xr-x 2 root root 4096 Mai 27 15:27 upstart
-rw-rw-r-- 1 root utmp 286080 Mai 27 22:38 wtmp
-rw-r--r-- 1 root root 35555 Mai 27 22:36 Xorg.0.log
-rw-r--r-- 1 root root 41693 Mai 27 21:49 Xorg.0.log.old
-rw-r--r-- 1 root root 34748 Mai 27 15:25 Xorg.1.log
-rw-r--r-- 1 root root 39964 Mai 27 15:24 Xorg.1.log.old
-rw-r--r-- 1 root root 34751 Mai 26 15:05 Xorg.2.log
-rw-r--r-- 1 root root 41693 Mai 26 15:05 Xorg.2.log.old
niels@bhna-desktop:~$ ls -l /var/log | less
niels@bhna-desktop:~$ ls -l /var/log
total 19556
-rw-r--r-- 1 root root 27919 Mai 27 16:20 alternatives.log
drwxr-xr-x 2 root root 4096 Mai 19 13:25 apt
-rw-r----- 1 syslog adm 34280 Mai 27 22:36 auth.log
-rw-r----- 1 syslog adm 137474 Mai 27 14:05 auth.log.1
-rw-r----- 1 syslog adm 1756 Mai 20 12:17 auth.log.2.gz
-rw-r----- 1 root adm 31 Abr 25 13:04 boot
-rw-r--r-- 1 root root 2050 Mai 27 22:35 boot.log
-rw-r--r-- 1 root root 47105 Abr 25 13:04 bootstrap.log
-rw-rw---- 1 root utmp 384 Mai 20 14:40 btmp
drwxr-xr-x 2 clamav clamav 4096 Mai 27 16:34 clamav
drwxr-xr-x 2 root root 4096 Mai 19 13:37 ConsoleKit
drwxr-xr-x 2 root root 4096 Mai 27 14:05 cups
drwxr-xr-x 2 root root 4096 Abr 20 14:23 dist-upgrade
-rw-r----- 1 root adm 49840 Mai 27 22:35 dmesg
-rw-r----- 1 root adm 49758 Mai 27 21:12 dmesg.0
-rw-r----- 1 root adm 13757 Mai 27 21:01 dmesg.1.gz
-rw-r----- 1 root adm 13663 Mai 27 15:26 dmesg.2.gz
-rw-r----- 1 root adm 13607 Mai 27 13:42 dmesg.3.gz
-rw-r----- 1 root adm 13614 Mai 26 23:56 dmesg.4.gz
-rw-r--r-- 1 root root 1397110 Mai 27 16:34 dpkg.log
-rw-r--r-- 1 root root 32160 Mai 27 16:34 faillog
-rw-r--r-- 1 root root 2652 Mai 20 14:09 fontconfig.log
drwxr-xr-x 2 root root 4096 Abr 25 13:04 fsck
drwxr-xr-x 2 root root 4096 Abr 4 09:23 hp
drwxr-xr-x 2 root root 4096 Mai 19 13:29 installer
-rw-r--r-- 1 root root 0 Mai 23 12:38 jockey.log
-rw-r--r-- 1 root root 38050 Mai 23 12:38 jockey.log.1
-rw-r--r-- 1 root root 3332 Mai 20 12:27 jockey.log.2.gz
-rw-r----- 1 syslog adm 328172 Mai 27 22:36 kern.log
-rw-r----- 1 syslog adm 9644449 Mai 27 13:44 kern.log.1
-rw-r----- 1 syslog adm 131200 Mai 20 12:27 kern.log.2.gz
-rw-rw-r-- 1 root utmp 293460 Mai 27 16:34 lastlog
drwxr-xr-x 2 root root 4096 Mai 27 22:35 lightdm
-rw-r----- 1 syslog adm 0 Mai 19 13:37 mail.err
-rw-r----- 1 syslog adm 0 Mai 19 13:37 mail.log
drwxr-xr-x 2 root root 4096 Mai 19 13:37 news
-rw-r--r-- 1 root root 140867 Mai 27 22:35 pm-powersave.log
drwxr-x--- 2 root adm 4096 Abr 12 17:11 samba
drwx------ 2 speech-dispatcher root 4096 Fev 6 00:53 speech-dispatcher
-rw-r----- 1 syslog adm 446539 Mai 27 22:37 syslog
-rw-r----- 1 syslog adm 5660324 Mai 27 14:05 syslog.1
-rw-r----- 1 syslog adm 174829 Mai 26 00:17 syslog.2.gz
-rw-r----- 1 syslog adm 204515 Mai 25 10:58 syslog.3.gz
-rw-r----- 1 syslog adm 155370 Mai 23 12:38 syslog.4.gz
-rw-r----- 1 syslog adm 85900 Mai 22 16:42 syslog.5.gz
-rw-r----- 1 syslog adm 68151 Mai 21 13:46 syslog.6.gz
-rw-r----- 1 syslog adm 148910 Mai 20 12:27 syslog.7.gz
-rw-r--r-- 1 root root 257546 Mai 27 22:35 udev
-rw-r----- 1 syslog adm 0 Mai 19 13:37 ufw.log
drwxr-xr-x 2 root root 4096 Mar 12 06:03 unattended-upgrades
drwxr-xr-x 2 root root 4096 Mai 27 15:27 upstart
-rw-rw-r-- 1 root utmp 286080 Mai 27 22:38 wtmp
-rw-r--r-- 1 root root 35555 Mai 27 22:36 Xorg.0.log
-rw-r--r-- 1 root root 41693 Mai 27 21:49 Xorg.0.log.old
-rw-r--r-- 1 root root 34748 Mai 27 15:25 Xorg.1.log
-rw-r--r-- 1 root root 39964 Mai 27 15:24 Xorg.1.log.old
-rw-r--r-- 1 root root 34751 Mai 26 15:05 Xorg.2.log
-rw-r--r-- 1 root root 41693 Mai 26 15:05 Xorg.2.log.old
A little bit later my first replies today I remembered that when I still had Ubuntu 10.04 installed I've faced and error with the following message: "device communication error 5012" or something like that. I don't know if this would help for I had formatted the PC in order to install the newer version.
 
Old 05-28-2012, 03:22 AM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
OK, the file seems to be named /var/log/dmesg instead of /var/log/messages in you system.

But as the USB events could be logged in /var/log/syslog as well, please open two terminals instead of one and before you plug in your printer, type in one of them :
Code:
tail -f /var/log/dmesg
and in the other one
Code:
tail -f /var/log/syslog
and post the results.
 
Old 05-28-2012, 08:46 PM   #11
darthpinguim
Member
 
Registered: Feb 2011
Location: Belo Horizonte - MG - Brasil
Distribution: Ubuntu 12.04 / Debian 6
Posts: 32

Original Poster
Rep: Reputation: 0
Hi there! Thanks for the replies.
It might seem very weird. Still I don't know what happened, but last night the printer was identified by the system. I tried once more to configure it using the HPLIP ToolBox and suddenly the printer was automatically identified. Anyway here's the output of the commands:

tail -f /var/log/dmesg
Quote:
[ 11.065799] Bluetooth: RFCOMM ver 1.11
[ 11.072424] type=1400 audit(1338252894.016:7): apparmor="STATUS" operation="profile_replace" name="/sbin/dhclient" pid=915 comm="apparmor_parser"
[ 11.074097] type=1400 audit(1338252894.016:8): apparmor="STATUS" operation="profile_load" name="/usr/lib/lightdm/lightdm/lightdm-guest-session-wrapper" pid=914 comm="apparmor_parser"
[ 11.074814] type=1400 audit(1338252894.016:9): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=915 comm="apparmor_parser"
[ 11.075012] type=1400 audit(1338252894.016:10): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=915 comm="apparmor_parser"
[ 11.086662] type=1400 audit(1338252894.028:11): apparmor="STATUS" operation="profile_load" name="/usr/bin/evince" pid=916 comm="apparmor_parser"
[ 11.171894] r8169 0000:03:00.0: eth0: link down
[ 11.172341] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 11.172695] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 11.179285] 8139too 0000:04:00.0: eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
tail -f /var/log/syslog
Quote:
May 28 22:41:14 bhna-desktop udev-configure-printer: Consider also queues with "/usb/lp0" or "/usblp0" in their URIs as matching
May 28 22:41:14 bhna-desktop udev-configure-printer: URI of print queue: hp:/usb/Photosmart_C4600_series?serial=BR9BNF2TDR05BQ, normalized: photosmart c4600 series serial br9bnf2tdr05bq
May 28 22:41:14 bhna-desktop udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1d.7/usb1/1-5
May 28 22:41:14 bhna-desktop udev-configure-printer: URI of detected printer: usb://HP/Photosmart%20C4600%20series?serial=BR9BNF2TDR05BQ&interface=1, normalized: photosmart c4600 series serial br9bnf2tdr05bq interface 1
May 28 22:41:14 bhna-desktop udev-configure-printer: Device already handled
May 28 22:41:14 bhna-desktop udev-configure-printer: Queue ipp://localhost:631/printers/Photosmart-C4600-series has matching device URI
May 28 22:41:14 bhna-desktop udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/Photosmart-C4600-series
May 28 22:41:14 bhna-desktop udev-configure-printer: URI of detected printer: hp:/usb/Photosmart_C4600_series?serial=BR9BNF2TDR05BQ, normalized: photosmart c4600 series serial br9bnf2tdr05bq
May 28 22:41:14 bhna-desktop udev-configure-printer: Queue ipp://localhost:631/printers/Photosmart-C4600-series has matching device URI
May 28 22:41:14 bhna-desktop udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/Photosmart-C4600-series
Now the printer appears on the list's output of the second command. I'm considering if could it be some problem with the USB cable.
Thank you for the valuable help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Having Trouble installing HP Photosmart C6180 custangro Linux - Newbie 3 06-03-2007 04:07 PM
Package for HP Photosmart 7260 - Ubuntu 7.04 Irajas Linux - Newbie 3 05-19-2007 08:57 AM
Printer driver problem with Ubuntu Linux / HP psc 2410 photosmart Techguy2396 Linux - Hardware 3 01-28-2007 12:44 PM
Problem with HP Photosmart 335 nymusicman Linux - Hardware 8 01-11-2007 08:36 PM
installing hp photosmart 2608 printer in linux. s_bhatt Linux - Hardware 1 02-03-2006 04:42 AM

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

All times are GMT -5. The time now is 02:00 AM.

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