我使用的是具有 8GB 空間的 AWS 免費套餐伺服器。我嘗試安裝 Texlive-full,但在安裝完成之前空間不足。然後我嘗試運行:
sudo apt-get --purge remove texlive-full
但我收到一條錯誤訊息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
zathura-pdf-poppler : Depends: zathura-abi-2gtk3
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
所以,我接下來跑了
sudo apt-get -f install
結果是:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-aws-headers-4.4.0-1020 linux-aws-headers-4.4.0-1022 linux-aws-headers-4.4.0-1026 linux-aws-headers-4.4.0-1028
linux-aws-headers-4.4.0-1030 linux-aws-headers-4.4.0-1031 linux-headers-4.4.0-1020-aws linux-headers-4.4.0-1022-aws
linux-headers-4.4.0-1026-aws linux-headers-4.4.0-1028-aws linux-headers-4.4.0-1030-aws linux-headers-4.4.0-1031-aws
linux-image-4.4.0-1020-aws linux-image-4.4.0-1022-aws linux-image-4.4.0-1026-aws linux-image-4.4.0-1028-aws linux-image-4.4.0-1030-aws
linux-image-4.4.0-1031-aws
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
texlive-fonts-extra texlive-fonts-extra-doc texlive-games texlive-generic-extra texlive-htmlxml texlive-humanities
texlive-humanities-doc texlive-lang-african texlive-lang-arabic texlive-lang-chinese texlive-lang-cjk texlive-lang-cyrillic
texlive-lang-czechslovak texlive-lang-english texlive-lang-european texlive-lang-french texlive-lang-german texlive-lang-greek
texlive-lang-indic texlive-lang-italian texlive-lang-japanese texlive-lang-korean texlive-lang-polish texlive-lang-portuguese
texlive-lang-spanish texlive-latex-extra-doc texlive-luatex texlive-math-extra texlive-metapost-doc texlive-music texlive-omega
texlive-plain-extra texlive-publishers texlive-publishers-doc texlive-science texlive-science-doc zathura
Suggested packages:
www-browser zathura-ps zathura-djvu zathura-cb
The following NEW packages will be installed:
texlive-fonts-extra texlive-fonts-extra-doc texlive-games texlive-generic-extra texlive-htmlxml texlive-humanities
texlive-humanities-doc texlive-lang-african texlive-lang-arabic texlive-lang-chinese texlive-lang-cjk texlive-lang-cyrillic
texlive-lang-czechslovak texlive-lang-english texlive-lang-european texlive-lang-french texlive-lang-german texlive-lang-greek
texlive-lang-indic texlive-lang-italian texlive-lang-japanese texlive-lang-korean texlive-lang-polish texlive-lang-portuguese
texlive-lang-spanish texlive-latex-extra-doc texlive-luatex texlive-math-extra texlive-metapost-doc texlive-music texlive-omega
texlive-plain-extra texlive-publishers texlive-publishers-doc texlive-science texlive-science-doc zathura
0 upgraded, 37 newly installed, 0 to remove and 61 not upgraded.
2 not fully installed or removed.
Need to get 1,281 MB of archives.
After this operation, 2,436 MB of additional disk space will be used.
Do you want to continue? [Y/n]
此時的問題是我沒有足夠的空間來繼續...我大約還缺 600MB。我可能可以向 AWS 付費來擴大儲存空間,至少是暫時的,但我寧願不這樣做。
我嘗試透過運行 apt-get clean、apt-get autoclean 等來釋放空間,但它沒有釋放足夠的空間。
所以,事情處於“半安裝”狀態,我無法前進或後退。
關於如何解決這個問題有什麼想法嗎?謝謝你!