尝试删除并重新安装 LibreOffice 失败

尝试删除并重新安装 LibreOffice 失败

我迫切需要在我的系统 (Ubuntu 16.04) 上安装并使用 LibreOffice。我曾尝试使用终端自行安装它,可能使用 (具体不记得了):

sudo apt-get install libreoffice

但是我无法找到并打开任何 libreoffice 软件。因此,我尝试使用 Ubuntu 软件管理器 GUI 来安装它。在搜索“libreoffice”时,管理器显示了“删除”程序的选项:writer、calc、draw、impress 和 base;表明这些程序已经安装。但是我无法使用终端 ie 打开它们,方法是输入:

libreoffice writer

因此我在终端中运行了以下内容(图 2 中的终端行从图 1 中的最后一行开始)。抱歉,由于我的“声誉点数”不足,我无法截取超过两张屏幕截图,因此我编写了在终端屏幕截图 1 之前显示的终端行(但此文本框和随后发布的材料的格式很荒谬):

vascofmbull@vascofmbull-ThinkPad-S2:~$** sudo dpkg -r libreoffice
[sudo] password for vascofmbull: 
(Reading database ... 219354 files and directories currently installed.)
Removing libreoffice (1:5.2.2-0ubuntu1~xenial0) ...

vascofmbull@vascofmbull-ThinkPad-S2:~$ man dpkg
vascofmbull@vascofmbull-ThinkPad-S2:~$ libreoffice
The program 'libreoffice' is currently not installed. You can install it by typing:
sudo apt install libreoffice-common
vascofmbull@vascofmbull-ThinkPad-S2:~$ sudo apt install libreoffice-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-dejavu fonts-sil-gentium fonts-sil-gentium-basic libabw-0.1-1v5
  libcdr-0.1-1 libcmis-0.5-5v5 libe-book-0.1-1 libeot0 libetonyek-0.1-1
  libfreehand-0.1-1 libmspub-0.1-1 libmwaw-0.3-3 libodfgen-0.1-1
  liborcus-0.10-0v5 libpagemaker-0.0-0 libreoffice-gtk
  libreoffice-report-builder-bin librevenge-0.0-0 libvisio-0.1-1
  libwpd-0.10-10 libwpg-0.3-3 libwps-0.4-4
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  libreoffice-style-breeze 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 to upgrade, 1 to newly install, 0 to remove and 135 not to upgrade.
65 not fully installed or removed.
Need to get 0 B/22.5 MB of archives.
After this operation, 85.4 MB of additional disk space will be used.
(Reading database ... 219351 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a5.2.2-0ubuntu1~xenial0_all.deb ...
Unpacking libreoffice-common (1:5.2.2-0ubuntu1~xenial0) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.2.2-0ubuntu1~xenial0_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-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...

终端截图 1 终端截图2

我很抱歉在航站楼造成了混乱。但我认为最好把我所做的一切都展示出来。

关于如何在我的系统上安装和使用 libreoffice 有什么建议吗?

答案1

从官方网站下载 LibreOffice 并使用以下方式安装sudo dpkg -i (the .deb file name)

相关内容