由于打印机驱动程序 pnm2ppa 出现奇怪错误,无法重新安装 Ubuntu 桌面

由于打印机驱动程序 pnm2ppa 出现奇怪错误,无法重新安装 Ubuntu 桌面

我已经尝试修复这个错误好几个小时了,但毫无进展。我的 apt-get 似乎因收到打印机驱动程序 pnm2ppa 的错误而瘫痪。我实际上不需要该驱动程序,但它似乎依赖无数的东西。任何帮助都将不胜感激。

sudo apt-get install ubuntu-desktop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  ubuntu-desktop
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 4,270 B of archives.
After this operation, 60.4 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ saucy/main ubuntu-desktop i386 1.307     [4,270 B]
Fetched 4,270 B in 0s (13.7 kB/s)         
Selecting previously unselected package ubuntu-desktop.
(Reading database ... 403424 files and directories currently installed.)
Unpacking ubuntu-desktop (from .../ubuntu-desktop_1.307_i386.deb) ...
Processing triggers for libc-bin ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.11.0-13-generic
Processing triggers for ca-certificates ...
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....
done.
done.
Setting up printer-driver-pnm2ppa (1.13+nondbs-0ubuntu3) ...
/var/lib/dpkg/info/printer-driver-pnm2ppa.postinst: 19: /var/lib/dpkg/info/printer-    driver-pnm2ppa.postinst: install: not found
dpkg: error processing printer-driver-pnm2ppa (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of ubuntu-desktop:
 ubuntu-desktop depends on printer-driver-pnm2ppa; however:
  Package printer-driver-pnm2ppa is not configured yet.

dpkg: error processing ubuntu-desktop (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error     from a previous failure.
                                                                                                          Errors were encountered while processing:
 printer-driver-pnm2ppa
 ubuntu-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)

编辑 1:根据要求,添加输出

sudo apt-get --reinstall install printer-driver-pnm2ppa
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  magicfilter apsfilter
The following NEW packages will be installed:
  printer-driver-pnm2ppa
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/210 kB of archives.
After this operation, 772 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package printer-driver-pnm2ppa.
(Reading database ... 403352 files and directories currently installed.)
Unpacking printer-driver-pnm2ppa (from .../printer-driver-pnm2ppa_1.13+nondbs-0ubuntu3_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 3 changed doc-base files...
Registering documents with scrollkeeper...
Setting up printer-driver-pnm2ppa (1.13+nondbs-0ubuntu3) ...
/var/lib/dpkg/info/printer-driver-pnm2ppa.postinst: 19: /var/lib/dpkg/info/printer-    driver-pnm2ppa.postinst: install: not found
dpkg: error processing printer-driver-pnm2ppa (--configure):
 subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports is reached already
                                                              Errors were encountered     while processing:
 printer-driver-pnm2ppa
E: Sub-process /usr/bin/dpkg returned an error code (1)

编辑2:

sudo apt-get purge printer-driver-pnm2ppa && sudo rm /var/lib/dpkg/info/printer-    driver-pnm2ppa*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  printer-driver-pnm2ppa*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 772 kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 403423 files and directories currently installed.)
Removing printer-driver-pnm2ppa ...
Purging configuration files for printer-driver-pnm2ppa ...
Processing triggers for doc-base ...
Processing 3 removed doc-base files...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
rm: cannot remove ‘/var/lib/dpkg/info/printer-driver-pnm2ppa*’: No such file or     directory

编辑 3:仍然不起作用。将向启动板报告错误。

 sudo apt-get install printer-driver-pnm2ppa
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  magicfilter apsfilter
The following NEW packages will be installed:
  printer-driver-pnm2ppa
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/210 kB of archives.
After this operation, 772 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package printer-driver-pnm2ppa.
(Reading database ... 403352 files and directories currently installed.)
Unpacking printer-driver-pnm2ppa (from .../printer-driver-pnm2ppa_1.13+nondbs-    0ubuntu3_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 3 added doc-base files...
Registering documents with scrollkeeper...
Setting up printer-driver-pnm2ppa (1.13+nondbs-0ubuntu3) ...
/var/lib/dpkg/info/printer-driver-pnm2ppa.postinst: 19: /var/lib/dpkg/info/printer-driver-pnm2ppa.postinst: install: not found
dpkg: error processing printer-driver-pnm2ppa (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 printer-driver-pnm2ppa
E: Sub-process /usr/bin/dpkg returned an error code (1)

相关内容