1

Recently I have been getting this warning icon on my top bar. Clicking on it tells me:

An error occurred, please run Package Manager from the right-click menu or apt-get in a terminal to see what is wrong. The error message was: 'Error: BrokenCount > 0.' This usually means that your installed packages have unmet dependencies.

When I run apt update in a terminal, everything is fine and I get no errors. But when I run apt upgrade or apt --fix-broken install I get the following error message:

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 openjdk-11-jdk-headless : Depends: openjdk-11-jre-headless (= 11~19-1~18.04) but 11~7-1ubuntu1 is installed
 openjdk-11-jre : Depends: openjdk-11-jre-headless (= 11~19-1~18.04) but 11~7-1ubuntu1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I don't know how to fix the problem. I can not run updates and upgrades on the machine.

Jos
  • 30,529
  • 8
  • 89
  • 96
tamrat
  • 253

2 Answers2

1

I was also facing the same issue. Fixed the issue by following steps;

  1. Went to Software & Updates.
  2. Navigate to "Other Software" Tab.
  3. Unchecked the entry "http://ppa.launchpad.net/openjdk-r/ppa/ubuntu bionic main"

Pressed the Close button.

After that, I ran following commands.

sudo apt-get upgrade
sudo apt-get update

Done.

1

this resolved for me.

  1. Went to Software & Updates.
  2. Navigate to "Other Software" Tab.
  3. remove http://ppa.launchpad.net/openjdk-r/ppa/ubuntu
  4. sudo apt-get autoremove openjdk-1*
  5. sudo apt-get upgrade && sudo apt-get update