E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages

Haggar picture Haggar · Jun 11, 2015 · Viewed 46.5k times · Source

I have tried to install wine on elementary os 0.21 yesterday. While doing so i stumbled upon this output:

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.

I tried to solve this by trying sudo apt-get update, sudo apt-get upgrade and so on. Nothing has helped me so far and maybe i need to remove some packages but i am not sure which ones i would have to remove in order to solve the problem.

Answer

kmaci picture kmaci · Mar 13, 2016

Try

sudo dpkg --configure -a

and remove printed packages with sudo dpkg --remove [package-name].