apt-get -f install问题

凯特

我试图安装lynx来向某人展示lynx的工作原理,但是当我运行时apt-get install lynx,会发生这种情况。

sudo apt-get install lynx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
lynx is already the newest version (2.8.9dev8-4ubuntu1).
lynx set to manually installed.
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.1.4) but it is not going to be installed
 libreoffice-java-common : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-breeze : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-elementary : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-galaxy : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-oxygen : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-tango : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

所以我自然会尝试两者sudo apt-get -f install,这是发生了什么:

sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libreoffice-common
Suggested packages:
  libreoffice-style-hicontrast libreoffice-style-human libreoffice-style-sifr
The following NEW packages will be installed:
  libreoffice-common
0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
21 not fully installed or removed.
Need to get 0 B/22.3 MB of archives.
After this operation, 84.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 345619 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a5.1.4-0ubuntu1_all.deb ...
Unpacking libreoffice-common (1:5.1.4-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.1.4-0ubuntu1_all.deb (--unpack):
 trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1.2-9782
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 desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a5.1.4-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

所以现在我被卡住了。我不知道如何解决此问题。谷歌搜索无法提供任何帮助,因为每个人都认为它无法正常工作。

人们建议sudo apt-get remove libreoffice* --purge再次运行,但没有任何apt-get命令起作用,因为它挂在了这个糟糕的错误上,告诉我可以通过进行修复-f install

如果有人知道如何解决此问题,请告诉我。我真的很讨厌必须格式化并重新开始。


当我尝试删除虚假的OpenOffice.org安装时:

$ sudo apt-get remove -f 'openoffice.*'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'openoffice.org-debian-menus' for glob 'openoffice.*'
[...snip...]
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.1.4) but it is not going to be installed
 libreoffice-java-common : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-breeze : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-elementary : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-galaxy : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-oxygen : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice-style-tango : Depends: libreoffice-common (= 1:5.1.4-0ubuntu1) but it is not going to be installed
 libreoffice5.2-base : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                       Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-calc : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                       Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-dict-en : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                          Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-dict-es : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                          Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-dict-fr : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                          Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-draw : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                       Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-en-us : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                        Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-impress : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                          Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-math : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                       Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
 libreoffice5.2-writer : Depends: libreoffice5.2 (>= 5.2.4.2) but it is not installable
                         Depends: libreoffice5.2 (<= 5.2.4.2-2) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

未删节版

大卫·福斯特(David Foerster)

在注释中的交互中,除了来自Ubuntu默认软件包存储库的部分LibreOffice v5.1。*安装之外,我们还确定了LibreOffice v5.2。*安装和OpenOffice.org安装的剩余部分。我们可以通过以下方式解决问题

  1. 手动删除LibreOffice v5.2。*和OpenOffice.org(的残余):

    dpkg-query -Wf '${Status;1} ${Package}\n' openoffice\* libreoffice5.2\* libobasis5.2\* |
    sed -ne 's/^i //p' |
    xargs sudo dpkg --remove
    

    (按要求说明:dpkg-query输出的每一行的第一个字段是程序包状态(由-fformat选项定义)。i表示“已安装”,因此sed -ne 's/^i //p'将仅打印以该行开头i并删除该部分的行。)

  2. 然后解决Apt其余的软件包管理问题,并为选择涉及安装libreoffice-common(从默认存储库)的解决方案提供提示

    sudo apt-get install -f libreoffice-common
    

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

即使使用apt-get install -f也会损坏apt-get问题

来自分类Dev

即使使用apt-get install -f也会损坏apt-get问题

来自分类Dev

apt-get -f安装问题

来自分类Dev

无法运行apt-get -f install

来自分类Dev

由于jdk问题而无法sudo apt-get -f install

来自分类Dev

“ apt-get -f install”命令中的-f做什么?

来自分类Dev

apt-get具有未满足的依赖性,但是apt-get -f install不能解决问题

来自分类Dev

sudo apt-get install -f install和sudo apt-get install -f有什么区别?

来自分类Dev

sudo apt-get install -f install和sudo apt-get install -f有什么区别?

来自分类Dev

sudo apt-get install和sudo apt-f install返回错误

来自分类Dev

apt-get install -f保留的软件包

来自分类Dev

sudo apt-get -f install错误(找不到ldconfig)

来自分类Dev

为什么“ apt-get -f install”不会自动发生?

来自分类Dev

apt-get install -f无法解决依赖关系

来自分类Dev

apt-get -f install有什么作用?

来自分类Dev

使用apt-get -f install后黑屏显示BIOS

来自分类Dev

未满足的依赖项。尝试“apt-get -f install”

来自分类Dev

apt-get install -f 想要删除 447 个包

来自分类Dev

apt-get install -f 想要删除 447 个包

来自分类Dev

sudo apt-get -f install 到底做了什么?

来自分类Dev

如何修复“ apt-get install -f apt-transport-https”错误:404未找到?

来自分类Dev

在NFS共享上使用apt-get install with home的问题

来自分类Dev

“ sudo apt-get install fglrx-amdcccle”之后的问题

来自分类Dev

使用 apt-get install 安装 sqlite3 的问题

来自分类Dev

apt-get升级的问题

来自分类Dev

apt-get升级的问题

来自分类Dev

apt-get安装问题

来自分类Dev

apt-get升级的问题

来自分类Dev

apt-get install -y

Related 相关文章

热门标签

归档