当我想安装一个新包时,出现此错误:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet de pendencies:
cndrvcups-capt:i386 : Depends: cndrvcups-common:i386 (>= 2.60) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
但如果我运行它,它将清除我的打印机驱动程序!
我想强制安装新软件而不考虑apt-get -f install
。这可能吗?
更新:
任何 repo 中都不存在 LBP 系列的佳能驱动程序。它有两个版本,分别适用于 32 位和 64 位计算机。但是,64 位软件包不是真正的 64 位软件包!它依赖于 i386 软件包!因此,人们应该先安装 32 位软件包,然后在 64 位计算机上安装 64 位软件包,才能使其正常工作。而且,这会带来apt-get -f install
!如果您运行apt-get -f 安装,然后删除驱动程序:
The following packages have unmet de pendencies:
cndrvcups-capt:i386 : Depends: cndrvcups-common:i386 (>= 2.60)
but it is not installable
apt-get -f install
:
The following packages will be REMOVED: cndrvcups-capt:i386, 0 upgraded, 0 newly installed, 1 to remove and 76 not upgraded.
答案1
首先,删除cndrvcups-capt:i386
:
apt-get -f install
按照以下步骤下载并安装驱动程序包:
cd
wget http://gdlp01.c-wss.com/gds/6/0100004596/03/Linux_CAPT_PrinterDriver_V260_uk_EN.tar.gz
tar xv xf Linux_CAPT_PrinterDriver_V260_uk_EN.tar.gz
64 位
cd Linux_CAPT_PrinterDriver_V260_uk_EN/64-bit_Driver/Debian sudo dpkg -i cndrvcups-common_2.60-1_amd64.deb sudo dpkg -i cndrvcups-capt_2.60-1_amd64.deb
32 位
就我而言,需要以下库:
sudo apt-get install libglade2-0:i386 sudo apt-get install libpango1.0-0:i386 sudo apt-get install libpopt0:i386
然后:
cd Linux_CAPT_PrinterDriver_V260_uk_EN/32-bit_Driver/Debian sudo dpkg -i cndrvcups-common_2.60-1_i386.deb sudo dpkg -i cndrvcups-capt_2.60-1_i386.deb