11

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.

Haggar
  • 119
  • 1
  • 3
  • 6
  • I found correction of this bug [here](https://unix.stackexchange.com/questions/592657/full-upgrade-to-debian-testing-fails-due-to-libc6-dev-breaks-libgcc-8-dev) – nextloop Aug 16 '21 at 06:23

3 Answers3

8

Try

sudo dpkg --configure -a

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

Scott Stensland
  • 26,870
  • 12
  • 93
  • 104
kmaci
  • 3,094
  • 2
  • 18
  • 28
  • I am also facing the same issue. When I try to `sudo dpkg --remove [package-name]`, I get the following error: `dpkg: error processing package libpulse0:amd64 (--remove): dependency problems - not removing Errors were encountered while processing: libpulse0:amd64` Any suggestions on what I can do? – Kristada673 Jan 04 '18 at 03:52
  • 7
    I get no output from sudo dpkg --configure -a . Do you have any other suggestion to figure out what is wrong. Is there a way to just re-install apt? – Michael Mantion Jun 10 '18 at 16:01
  • I had this problem with emacs(I wanted to remove it), then by using `sudo apt autoremove emacs emacs23 emacs24 emacs25 emacs-lucid emacs-gtk emacs-nox` problem solved for me – SdSaati Aug 13 '21 at 18:36
6

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

sudo aptitude install <packagename>
Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Nikesh Nayak
  • 302
  • 2
  • 9
1

In my case, I typed the pkexec synaptic command and hit enter; then from the GUI I selected status and then broken and deleted the broken packages. I worked pretty well.

blest
  • 437
  • 1
  • 4
  • 10