Unmet dependencies help

How do i meet these dependencies???
sherab@sherab-librem13v4:~$ sudo apt install gtk+3.0 libwebkit2gtk-4.0 libusb-dev
[sudo] password for sherab:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘libgtk3.0-cil-dev’ for regex ‘gtk+3.0’
Note, selecting ‘python-wxgtk3.0-dbg’ for regex ‘gtk+3.0’
Note, selecting ‘python-wxgtk3.0-dev’ for regex ‘gtk+3.0’
Note, selecting ‘monodoc-gtk3.0-manual’ for regex ‘gtk+3.0’
Note, selecting ‘libwxgtk-media3.0-gtk3-0v5’ for regex ‘gtk+3.0’
Note, selecting ‘libgtk3.0-cil’ for regex ‘gtk+3.0’
Note, selecting ‘python-wxgtk3.0’ for regex ‘gtk+3.0’
Note, selecting ‘gir1.2-dbusmenu-gtk3-0.4’ for regex ‘gtk+3.0’
Note, selecting ‘libwxgtk3.0-gtk3-0v5’ for regex ‘gtk+3.0’
Note, selecting ‘libwxgtk3.0-0v5’ for regex ‘gtk+3.0’
Note, selecting ‘libwxgtk3.0-gtk3-dev’ for regex ‘gtk+3.0’
Note, selecting ‘libavahi-ui-gtk3-0’ for regex ‘gtk+3.0’
Note, selecting ‘libwxgtk3.0-dev’ for regex ‘gtk+3.0’
Note, selecting ‘libcanberra-gtk3-0’ for regex ‘gtk+3.0’
Note, selecting ‘python3-wxgtk3.0’ for regex ‘gtk+3.0’
Note, selecting ‘libwxgtk-webview3.0-gtk3-0v5’ for regex ‘gtk+3.0’
Note, selecting ‘libwxgtk3.0-0’ for regex ‘gtk+3.0’
Note, selecting ‘python2.7-wxgtk3.0’ for regex ‘gtk+3.0’
Note, selecting ‘libgwengui-gtk3-0’ for regex ‘gtk+3.0’
Note, selecting ‘python-wxgtk3.0’ instead of ‘python2.7-wxgtk3.0’
Note, selecting ‘libwebkit2gtk-4.0-37’ for regex ‘libwebkit2gtk-4.0’
Note, selecting ‘libwebkit2gtk-4.0-37-gtk2’ for regex ‘libwebkit2gtk-4.0’
Note, selecting ‘libwebkit2gtk-4.0-dev’ for regex ‘libwebkit2gtk-4.0’
Note, selecting ‘libwebkit2gtk-4.0-doc’ for regex ‘libwebkit2gtk-4.0’
libcanberra-gtk3-0 is already the newest version (0.30-7).
libcanberra-gtk3-0 set to manually installed.
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:
 gsettings-desktop-schemas : Breaks: mutter (< 3.31.4) but 3.30.2-9~deb10u1 is to be installed
 libwxgtk3.0-dev : Depends: wx3.0-headers (= 3.0.4+dfsg-8) but 3.0.5.1+dfsg-2 is to be installed
                   Depends: libwxbase3.0-dev (= 3.0.4+dfsg-8) but 3.0.5.1+dfsg-2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

This is because Debian packages (that you introduced for Crossover) are incompatible with PureOS packages. The somewhat easy options out of this:

  1. Delete Debian from sources.list (breaks Crossover)
  2. Abandon PureOS and switch to Debian (delete PureOS from sources.list and do apt-get update; apt-get dist-upgrade)
1 Like

Thank you @Dwaff
Feels like a Sophie’s choice…
Is there a way not to give up PureOS?? and keep all the other or if I keep all the other dependencies I do not really have PureOS anyway…?

There is but it is convoluted and ugly:

  1. Prepare 32bit environment in a chroot and link it with your main system, (instructions here for pureOS amber and Debian buster pair).
  2. Install crossover via deb package inside a chroot (pulls in all the dependencies)
  3. Install crossover in a main system using manual installation script. (Download installer from codeweavers, choose option “Other linux not listed above” to obtain the installation script)

