Bra*_*man 4 apt dependencies libreoffice
我卸载了 Libreoffice 并只安装了 Openoffice 发现我不再喜欢 OpenOffice。我今天卸载了 OpenOffice 并尝试安装 LibreOffice,但出现错误。
The following packages have unmet dependencies:
libreoffice-core : Depends: libreoffice-common (> 1:4.2.7) but it is not installed
libreoffice-help-en-us : Depends: libreoffice-l10n-en-us
libreoffice-java-common : Depends: libreoffice-common but it is not installed
libreoffice-l10n-en-gb : Depends: libreoffice-common but it is not installed
libreoffice-l10n-en-za : Depends: libreoffice-common but it is not installed
y-ppa-manager : Depends: yad (>= 0.8.0) but it is not installed
Depends: python-software-properties but it is not installed
Run Code Online (Sandbox Code Playgroud)
所以我尝试这样做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 extra packages will be installed:
libreoffice-common
Suggested packages:
libreoffice-style-crystal libreoffice-style-hicontrast
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 10 not upgraded.
41 not fully installed or removed.
Need to get 0 B/19.9 MB of archives.
After this operation, 76.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 453874 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a4.2.7-0ubuntu1_all.deb ...
Unpacking libreoffice-common (1:4.2.7-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a4.2.7-0ubuntu1_all.deb (--unpack):
trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1-9764
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-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...
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for gnome-icon-theme (3.10.0-0ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-common_1%3a4.2.7-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
我无法再安装任何东西或更新我的系统。
在做了一些研究并学习了一些新技巧后,我自己回答了这个问题。如果有人遇到与这些损坏的依赖项相关的问题,我将提供答案。我使用了突触包管理器来删除损坏的包。这是我如何做到的
首先我下载了 Synaptic Package Manager Synaptic Package Manager
然后我将下载的 .deb 文件移动到我的主文件夹(以便于终端访问)然后继续打开终端
CTRL + ALT + T
Run Code Online (Sandbox Code Playgroud)
我不得不通过 dpkg 安装软件包,因为 apt-get 由于依赖关系损坏而无法工作
sudo dpkg -i synaptic_0.81.1_amd64.deb
Run Code Online (Sandbox Code Playgroud)
完成后,我打开了在终端中运行以下内容的突触
sudo synaptic
Run Code Online (Sandbox Code Playgroud)
在 Synaptic 包管理器中
点击 Status Tab
然后单击Broken并选择损坏的包。并Mark for Complete Removal继续应用更改。
我还确保通过在终端中使用以下内容完全删除了所有内容
sudo apt-get autoremove
Run Code Online (Sandbox Code Playgroud)
并在突触包管理器中仔细检查包
没有剩余的 libre Office 软件包,所以我继续通过 Ubuntu 软件中心安装 Libre Office
| 归档时间: |
|
| 查看次数: |
12881 次 |
| 最近记录: |