从 michael-gruz PPA 安装 Canon Pixma MX330 驱动程序时缺少依赖项

从 michael-gruz PPA 安装 Canon Pixma MX330 驱动程序时缺少依赖项

我正在尝试在 Ubuntu 14.04 上安装佳能 pixma mx330(多功能)一体机。

我发现了一个页面佳能打印机安装说明,并且我已按照说明安装实际驱动程序,没有任何错误。

当我尝试安装 mx330series 驱动程序时收到以下错误消息:

charles@charles-GN689AA-ABA-m8277c:~$ sudo apt-get install cnijfilter-mx330series
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
   cnijfilter-mx330series:i386 : Depends: libtiff4:i386 (> 3.9.5-3~) but it is not installable
E: Unable to correct problems, you have held broken packages

我已经下载并尝试安装 libtiff4,但我的系统告诉我它已经安装。

我需要采取什么步骤来安装 mmx330 驱动程序?谢谢。

答案1

问题在于,解决方案既是无稽之谈,又因为包管理器忘记了如何直接设置依赖项,以及如何按照正确的顺序构建包。我已经在我的存储库中修复了这个问题,ppa:braiampe/ppaofme但如果您愿意,可以下载源代码并自行修复该问题,以下是不同之处:

=== modified file 'debian/control'
--- debian/control  2013-03-17 11:00:10 +0000
+++ debian/control  2014-06-06 00:52:18 +0000
@@ -9,7 +9,7 @@
                libtool,
                libcupsys2-dev | libcups2-dev,
                libxml2-dev,
-               libtiff4-dev | libtiff5-dev,
+               libtiff5-dev | libtiff4-dev,
                libglib2.0-dev,
                libgtk2.0-dev,
                libpopt-dev

=== modified file 'debian/rules'
--- debian/rules    2013-03-17 11:00:10 +0000
+++ debian/rules    2014-06-06 01:37:52 +0000
@@ -262,7 +262,8 @@

    touch configure-stamp

-
+build-arch: build
+build-indep: build
 build: build-stamp
 build-stamp: configure-stamp 
    dh_testdir

=== modified file 'debian/skel/control.common.i386.skel'
--- debian/skel/control.common.i386.skel    2013-03-17 00:45:19 +0000
+++ debian/skel/control.common.i386.skel    2014-06-06 00:55:49 +0000
@@ -2,7 +2,7 @@
 Section: graphics
 Priority: optional
 Maintainer: Canon Inc. <[email protected]>
-Build-Depends: debhelper (>= 4.0.0), libcupsys2-dev | libcups2-dev, libxml2-dev, libtiff4-dev, automake, autoconf, autotools-dev, libtool, libglib2.0-dev, libgtk2.0-dev, libpopt-dev, ia32-libs [amd64], libc6-dev-i386 [amd64], gcc-multilib [amd64], lib32stdc++6 [amd64], lib32z1-dev [amd64]
+Build-Depends: debhelper (>= 4.0.0), libcupsys2-dev | libcups2-dev, libxml2-dev, libtiff5-dev | libtiff4-dev, automake, autoconf, autotools-dev, libtool, libglib2.0-dev, libgtk2.0-dev, libpopt-dev, ia32-libs [amd64], libc6-dev-i386 [amd64], gcc-multilib [amd64], lib32stdc++6 [amd64], lib32z1-dev [amd64]
 Standards-Version: 3.7.2

 Package: cnijfilter-common

=== modified file 'debian/skel/control.common.ia32.skel'
--- debian/skel/control.common.ia32.skel    2013-03-17 00:45:19 +0000
+++ debian/skel/control.common.ia32.skel    2014-06-06 00:56:12 +0000
@@ -9,7 +9,7 @@
                libtool,
                libcupsys2-dev | libcups2-dev,
                libxml2-dev,
-               libtiff4-dev | libtiff5-dev,
+               libtiff5-dev | libtiff4-dev,
                libglib2.0-dev,
                libgtk2.0-dev,
                libpopt-dev

=== modified file 'debian/skel/control.common.skel'
--- debian/skel/control.common.skel 2013-03-17 00:45:19 +0000
+++ debian/skel/control.common.skel 2014-06-06 00:56:56 +0000
@@ -2,7 +2,7 @@
 Section: graphics
 Priority: optional
 Maintainer: Canon Inc. <[email protected]>
-Build-Depends: debhelper (>= 4.0.0), libcupsys2-dev | libcups2-dev, libxml2-dev, libtiff4-dev, automake, autoconf, autotools-dev, libtool, libglib2.0-dev, libgtk2.0-dev, libpopt-dev
+Build-Depends: debhelper (>= 4.0.0), libcupsys2-dev | libcups2-dev, libxml2-dev, libtiff5-dev | libtiff4-dev, automake, autoconf, autotools-dev, libtool, libglib2.0-dev, libgtk2.0-dev, libpopt-dev
 Standards-Version: 3.7.2

 Package: cnijfilter-common

正如您所注意到的,唯一修改的行是将 libtiff5-dev 添加到构建依赖项中或反转包的顺序以使版本 5 首先出现而不是 4。

相关内容