It used to work for me, but my trial period expired long ago, so can’t really help much more with it.

Good luck. :slight_smile:

I just received a Librem Mini V2 and out of the box I am unable to update software. I am getting “unable to download updates: The following packages have unmet dependencies:” error message.

Suggestions?

1 Like

try this in a terminal:
sudo apt update
then
sudo apt upgrade

if you still have the error message, copy and paste it here, what you gave is not enough to understand what is going on

5 Likes

Yes, just adding to everything that @fralb5 kindly recommended:
sudo apt autoremove
sudo reboot

3 Likes

Thanks to fralb5 and Quarnero

1 Like

@mercatus did this solve all your issues?

Is there any issue with mixing apt update with the gnome software updates or will they work in harmony?

First, OS cannot work with the gnome-software and/or apt at the same time (one will lock another, especially if Software automatic updates not disabled). Let me think of them as that those are independent in what/how they perform. Here is GNOME official explanation on how Software works: “Software uses a plugin architecture to separate the frontend from the technologies that are used underneath.” Perhaps this options might be usable:
$ gnome-software --mode overview
$ gnome-software --mode installed
$ gnome-software --mode updated
$ gnome-software --mode updates

1 Like

To fully understand do you mean running either while the other is running - or do you mean running one one day, then a few days later running the other?

1 Like

I think that sounds like quite reasonable recommendation, coming basically from your side. I just do not feel comfortable with gnome-software (means nothing), therefore recommending running sudo apt update/upgrade at least once a week. In addition adding sudo apt-get clean (and autoclean) should help remove old update traces.

P.S. And what I actually meant is that PureOS cannot execute apt update while at the same time Software app is open. In short, just use one option at the time (result should be the same, especially when gnome-software fully operational).

2 Likes

It appears to have solved my issue. I did what fralb5 and Quarnero recommended. Then I ran the Software update. A few days later, there was another notice of a software update. I ran it. No issues.

1 Like

Hello @fralb5,

I used your recommendation regarding unmet dependencies error message- and it worked for 47 of 49 issues. With regard to OS updates and GStreamer Multimedia Codecs, I’m receiving this error message: Error calling StartServiceByName for org.freedesktop.fwupd: Failed to activate service 'org.freedesktop.fwupd": timed out

Any advice?

I also included the following per Quarnero:
sudo apt autoremove
sudo reboot

thank you

Any luck getting all your updates?

I recently upgraded from amber to byzantium, and am now struggling to clear out upgrades with unmet dependencies.

When I run sudo apt update then sudo apt upgrade the output ends with:

0 upgraded, 0 newly installed, 0 to remove and 722 not upgraded.

I then run sudo apt dist-upgrade in an attempt to resolve unmet dependencies, which returns an error:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Error!
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:
 libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Any advice on debugging and resolving this would be greatly appreciated :pray:

That problem is discussed a couple of times in these fora. Personally, I uninstalled that package when I upgraded from amber. I did not need -dev, and everything was fine after that.

PS. You may want to check out this thread. It is probably more appropriate for the problem you have, with a more recent post.

This is helpful. Thank you. I have been on Linux/PureOS for over a year now and did not realize this. It makes sense. I update using Terminal, and I think that the Software auto update has run in the background sometimes, sometimes causing an unmet dependency. I have now turned off automatic updates in the Software application. I will stay on top of updates manually. I still check for updates in the Software application as well, after I have updated in Terminal. It seems as though some of the applications I have installed get updated only through the Software application.

Is that correct then, that running apt update in Terminal and the Software application running auto update at the same time can cause unmet dependencies?

1 Like

Normally if they try to run at the same time, one of them will fail because the database will be locked. This happens to me on occasion during first boot because the software center checks for updates (even if it doesn’t install them automatically, it’ll still notify you that there are some available and so needs to run apt update) and is faster than me typing it out on the terminal.