![apt autoremove 损坏 Libreoffice 后,我该如何修复它?](https://linux22.com/image/1070584/apt%20autoremove%20%E6%8D%9F%E5%9D%8F%20Libreoffice%20%E5%90%8E%EF%BC%8C%E6%88%91%E8%AF%A5%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%E5%AE%83%EF%BC%9F.png)
我在我的电脑上安装 R 和 RStudio,因为我的课程需要它们,当我使用终端执行此操作时,系统建议我使用自动删除功能删除一堆文件。我想“系统比我更了解,对吧?”然后我继续操作。现在我觉得 Libreoffice 并没有完全按照预期运行。
这是检查 file:///var/log/apt/history.log 的结果:
Start-Date: 2021-04-29 14:58:12
Commandline: apt autoremove
Requested-By: marco (1000)
Remove: firebird3.0-server-core:amd64 (3.0.2.32703.ds4-11ubuntu2),
libreoffice-math:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), liblibreoffice-java:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libhsqldb1.8.0-java:amd64
(1.8.0.10+dfsg-10~18.04), libgpgmepp6:amd64 (1.10.0-1ubuntu2),
liblangtag-common:amd64 (0.6.2-1), libservlet3.1-java:amd64 (1:4.0.1-2~18.04), uno-libs-private:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1),
libreoffice-sdbc-postgresql:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libexttextcat-data:amd64 (3.4.5-1), libreoffice-sdbc-mysql:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libuno-salhelpergcc3-3:amd64
(1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libjsp-api-java:amd64 (2.3.4-2~18.04), libreoffice-java-common:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libclucene-contribs1v5:amd64 (2.3.3.4+dfsg-1), libtommath1:amd64 (1.0.1-1), libreoffice-core:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libcommons-logging-java:amd64 (1.2-2), libexttextcat-2.0-0:amd64 (3.4.5-1), liblangtag1:amd64 (0.6.2-1), librdf0:amd64 (1.0.17-1.1), libyajl2:amd64 (2.1.0-2build1), libfbclient2:amd64 (3.0.2.32703.ds4-11ubuntu2), ure-java:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libreoffice-sdbc-firebird:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libpq5:amd64 (10.16-0ubuntu0.18.04.1), python3-uno:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libapache-pom-java:amd64 (18-1), libuno-cppuhelpergcc3-3:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), fonts-crosextra-carlito:amd64 (20130920-1), libreoffice-style-yaru:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libuno-purpenvhelpergcc3-3:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libboost-iostreams1.65.1:amd64 (1.65.1+dfsg-0ubuntu5), libreoffice-style-elementary:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libcommons-parent-java:amd64 (43-1),
libclucene-core1v5:amd64 (2.3.3.4+dfsg-1), libreoffice-style-colibre:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), ure:amd64
(1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libreoffice-sdbc-hsqldb:amd64
(1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), libreoffice-common:amd64
(1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), fonts-crosextra-caladea:amd64
(20130214-2), mysql-common:amd64 (5.8+1.0.4), libwebsocket-api-java:amd64
(1.1-1~18.04), libmhash2:amd64 (0.9.9.9-7), libboost-locale1.65.1:amd64
(1.65.1+dfsg-0ubuntu5), libservlet-api-java:amd64 (4.0.1-2~18.04),
libmysqlclient20:amd64 (5.7.33-0ubuntu0.18.04.1), libib-util:amd64
(3.0.2.32703.ds4-11ubuntu2), libuno-cppu3:amd64
(1:7.1.2~rc2-0ubuntu0.18.04.1~lo1), fonts-opensymbol:amd64
(2:102.12+LibO7.1.2~rc2-0ubuntu0.18.04.1~lo1), libboost-filesystem1.65.1:amd64 (1.65.1+dfsg-0ubuntu5),
libel-api-java:amd64 (3.0.0-2~18.04), linux-hwe-5.4-headers-5.4.0-67:amd64
(5.4.0-67.75~18.04.1), linux-hwe-5.4-headers-5.4.0-70:amd64
(5.4.0-70.78~18.04.1), libuno-sal3:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1),
libraptor2-0:amd64 (2.0.14-1ubuntu0.18.04.1), librasqal3:amd64
(0.9.32-1build1), libunoloader-java:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1),
firebird3.0-common-doc:amd64 (3.0.2.32703.ds4-11ubuntu2), firebird3.0-common:amd64 (3.0.2.32703.ds4-11ubuntu2),
libboost-date-time1.65.1:amd64 (1.65.1+dfsg-0ubuntu5),
firebird3.0-utils:amd64 (3.0.2.32703.ds4-11ubuntu2),
libmythes-1.2-0:amd64 (2:1.2.4-3), fonts-liberation2:amd64 (2.00.1-7~18.04.2),
libreoffice-base-drivers:amd64 (1:7.1.2~rc2-0ubuntu0.18.04.1~lo1)
End-Date: 2021-04-29 15:00:03
我该如何修复?我只需要恢复与 Libreoffice 相关的部分,其余部分可以保留。
为什么自动删除会做这样的事情?!?
先感谢您!
答案1
使用 GUI 安装 LibreOffice
打开软件中心,搜索 LibreOffice 并安装。
使用 CLI
打开终端并输入命令
sudo apt install libreoffice
为什么自动删除会做这样的事情?!?
这不应该发生。我不知道为什么会发生这种情况。从日志来看,似乎你正在使用 LibreOffice PPA,但这也不应该导致问题。我也在使用该 PPA,但 autoremove 从未建议删除 LibreOffice。