每次安装中的 libreoffice-core 依赖项

Goc*_*cht 4 package-management apt libreoffice

每次我尝试安装或删除或通过apt-get我得到的任何操作时:

libreoffice-core : Depends libreoffice-common (>1:5.0.2)
Run Code Online (Sandbox Code Playgroud)

但它不会被安装和一个建议:

Try <<apt-get -f install>>
Run Code Online (Sandbox Code Playgroud)

但是当我运行最后一个命令时,它返回相同的错误。我删除libreoffice是因为我不使用它,我什至尝试重新安装它但我不能。我怎样才能解决这个问题?我正在使用 Ubuntu 14.04

编辑:

这是输出: lsb_release -a; uname -a; apt-cache policy libreoffice-core libreoffice-common

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:   trusty
Linux teclalabs 3.13.0-66-generic #108-Ubuntu SMP Wed Oct 7 15:20:27 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
libreoffice-core:
  Instalados: 1:5.0.2-0ubuntu1~trusty1
  Candidato:  1:5.0.2-0ubuntu1~trusty1
  Tabla de versión:
 *** 1:5.0.2-0ubuntu1~trusty1 0
        500 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
     1:4.2.8-0ubuntu2 0
        500 http://pe.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     1:4.2.3~rc3-0ubuntu2 0
        500 http://pe.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
libreoffice-common:
  Instalados: (ninguno)
  Candidato:  1:5.0.2-0ubuntu1~trusty1
  Tabla de versión:
     1:5.0.2-0ubuntu1~trusty1 0
        500 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ trusty/main amd64 Packages
     1:4.2.8-0ubuntu2 0
        500 http://pe.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     1:4.2.3~rc3-0ubuntu2 0
        500 http://pe.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
Run Code Online (Sandbox Code Playgroud)

编辑:

这是完整的输出 LANG=C sudo apt-get install -f

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libreoffice-common
Suggested packages:
  libreoffice-style-breeze libreoffice-style-crystal
  libreoffice-style-hicontrast libreoffice-style-human
  libreoffice-style-oxygen libreoffice-style-sifr libreoffice-style-tango
The following NEW packages will be installed:
  libreoffice-common
0 upgraded, 1 newly installed, 0 to remove and 51 not upgraded.
11 not fully installed or removed.
Need to get 0 B/22.5 MB of archives.
After this operation, 83.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 341789 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a5.0.2-0ubuntu1~trusty1_all.deb ...
Unpacking libreoffice-common (1:5.0.2-0ubuntu1~trusty1) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.0.2-0ubuntu1~trusty1_all.deb (--unpack):
 trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1.1-9775
rmdir: failed to remove '/var/lib/libreoffice/share/prereg/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/share/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/program/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
Processing triggers for gnome-icon-theme (3.10.0-0ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a5.0.2-0ubuntu1~trusty1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

编辑:

运行后输出 sudo apt-get remove openoffice-debian-menus

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libreoffice-core : Depends: libreoffice-common (> 1:5.0.2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)

编辑:

完整输出 sudo apt-get install libreoffice-common

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  libreoffice-style-breeze libreoffice-style-crystal
  libreoffice-style-hicontrast libreoffice-style-human
  libreoffice-style-oxygen libreoffice-style-sifr libreoffice-style-tango
The following NEW packages will be installed:
  libreoffice-common
0 upgraded, 1 newly installed, 0 to remove and 51 not upgraded.
11 not fully installed or removed.
Need to get 0 B/22.5 MB of archives.
After this operation, 83.7 MB of additional disk space will be used.
(Reading database ... 341789 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a5.0.2-0ubuntu1~trusty1_all.deb ...
Unpacking libreoffice-common (1:5.0.2-0ubuntu1~trusty1) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.0.2-0ubuntu1~trusty1_all.deb (--unpack):
 trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1.1-9775
rmdir: failed to remove '/var/lib/libreoffice/share/prereg/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/share/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/program/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
Processing triggers for gnome-icon-theme (3.10.0-0ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a5.0.2-0ubuntu1~trusty1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

A.B*_*.B. 20

前段时间您安装了 LibreOffice,但没有成功。从今天起,包管理器出现问题,每次安装其他东西时都会出现问题。


LibreOffice 的安装与您的 OpenOffice 安装冲突。

试图覆盖“/usr/bin/soffice”,它也在 openoffice-debian-menus 4.1.1-9775 包中

执行

sudo apt-get remove openoffice-debian-menus
Run Code Online (Sandbox Code Playgroud)

如果这不像你的情况那样工作

sudo dpkg -r --force-all openoffice-debian-menus
Run Code Online (Sandbox Code Playgroud)

现在修复你的系统

sudo apt-get install -f
Run Code Online (Sandbox Code Playgroud)