当我尝试使用 apt-get install 安装任何软件时,我总是收到依赖项和“lsb 未配置”错误

当我尝试使用 apt-get install 安装任何软件时,我总是收到依赖项和“lsb 未配置”错误

好的,我的最终目标是安装我的 Epson WF-2630 AIO 打印机。尝试执行此操作时,我发现尝试使用 apt 安装任何软件包都会导致相同的依赖性错误:

jen@DotySupreme:~/Downloads$ sudo dpkg -i epson-inkjet-printer-escpr_1.4.1-1lsb3.2_amd64.deb
(Reading database ... 223896 files and directories currently installed.)
Preparing to unpack epson-inkjet-printer-escpr_1.4.1-1lsb3.2_amd64.deb ...
Unpacking epson-inkjet-printer-escpr (1.4.1-1lsb3.2) over (1.4.1-1lsb3.2) ...
dpkg: dependency problems prevent configuration of epson-inkjet-printer-escpr:
 epson-inkjet-printer-escpr depends on lsb (>= 3.2); however:
  Package lsb is not configured yet.

dpkg: error processing package epson-inkjet-printer-escpr (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Errors were encountered while processing:
 epson-inkjet-printer-escpr

因此我尝试按照几篇文章中的说明进行操作:

  1. apt-get install 无法安装任何软件

    • 读完这篇文章后,我认为我的错误可能是因为我曾经运行过自动删除,但我不知道如何关闭它。
  2. 自最新更新以来,Apt-get 无法安装任何软件

    • 我认为这不会有帮助,因为我没有要终止的进程。
  3. 尝试安装时出错
    • 评论“@tlo 我自己修复了它,某种类型的 og 命令将终端变成紫色,它说是或否,我选择是,然后它就修复了所有问题 sudo dpkg -configue -a 然后 sudo apt-get update”表示他回答了他自己的问题,但没有给我足够的信息来知道他做了什么。
  4. 如何在 Ubuntu 16.04 上安装 Epson 打印机驱动程序?
    • 我添加了可信赖的来源,但它没有添加打印机,当我手动选择 .rpm 或 .deb 时,我会得到一个可供选择的点阵打印机列表。

当我尝试使用 GUI 安装打印机并告诉它自己下载驱动程序时,它只是停留在那里。


我已经运行了几个命令:

jen@DotySupreme:~$ sudo apt-get install printer-driver-escpr
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libgcc1:i386 : Depends: libc6:i386 (>= 2.2.4) but it is not going to be installed
 lsb-core : Depends: libc6:i386 or
                     libc6-i386 but it is not going to be installed
 zlib1g:i386 : Depends: libc6:i386 (>= 2.4) but it is not going to be installed
N: Ignoring file '20auto-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

jen@DotySupreme:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libc6:i386
Suggested packages:
  glibc-doc:i386 locales:i386
The following NEW packages will be installed:
  libc6:i386
0 upgraded, 1 newly installed, 0 to remove and 57 not upgraded.
7 not fully installed or removed.
Need to get 0 B/2,275 kB of archives.
After this operation, 9,811 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 223896 files and directories currently installed.)
Preparing to unpack .../libc6_2.23-0ubuntu7_i386.deb ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.23-0ubuntu7_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.23-0ubuntu7_i386.deb
N: Ignoring file '20auto-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
E: Sub-process /usr/bin/dpkg returned an error code (1)

jen@DotySupreme:~$ sudo apt-get update
Reading package lists... Done
N: Ignoring file '20auto-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/

jen@DotySupreme:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of zlib1g:i386:
 zlib1g:i386 depends on libc6 (>= 2.4); however:
  Package libc6:i386 is not installed.

dpkg: error processing package zlib1g:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of lsb-core:
 lsb-core depends on libc6:i386 | libc6-i386; however:
  Package libc6:i386 is not installed.
  Package libc6-i386 is not installed.
 lsb-core depends on zlib1g:i386 | lib32z1; however:
  Package zlib1g:i386 is not configured yet.
  Package lib32z1 is not installed.

dpkg: error processing package lsb-core (--configure):
 dependency problems - leaving unconfigured
Setting up cups (2.1.3-4) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package cups (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of lsb:
 lsb depends on lsb-core (>= 9.20160110ubuntu0.2); however:
  Package lsb-core is not configured yet.

dpkg: error processing package lsb (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgcc1:i386:
 libgcc1:i386 depends on libc6 (>= 2.2.4); however:
  Package libc6:i386 is not installed.

dpkg: error processing package libgcc1:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of epson-inkjet-printer-escpr:
 epson-inkjet-printer-escpr depends on lsb (>= 3.2); however:
  Package lsb is not configured yet.

dpkg: error processing package epson-inkjet-printer-escpr (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of lsb-printing:
 lsb-printing depends on lsb-core (>= 9.20160110ubuntu0.2); however:
  Package lsb-core is not configured yet.

dpkg: error processing package lsb-printing (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 zlib1g:i386
 lsb-core
 cups
 lsb
 libgcc1:i386
 epson-inkjet-printer-escpr
 lsb-printing

jen@DotySupreme:~$ sudo apt-get clean
N: Ignoring file '20auto-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/

更新,尝试安装突触:

jen@DotySupreme:~$ sudo apt install synaptic
[sudo] password for jen: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
synaptic is already the newest version (0.83).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libgcc1:i386 : Depends: libc6:i386 (>= 2.2.4) but it is not going to be installed
 lsb-core : Depends: libc6:i386 or
                     libc6-i386 but it is not going to be installed
 zlib1g:i386 : Depends: libc6:i386 (>= 2.4) but it is not going to be installed
N: Ignoring file '20auto-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

答案1

您正在使用 epson-inkjet-printer-escpr_1.4.1-1lsb3.2_amd64.deb,而 Epson 网站将 epson-inkjet-printer-escpr_1.6.13-1lsb3.2_amd64.deb 列为他们推荐的版本http://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=EN&CN2=&DSCMI=55539&DSCCHK=5ef6ec128765534a989152269045f12fc58077f2.因此,如果你下载并保存了.对于新的搜索,我从这里开始http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX并输入打印机编号。

我看到各种错误消息“ibc6:i386 未安装”;和“软件包 lsb-core 尚未配置”,请检查 lsb 是否已安装;最好使用 synaptic 进行安装,sudo apt install synaptic如果 lsb 已安装,我将在终端中再次尝试sudo apt install epson-inkjet-printer-escpr_1.6.13-1lsb3.2_amd64.deb

我理解的新术语是只使用 apt install

相关内容