E:错误,pkgProblemResolver::Resolve生成的中断,这可能是由保留的包引起的

vs3odd8k  于 2022-09-20  发布在  其他
关注(0)|答案(3)|浏览(854)

昨天我试着在基础操作系统0.21上安装了WINE。在执行此操作时,我偶然发现了以下输出:

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:
 adduser : Depends: passwd (>= 1:4.0.12)
 libqtgui4:i386 : Depends: libaudio2:i386 but it is not going to be installed
 libsm6 : Depends: libuuid1 (>= 2.16) but it is not going to be installed
 libuuid1:i386 : Depends: passwd:i386
                 Recommends: uuid-runtime:i386
 openssh-client : Depends: passwd
 procps : Depends: initscripts
 upstart : Depends: libnih-dbus1 (>= 1.0.0) but it is not going to be installed
           Depends: libnih1 (>= 1.0.0) but it is not going to be installed
           Depends: initscripts
           Depends: mountall
           Depends: ifupdown (>= 0.6.10ubuntu5)
 wine : Depends: wine1.6 but it is not going to be installed or
                 wine1.7 but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我试图通过尝试sudo apt-get更新、sudo apt-get升级等等来解决这个问题。到目前为止没有任何帮助,也许我需要删除一些包,但我不确定我必须删除哪些才能解决问题。

o4tp2gmn

o4tp2gmn1#

在我的示例中,我键入pkexec synaptic命令并按Enter;然后从图形用户界面中选择Status,然后断开并删除损坏的包。我工作得很好。

f4t66c6m

f4t66c6m2#

尝试

sudo dpkg --configure -a

并取下带有sudo dpkg --remove [package-name]的打印 Package 。

xkrw2x1b

xkrw2x1b3#

要安装WINE,请使用aptitude而不是apt-get。例如:

sudo aptitude install <packagename>

相关问题