我一直在尝试让这个旧的硬件在 UBUNTU 20.04 下工作。最后,我找到了一个旧的解决方案(如何使佳能 PIXMA ip1900 工作?)。为了重新创建它,我尝试执行以下附加步骤:
编辑 debian/control 以要求 libcups2-dev 而不是 libcupsys2-dev 以及 libtiff5-dev 而不是 libtiff-dev(这些软件包不再可用)
将 debian/compat 编辑为 9 而不是 4。我承认不知道为什么。但它似乎有效。但后来...
$ debuild -i -us -uc -b dpkg-buildpackage -us -uc -ui -i -b dpkg-buildpackage: info: source package cnijfilter-common dpkg-buildpackage: info: source version 3.00-1 dpkg-buildpackage: info: source distribution stable dpkg-buildpackage: info: source changed by Canon Inc. <[email protected]> dpkg-source -i --before-build . dpkg-buildpackage: info: host architecture amd64 fakeroot debian/rules clean dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. /usr/bin/make clean make[1]: Entering directory „/media/***/***/tiskatna/cnijfilter-common-3.00“ target=clean; for dir in libs cngpij pstocanonij backend; do (cd $dir; make $target)|| exit 1; done make[2]: Entering directory „/media/***/***/tiskatna/cnijfilter-common-3.00/libs“ make[2]: *** "No rule to make target 'clean'. Stop." make[2]: Leaving directory „/media/***/***/tiskatna/cnijfilter-common-3.00/libs“ make[1]: *** [Makefile:12: clean] Error 1 make[1]: Leaving directory „/media/***/***/tiskatna/cnijfilter-common-3.00“ make: [debian/rules:74: clean] Error 2 (ignored) dh_clean debian/rules build dh_testdir # Add here commands to configure the package. ### configure common package ######## configure libs **Error**: You must have `libtool' installed. Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz (or a newer version if it is available) make: *** [debian/rules:35: configure-stamp] Chyba 1 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 debuild: fatal error at line 1182: dpkg-buildpackage -us -uc -ui -i -b failed
但是,libtool 已经安装好了。现在该做些什么?我承认,我不知道自己在做什么,只是不想每次想要打印任何东西时都切换到 WIN10。
答案1
尝试这个:
下载这些软件包:
假设它们是在 ~/Downloads 下载的
要安装它们,请在终端中运行:
cd ~/downloads
sudo dpkg -i *.deb
sudo apt -f install