Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 613
Haggar Avatar asked Jun 10 '15 23:06

Haggar


2 Answers

Try

sudo dpkg --configure -a

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

like image 164
kmaci Avatar answered Nov 08 '22 06:11

kmaci


To install wine use aptitude instead of apt-get. For example:

sudo aptitude install <packagename>
like image 22
Nikesh Nayak Avatar answered Nov 08 '22 04:11

Nikesh Nayak