Linux Lite Forums

Full Version: errors during update [SOLVED]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just installed 4.2 on TOshiba Satellite laptop.
Seems to run fine but I get errors during update wheather terminal update or synaptic.
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
openjdk-11-jdk : Depends: openjdk-11-jdk-headless (= 10.0.2+13-1ubuntu0.18.04.4) but 10.0.2+13-1ubuntu0.18.04.2 is installed
openjdk-11-jdk-headless : Depends: openjdk-11-jre-headless (= 10.0.2+13-1ubuntu0.18.04.2) but 10.0.2+13-1ubuntu0.18.04.4 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
You can open a terminal and type,
Code:
sudo apt --fix broken install
Then your password when prompted.  It's normal for your password to not be visible while you are typing it, just type it and hit ENTER.  Then watch the magic!  When it's finished you'll see the colorful command prompt again, and just close that window.
Synaptic Package Manager (Menu -> System -> Add/Remove Software) has a nice graphical option to fix broken packages as well.
I tryied that as hinted in terminal, I get this.
sudo apt --fix broken install
E: Command line option --fix is not understood in combination with the other options.
Missing a hyphen:

Code:
sudo apt --fix-broken install