ubuntuusers.de

Canon Pixma MP640 MFG installieren

Status: Gelöst | Ubuntu-Version: Ubuntu 17.04 (Zesty Zapus)
Antworten |

axt

Anmeldungsdatum:
22. November 2006

Beiträge: 34254

Kardinalfehler. gedit mit root-Rechten falsch aufgerufen.

malo66

(Themenstarter)

Anmeldungsdatum:
24. August 2011

Beiträge: 862

Oha. Das ist mal eine wichtige neue Erkenntnis. Also immer mit sudo -H. Danke. Aber das Problem mit dem Scanner besteht auch nach der Korrektur der Rechte weiter.

[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!
[bjnp] bjnp_recv_header: ERROR - Received response has serial 295, expected 296
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!
[bjnp] bjnp_recv_header: ERROR - (recv) could not read response header, received 4 bytes!
[bjnp] bjnp_recv_header: ERROR - (recv) error: Erfolg!
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!

Kellerkind_2009

Avatar von Kellerkind_2009

Anmeldungsdatum:
26. November 2009

Beiträge: 19617

Wohnort: Schleswig-Holstein

Also irgendwo gibt es wohl Unstimmigkeiten mit der Einrichtung

[bjnp] bjnp_recv_header: ERROR - Received response has serial 295, expected 296

Folgendes probieren

mv ~/.sane/xsane ~/.sane/xsane-old

dann

SANE_DEBUG_BJNP="5" scanimage -L

zeigen und danach was Scannen bis Fehler auftritt dann wieder

SANE_DEBUG_BJNP="5" scanimage -L

Mal sehen ob was zu finden ist 😉

malo66

(Themenstarter)

Anmeldungsdatum:
24. August 2011

Beiträge: 862

SANE_DEBUG_BJNP="5" scanimage -L
[sanei_debug] Setting debug level of bjnp to 5.
[bjnp] sanei_bjnp_find_devices, pixma backend version: 0.17.37
[bjnp] sanei_bjnp_find_devices: Adding scanner from pixma.conf: bjnp://192.168.2.101:8612
[bjnp] bjnp_allocate_device(bjnp://192.168.2.101:8612/timeout=1000) 0
[bjnp] get_scanner_name: Name for 192.168.2.101 not found : Name or service not known
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.2.101  port 8612
[bjnp] bjnp_get_scanner_mac_address: Discover response:
[bjnp]  00000000:42 4a 4e 50 82 01 00 00  00 00 00 00 00 00 00 10 
[bjnp]  00000010:00 01 08 00 06 04 00 1e  8f e9 ce 55 c0 a8 02 65 
[bjnp] bjnp_allocate_device: Scanner not yet in our list, added it: 192.168.2.101:8612
[bjnp] get_scanner_id: Get scanner identity
[bjnp]  00000000:42 4a 4e 50 02 30 00 00  00 01 00 00 00 00 00 00 
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.2.101  port 8612
[bjnp] get_scanner_id: scanner identity:
[bjnp]  00000000:42 4a 4e 50 82 30 00 00  00 01 00 00 00 00 00 55 
[bjnp]  00000010:00 55 4d 46 47 3a 43 61  6e 6f 6e 3b 43 4d 44 3a 
[bjnp]  00000020:4d 75 6c 74 69 50 61 73  73 20 32 2e 31 2c 49 56 
[bjnp]  00000030:45 43 3b 4d 44 4c 3a 4d  50 36 34 30 20 73 65 72 
[bjnp]  00000040:69 65 73 3b 43 4c 53 3a  49 4d 41 47 45 3b 44 45 
[bjnp]  00000050:53 3a 43 61 6e 6f 6e 20  4d 50 36 34 30 20 73 65 
[bjnp]  00000060:72 69 65 73 3b 
[bjnp] get_scanner_id: Scanner identity string = MFG:Canon;CMD:MultiPass 2.1,IVEC;MDL:MP640 series;CLS:IMAGE;DES:Canon MP640 series; - length = 83
[bjnp] get_scanner_id: Scanner model = MP640 series
[bjnp] add_scanner: New scanner added: bjnp://192.168.2.101:8612/timeout=1000, serial 192.168.2.101, mac addres: 001e8fe9ce55.
[bjnp] sanei_bjnp_find_devices: Added all configured scanners, now do auto detection...
[bjnp] prepare_socket: lo is not a valid IPv4 interface, skipping...
[bjnp] prepare_socket: wlp2s0 is IPv4 capable, sending broadcast, socket = 36
[bjnp] prepare_socket: lo is not a valid IPv6 interface, skipping...
[bjnp] prepare_socket: wlp2s0 is IPv6 capable, sending broadcast, socket = 37
[bjnp] sanei_bjnp_find_devices: Select returned, time left 0.499993....
[bjnp] sanei_find_devices: Discover response:
[bjnp]  00000000:42 4a 4e 50 82 01 00 00  00 00 00 00 00 00 00 10 
[bjnp]  00000010:00 01 08 00 06 04 00 1e  8f e9 ce 55 c0 a8 02 65 
[bjnp] get_scanner_name: Name for 192.168.2.101 not found : Name or service not known
[bjnp] bjnp_allocate_device(bjnp://192.168.2.101:8612/timeout=1000) 1
[bjnp] get_scanner_name: Name for 192.168.2.101 not found : Name or service not known
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.2.101  port 8612
[bjnp] bjnp_get_scanner_mac_address: Discover response:
[bjnp]  00000000:42 4a 4e 50 82 01 00 00  00 00 00 00 00 00 00 10 
[bjnp]  00000010:00 01 08 00 06 04 00 1e  8f e9 ce 55 c0 a8 02 65 
[bjnp] add_scanner: Scanner at bjnp://192.168.2.101:8612/timeout=1000 was added before, good!
[bjnp] sanei_bjnp_find_devices: Select returned, time left 0.499995....
[bjnp] sanei_find_devices: Discover response:
[bjnp]  00000000:42 4a 4e 50 82 01 00 00  00 00 00 00 00 00 00 10 
[bjnp]  00000010:00 01 08 00 06 04 00 1e  8f e9 ce 55 c0 a8 02 65 
[bjnp] get_scanner_name: Name for 192.168.2.101 not found : Name or service not known
[bjnp] bjnp_allocate_device(bjnp://192.168.2.101:8612/timeout=1000) 1
[bjnp] get_scanner_name: Name for 192.168.2.101 not found : Name or service not known
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.2.101  port 8612
[bjnp] bjnp_get_scanner_mac_address: Discover response:
[bjnp]  00000000:42 4a 4e 50 82 01 00 00  00 00 00 00 00 00 00 10 
[bjnp]  00000010:00 01 08 00 06 04 00 1e  8f e9 ce 55 c0 a8 02 65 
[bjnp] add_scanner: Scanner at bjnp://192.168.2.101:8612/timeout=1000 was added before, good!
[bjnp] sanei_find_devices: scanner discovery finished...
device `pixma:MP640_192.168.2.101' is a CANON Canon PIXMA MP640 multi-function peripheral
 xsane
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!
[bjnp] bjnp_recv_header: ERROR - Received response has serial 1063, expected 1064
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!
[bjnp] bjnp_recv_header: ERROR - (recv) could not read response header, received 4 bytes!
[bjnp] bjnp_recv_header: ERROR - (recv) error: Erfolg!
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!

die 2.

SANE_DEBUG_BJNP="5" scanimage -L
[sanei_debug] Setting debug level of bjnp to 5.
[bjnp] sanei_bjnp_find_devices, pixma backend version: 0.17.37
[bjnp] sanei_bjnp_find_devices: Adding scanner from pixma.conf: bjnp://192.168.2.101:8612
[bjnp] bjnp_allocate_device(bjnp://192.168.2.101:8612/timeout=1000) 0
[bjnp] get_scanner_name: Name for 192.168.2.101 not found : Name or service not known
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.2.101  port 8612
[bjnp] bjnp_get_scanner_mac_address: Discover response:
[bjnp]  00000000:42 4a 4e 50 82 01 00 00  00 00 00 00 00 00 00 10 
[bjnp]  00000010:00 01 08 00 06 04 00 1e  8f e9 ce 55 c0 a8 02 65 
[bjnp] bjnp_allocate_device: Scanner not yet in our list, added it: 192.168.2.101:8612
[bjnp] get_scanner_id: Get scanner identity
[bjnp]  00000000:42 4a 4e 50 02 30 00 00  00 01 00 00 00 00 00 00 
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.2.101  port 8612
[bjnp] get_scanner_id: scanner identity:
[bjnp]  00000000:42 4a 4e 50 82 30 00 00  00 01 00 00 00 00 00 55 
[bjnp]  00000010:00 55 4d 46 47 3a 43 61  6e 6f 6e 3b 43 4d 44 3a 
[bjnp]  00000020:4d 75 6c 74 69 50 61 73  73 20 32 2e 31 2c 49 56 
[bjnp]  00000030:45 43 3b 4d 44 4c 3a 4d  50 36 34 30 20 73 65 72 
[bjnp]  00000040:69 65 73 3b 43 4c 53 3a  49 4d 41 47 45 3b 44 45 
[bjnp]  00000050:53 3a 43 61 6e 6f 6e 20  4d 50 36 34 30 20 73 65 
[bjnp]  00000060:72 69 65 73 3b 
[bjnp] get_scanner_id: Scanner identity string = MFG:Canon;CMD:MultiPass 2.1,IVEC;MDL:MP640 series;CLS:IMAGE;DES:Canon MP640 series; - length = 83
[bjnp] get_scanner_id: Scanner model = MP640 series
[bjnp] add_scanner: New scanner added: bjnp://192.168.2.101:8612/timeout=1000, serial 192.168.2.101, mac addres: 001e8fe9ce55.
[bjnp] sanei_bjnp_find_devices: Added all configured scanners, now do auto detection...
[bjnp] prepare_socket: lo is not a valid IPv4 interface, skipping...
[bjnp] prepare_socket: wlp2s0 is IPv4 capable, sending broadcast, socket = 36
[bjnp] prepare_socket: lo is not a valid IPv6 interface, skipping...
[bjnp] prepare_socket: wlp2s0 is IPv6 capable, sending broadcast, socket = 37
[bjnp] sanei_bjnp_find_devices: Select returned, time left 0.499993....
[bjnp] sanei_find_devices: Discover response:
[bjnp]  00000000:42 4a 4e 50 82 01 00 00  00 00 00 00 00 00 00 10 
[bjnp]  00000010:00 01 08 00 06 04 00 1e  8f e9 ce 55 c0 a8 02 65 
[bjnp] get_scanner_name: Name for 192.168.2.101 not found : Name or service not known
[bjnp] bjnp_allocate_device(bjnp://192.168.2.101:8612/timeout=1000) 1
[bjnp] get_scanner_name: Name for 192.168.2.101 not found : Name or service not known
[bjnp] setup_udp_socket: Setting up a UDP socket, dest: 192.168.2.101  port 8612
[bjnp] bjnp_get_scanner_mac_address: Discover response:
[bjnp]  00000000:42 4a 4e 50 82 01 00 00  00 00 00 00 00 00 00 10 
[bjnp]  00000010:00 01 08 00 06 04 00 1e  8f e9 ce 55 c0 a8 02 65 
[bjnp] add_scanner: Scanner at bjnp://192.168.2.101:8612/timeout=1000 was added before, good!
[bjnp] sanei_find_devices: scanner discovery finished...
device `pixma:MP640_192.168.2.101' is a CANON Canon PIXMA MP640 multi-function peripheral

Kellerkind_2009

Avatar von Kellerkind_2009

Anmeldungsdatum:
26. November 2009

Beiträge: 19617

Wohnort: Schleswig-Holstein

Wenn du jetzt

scanimage >~/Test.pnm

Ausführst,wie ist das Ergebnis?

malo66

(Themenstarter)

Anmeldungsdatum:
24. August 2011

Beiträge: 862

Der erste Scann funktioniert. Der 2. bricht zwischendrin ab, der 3. geht gar nicht mehr:

scanimage >~/Test.pnm

scanimage >~/Test2.pnm
[bjnp] bjnp_recv_data: ERROR - could not read response payload (select timed out after 1000 ms)!
scanimage: sane_read: Error during device I/O

scanimage >~/Test3.pnm
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - Received response has serial 200, expected 201
[bjnp] bjnp_recv_header: ERROR - Received response has cmd code 0, expected 32
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!
scanimage: sane_read: Error during device I/O

Kellerkind_2009

Avatar von Kellerkind_2009

Anmeldungsdatum:
26. November 2009

Beiträge: 19617

Wohnort: Schleswig-Holstein

Ok,alles auf Anfang

sudo apt-get autoremove --purge libsane libsane-common sane-utils libsane-dev libsane-extras libsane-extras-common sane xsane xsane-common

danach

sudo apt-get install libsane-dev libsane libsane-common sane-utils xsane xsane-common  && sudo apt-get update && sudo apt-get upgrade

malo66

(Themenstarter)

Anmeldungsdatum:
24. August 2011

Beiträge: 862

Gesagt, getan. Ergebnis bleibt weiterhin gleich:

 scanimage >~/Test.pnm

 scanimage >~/Test2.pnm
[bjnp] bjnp_recv_header: ERROR - could not read response header (select timed out after 1000 ms)!
[bjnp] bjnp_recv_header: ERROR - Received response has serial 414, expected 415
[bjnp] bjnp_recv_header: ERROR - Received response has cmd code 226, expected 33
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!
[bjnp] bjnp_recv_header: ERROR - Received response has cmd code 224, expected 33
[bjnp] sanei_bjnp_write_bulk: ERROR - Could not read response to command!
scanimage: sane_read: Error during device I/O

Kellerkind_2009

Avatar von Kellerkind_2009

Anmeldungsdatum:
26. November 2009

Beiträge: 19617

Wohnort: Schleswig-Holstein

Dann weiß ich zur Zeit leider auch nicht weiter.

malo66

(Themenstarter)

Anmeldungsdatum:
24. August 2011

Beiträge: 862

Ey, es ist auch einfach zum verrückt werden. Aber nochmals danke für deine Mühe.

Der Witz ist ja, das ganze hat mal vor einiger Zeit funktioniert.

Kellerkind_2009

Avatar von Kellerkind_2009

Anmeldungsdatum:
26. November 2009

Beiträge: 19617

Wohnort: Schleswig-Holstein

Strohhalm,bei dir

setup_udp_socket: Setting up a UDP socket

in der Serviedatei mal ändern und folgendes zufügen

sudo -H gedit /etc/services

dort unter dem Eintrag

sane-port	6566/tcp	sane saned	# SANE network scanner daemon

folgendes darunter zufügen

sane-port	6566/udp	sane saned	# SANE network scanner daemon

weiterhin die Datei mal ändern

sudo -H /etc/sane.d/pixma.conf

dort den Eintrag ändern

# bjnp-timeout=5000

in

bjnp-timeout=5000

Danach testen mit

xscanimage

Kellerkind_2009

Avatar von Kellerkind_2009

Anmeldungsdatum:
26. November 2009

Beiträge: 19617

Wohnort: Schleswig-Holstein

Falls das scheitert http://support-sg.canon-asia.com/contents/SG/EN/0100518302.html

Bei dieser Version wird auch nichts von Sane und Gimp deinstalliert 😉

malo66

(Themenstarter)

Anmeldungsdatum:
24. August 2011

Beiträge: 862

Ich will mich ja nicht wieder zu früh freuen, aber ich kann jetzt jedenfalls scannen. Mehrmals.

Was ich aber komisch fand war:

 xscanimage
Die Anwendung »xscanimage« ist momentan nicht installiert. Sie können sie durch folgende Eingabe installieren:
sudo apt install sane

sudo apt-get install sane
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Die folgenden NEUEN Pakete werden installiert:
  sane
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 79,5 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 281 kB Plattenplatz zusätzlich benutzt.
Holen:1 http://de.archive.ubuntu.com/ubuntu zesty/universe amd64 sane amd64 1.0.14-12 [79,5 kB]
Es wurden 79,5 kB in 0 s geholt (195 kB/s).
Vormals nicht ausgewähltes Paket sane wird gewählt.
(Lese Datenbank ... 407005 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../sane_1.0.14-12_amd64.deb ...
Entpacken von sane (1.0.14-12) ...
sane (1.0.14-12) wird eingerichtet ...
Trigger für man-db (2.7.6.1-2) werden verarbeitet ...

Kellerkind_2009

Avatar von Kellerkind_2009

Anmeldungsdatum:
26. November 2009

Beiträge: 19617

Wohnort: Schleswig-Holstein

Ich hoffe mit dir 😬

Jonius Team-Icon

Ikhayateam
Avatar von Jonius

Anmeldungsdatum:
21. August 2009

Beiträge: 1861

Wohnort: München

Es gibt übrigens auch täglich aktuelle SANE-Versionen per PPA für Ubuntu. Aber super, dass du es auch so hinbekommen hast.