0

I have used sudo -s for update but still facing problem due to unmet dependencies packages

Problem facing in

sudo apt-get update

tried

sudo -s
apt-get update
apt-get upgrade

then facing problem

The following packages have unmet dependencies:
The following packages have unmet dependencies:
 libreoffice-base : Depends: libreoffice-common (>= 1:6.4.0~beta1-2~) but it is not installed
 libreoffice-core : Depends: libreoffice-common (> 1:6.4.7) but it is not installed
 libreoffice-java-common : Depends: libreoffice-common but it is not installed
 libreoffice-script-provider-bsh : Depends: libreoffice-common but it is not installed
 libreoffice-script-provider-js : Depends: libreoffice-common but it is not installed
 libreoffice-script-provider-python : Depends: libreoffice-common but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Archisman Panigrahi
  • 28,338
  • 18
  • 105
  • 212
  • 1
    Use sudo instead of loging in as root with sudo -s. https://askubuntu.com/questions/70534/what-are-the-differences-between-su-sudo-s-sudo-i-sudo-su – Archisman Panigrahi Oct 17 '23 at 02:18
  • I see package libreoffice-common | 1:6.4.7-0ubuntu0.20.04.8 | focal-security | all available, so check the output from your commands (starting with sudo apt update, no warnings/errors or missing lines etc) – guiverc Oct 17 '23 at 02:18
  • 1
  • The following packages have unmet dependencies: libreoffice-base : Depends: libreoffice-common (>= 1:6.4.0~beta1-2~) but it is not installed libreoffice-core : Depends: libreoffice-common (> 1:6.4.7) but it is not installed libreoffice-java-common : Depends: libreoffice-common but it is not installed libreoffice-script-provider-bsh : Depends: libreoffice-common but it is not installed libreoffice-script-provider-js : Depends: libreoffice-common but it is not installed libreoffice-script-provider-python : Depends: libreoffice-common but it is not installed – Vikas M. Oct 17 '23 at 17:34

1 Answers1

0

Run sudo apt update followed by sudo apt --fix-broken install, as the computer suggests. If it shows Could not open lockfile, then reboot and try again.

Archisman Panigrahi
  • 28,338
  • 18
  • 105
  • 212