当前位置:   article > 正文

ubuntu dpkg dependency problem(依赖问题)_dpkg dependency problems

dpkg dependency problems

环境:window 10 ubuntu 20.04LTS(子系统)
引起问题可能的原因:在安装ubuntu-mate-desktop强制退出,导致一些包没安装上
报错信息:

dpkg: dependency problems prevent configuration of printer-driver-pxljr:
 printer-driver-pxljr depends on cups-filters (>= 1.0.42) | foomatic-filters (>= 4.0.0~bzr156); however:
  Package cups-filters is not installed.
  Package foomatic-filters is not installed.
  Package cups-filters which provides foomatic-filters is not installed.

dpkg: error processing package printer-driver-pxljr (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cups:
 cups depends on cups-filters; however:
  Package cups-filters is not installed.

dpkg: error processing package cups (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of indicator-printers:
 indicator-printers depends on cups (>= 1.5); however:
  Package cups is not configured yet.

dpkg: error processing package indicator-printers (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of printer-driver-gutenprint:
 printer-driver-gutenprint depends on cups; however:
  Package cups is not configured yet.
 printer-driver-gutenprint depends on cups-filters (>= 1.0.36) | ghostscript-cups (<< 9.08); however:
  Package cups-filters is not installed.
  Package ghostscript-cups is not installed.
  Package cups-filters which provides ghostscript-cups is not installed.

dpkg: error processing package printer-driver-gutenprint (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of printer-driver-foo2zjs:
 printer-driver-foo2zjs depends on cups-filters | foomatic-filters; however:
  Package cups-filters is not installed.
  Package foomatic-filters is not installed.
  Package cups-filters which provides foomatic-filters is not installed.

dpkg: error processing package printer-driver-foo2zjs (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of printer-driver-splix:
 printer-driver-splix depends on cups (>= 1.5.0-3~); however:
  Package cups is not configured yet.
 printer-driver-splix depends on cups-filters (>= 1.0.36); however:
  Package cups-filters is not installed.

dpkg: error processing package printer-driver-splix (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bluez-cups:
 bluez-cups depends on cups; however:
  Package cups is not configured yet.

dpkg: error processing package bluez-cups (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of printer-driver-hpcups:
 printer-driver-hpcups depends on cups; however:
  Package cups is not configured yet.
 printer-driver-hpcups depends on cups-filters | ghostscript-cups; however:
  Package cups-filters is not installed.
  Package ghostscript-cups is not installed.
  Package cups-filters which provides ghostscript-cups is not installed.

dpkg: error processing package printer-driver-hpcups (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of printer-driver-m2300w:
 printer-driver-m2300w depends on cups-filters (>= 1.0.42) | foomatic-filters (>= 4.0.0~bzr156); however:
  Package cups-filters is not installed.
  Package foomatic-filters is not installed.
  Package cups-filters which provides foomatic-filters is not installed.

dpkg: error processing package printer-driver-m2300w (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of hplip:
 hplip depends on cups; however:
  Package cups is not configured yet.
 hplip depends on printer-driver-hpcups (= 3.20.3+dfsg0-2); however:
  Package printer-driver-hpcups is not configured yet.

dpkg: error processing package hplip (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-mate-core:
 ubuntu-mate-core depends on printer-driver-gutenprint; however:
  Package printer-driver-gutenprint is not configured yet.
 ubuntu-mate-core depends on printer-driver-hpcups; however:
  Package printer-driver-hpcups is not configured yet.

dpkg: error processing package ubuntu-mate-core (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 printer-driver-pxljr
 cups
 indicator-printers
 printer-driver-gutenprint
 printer-driver-foo2zjs
 printer-driver-splix
 bluez-cups
 printer-driver-hpcups
 printer-driver-m2300w
 hplip
 ubuntu-mate-core
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98

一般解决方案:

sudo dpkg --configure -a
  • 1

我的情况可能比较特殊,执行这条指令依旧报错。
最终找了解决方案
在这里插入图片描述
根据我的报错信息,我第一个缺失的package 是printer-driver-pxljr(此package请以自己实际情况为准),于是我使用指令

sudo dpkg --configure printer-driver-pxljr
  • 1

结果依旧报错
在这里插入图片描述
错误提示cups-filters未安装,于是进行cups-filters安装
在这里插入图片描述
结果依旧报错,提示cups-filters处于半安装状态,此时需要重新安装cups-filters,我使用的指令是

sudo apt-get install --reinstall cups-filters
  • 1

指令成功执行了。
在这里插入图片描述
在这里插入图片描述

上条指令执行后,自动将缺失的包配置好了
至此我的错误已经解决了,希望能帮到你

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/88636
推荐阅读
相关标签
  

闽ICP备14008679号