最近从 18.04 升级到 20.04,发现我无法再打印。打印机是 Cannon MX330,通过 USB 连接。通过文档扫描工具扫描效果很好。
找到一个帖子 -Canon MX490 Ubuntu 20.04:打印问题 按照说明操作,但问题仍然存在,无法打印但可以扫描。
有谁见过类似情况并能纠正它吗?
谢谢 Jas
答案1
支持打印printer-driver-gutenprint
。从(比如说)设置打印队列应该不太难localhost:631
,如下所述这里。
此外,ippusbxd
它也不是最理想的。尽管您的佳能相机太旧了,无法使用它,但最好还是不要将它放在您的系统中。
就我个人而言,我将执行以下操作来设置打印队列:
lpinfo -m | grep MX330
。这为您提供了要替换的 PPD。它gutenprint
以 开始和结束expert
。
现在您需要一个 URI。使用lpinfo -v
并阅读上面链接中给出的页面。现在替换 中的 PPD 和 URI。PRINTQlpadmin -p PRINTQ -v "URI" -E -m PPD
可以是您想要赋予队列的任何名称。怎么样?
答案2
这就是我为使佳能 MX330 在 20.04 下再次打印所做的操作。
在此链接中 -https://canon-print.com/canon-pixma-mx330-driver-series-windows-mac-linux/
下载Linux - Debian版本3.1
此文件已
cnijfilter-mx330series-3.10-1-i386-deb.tar.gz
保存至下载。将文件解压至文件夹cnijfilter-mx330series-3.10-1-i386-deb
。在此链接中 -https://launchpad.net/~michael-gruz/+archive/ubuntu/canon-trunk。这是佳能打印机的 PPA(个人软件包存档)。
运行以下命令:
sudo add-apt-repository ppa:michael-gruz/canon-trunk sudo apt-get update
这会抱怨存储库不安全。要纠正此问题,请修改文件
/etc/apt/sources.list.d/
原始文件
deb http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu focal main # deb-src http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu focal main
更新后的文件
# deb http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu focal main # deb-src http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu focal main deb http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu trusty main deb-src http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu trusty main
更新文件
/etc/apt/apt.conf.d/01-vendor-ubuntu
并在末尾添加此行:Acquire::AllowInsecureRepositories "true";
再次运行之前的“sudo”命令。“update”命令上出现以下错误:
W: GPG error: http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu trusty Release: The following signatures were invalid: 84E550CD36EC35430A66AC5A03396E1C3F7B4A1D W: The repository 'http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu trusty Release' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.
运行命令
sudo apt-get install cnijfilter-mp550series
然后运行位于 Directort Downloads/cnijfilter-mx330series-3.10-1-i386-deb 中的 install.sh
sudo ./install.sh
Execution command = sudo dpkg -iG ./packages/cnijfilter-common_3.10-1_i386.deb dpkg: will not downgrade cnijfilter-common:i386 from 3.90-76~ubuntu14.04.1 to 3.10-1, skipping Execution command = sudo dpkg -iG ./packages/cnijfilter-mx330series_3.10-1_i386.deb Selecting previously unselected package cnijfilter-mx330series:i386. (Reading database ... 227623 files and directories currently installed.) Preparing to unpack .../cnijfilter-mx330series_3.10-1_i386.deb ... Unpacking cnijfilter-mx330series:i386 (3.10-1) ... dpkg: dependency problems prevent configuration of cnijfilter-mx330series:i386: cnijfilter-mx330series:i386 depends on libtiff4. dpkg: error processing package cnijfilter-mx330series:i386 (--install): dependency problems - leaving unconfigured Errors were encountered while processing: cnijfilter-mx330series:i386 Execution command = sudo dpkg -P cnijfilter-common dpkg: dependency problems prevent removal of cnijfilter-common:i386: cnijfilter-mx330series:i386 depends on cnijfilter-common (>= 3.10). cnijfilter-mp550series:i386 depends on cnijfilter-common (>= 3.90). dpkg: error processing package cnijfilter-common:i386 (--purge): dependency problems - not removing Errors were encountered while processing: cnijfilter-common:i386
需要安装cnijfilter-common
sudo apt-get install cnijfilter-common
Reading package lists... Done Building dependency tree Reading state information... Done cnijfilter-common:i386 is already the newest version (3.90-76~ubuntu14.04.1). You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: cnijfilter-mx330series:i386 : Depends: libtiff4:i386 but it is not installable E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
冉
fix-broken
:sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: cnijfilter-mx330series:i386 The following packages will be upgraded: cnijfilter-mx330series:i386 1 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. 1 not fully installed or removed. Need to get 1,028 kB of archives. After this operation, 502 kB disk space will be freed. Do you want to continue? [Y/n] WARNING: The following packages cannot be authenticated! cnijfilter-mx330series:i386 Install these packages without verification? [y/N] y Get:1 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu trusty/main i386 cnijfilter-mx330series i386 3.90-76~ubuntu14.04.1 [1,028 kB] Fetched 1,028 kB in 2s (567 kB/s) (Reading database ... 227821 files and directories currently installed.) Preparing to unpack .../cnijfilter-mx330series_3.90-76~ubuntu14.04.1_i386.deb ... Unpacking cnijfilter-mx330series:i386 (3.90-76~ubuntu14.04.1) over (3.10-1) ... Setting up cnijfilter-mx330series:i386 (3.90-76~ubuntu14.04.1) ... Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
最后转到 URL localhost:631 。
- 在“管理”下选择“查找打印机”
- 选择 Canon_MX330_series
- 选择佳能
- 适用于所选型号 Canon MX330 系列 Ver.3.90
- 一旦在维护下添加,请选择打印测试页
清理存储库。
从 /etc/apt/apt.conf.d/01-vendor-ubuntu 中删除行 - Acquire::AllowInsecureRepositories "true";
打开软件和更新
选择其他软件
找到“michael-gruz/canon-trunk”并单击“删除”,缓存将被更新
可选运行 apt-get update