apt autoremove 損壞後如何修復 Libreoffice?

apt autoremove 損壞後如何修復 Libreoffice?

我在我的電腦上安裝 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 相關的部分,其餘的都可以。

為什麼 autoremove 會做這樣的事?

先感謝您!

答案1

使用 GUI 安裝 LibreOffice

打開軟體中心,搜尋 LibreOffice,然後安裝。

使用 CLI

打開終端機並輸入命令

sudo apt install libreoffice

為什麼 autoremove 會做這樣的事?

這是不應該發生的。我不知道為什麼會這樣。從日誌來看,您似乎使用的是 LibreOffice PPA,但這也不應該導致問題。我也在使用該 PPA,但 autoremove 從未建議刪除 LibreOffice。

相關內容