Извините, Я пробовал много вещей, но безуспешно, и мог бы помочь. У меня есть многофункциональный принтер / сканер Canon i-Sensys MF645Cx, подключенный через домашнюю локальную сеть. Печать работала «из коробки», теперь я хотел использовать сканер.
Я установил с веб-страницы Canon
Я поиграл с правилами брандмауэра ufw, например,
% sudo ufw status
Status: active
To Action From
-- ------ ----
8610/udp ALLOW Anywhere
8612/udp ALLOW Anywhere
8610/udp (v6) ALLOW Anywhere (v6)
8612/udp (v6) ALLOW Anywhere (v6)
и попытался отредактировать / etc /sane.d/pixma.conf, с любой добавленной строкой
bjnp://192.168.2.100
mfnp://192.168.2.100
, но когда я запускаю xsane (например, с активированной строкой mfnp), я получаю
% xsane
[bjnp] udp_command: ERROR - no data received (timeout = 1000)
[bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this scanner
[bjnp] udp_command: ERROR - no data received (timeout = 1000)
[bjnp] add_scanner: ERROR - Cannot read scanner make & model: bjnp://192.168.2.100:8612/timeout=1000
, я также пытался https://launchpad.net/~ rolfbensch / + archive / ubuntu / sane-git
sudo add-apt-repository ppa:rolfbensch/sane-git
sudo apt-get update
, но это ничего не изменило.
Я также добавил себя в сканер групп и отшлифовал согласно https://wiki.ubuntuusers.de/Scanner / # Аппаратное обеспечение , но безуспешно.
Есть идеи, как заставить сканер работать? Большое спасибо!
With some help I found the solution (Ubuntu 18.04): What I forgot was to upgrade after adding the external repository:
sudo add-apt-repository ppa:rolfbensch/sane-git
sudo apt-get update
sudo apt upgrade
This seems the be the decisive change. The firewall can actually be disabled:
% sudo ufw status
Status: inactive
No changes have to be made to config files in /etc/sane.d
. (I cannot say whether installing the two Canon packages or the group membership is important since I didn't revert these steps.)
Then xsane starts and seems to works fine with the Canon i-Sensys MF645Cx.
The only strange thing was a flood of error messages when xsane started such as Cannot adopt OID in UCD-SNMP-MIB: ...
. I followed the advice on colord errors in /var/log/syslog in 18.10 and installed the package snmp-mibs-downloader
using sudo synaptic
(plus another package that was added as a dependency). Then the messages disappear.