apt autoremove 移除很多還需要的軟體 - Linux

Carolina Franco avatar
By Carolina Franco
at 2018-04-24T22:48

Table of Contents

系統是 debian 9 stretch xfce4

之前沒有 apt autoremove 清理的習慣,
剛剛心血來潮一清,
結果一堆還有在使用的軟體都被清掉……。
包括 network-manager 、
libreoffice 的 impress draw calc 、
平常在用的 quodlibet 播放器。

在 /var/log/apt/history.log 可以查到,
全部移除的包如下:

coinor-libcbc3 coinor-libcgl1 coinor-libclp1 coinor-libcoinmp1v5
coinor-libcoinutils3v5 coinor-libosi1v5 dnsmasq-base espeak-ng-data exfalso
fonts-dejavu fonts-font-awesome fonts-lato fonts-linuxlibertine
fonts-sil-gentium fonts-sil-gentium-basic gir1.2-atspi-2.0
gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gtksource-3.0
gir1.2-javascriptcoregtk-4.0 gir1.2-keybinder-3.0 gir1.2-soup-2.4
gir1.2-webkit2-4.0 gir1.2-wnck-3.0 gnome-orca gstreamer1.0-plugins-ugly
hyphen-en-us iputils-arping libatk-adaptor libbsh-java libdotconf0
libespeak-ng1 libfreehand-0.1-1 libgpod-common libgpod4
libgtksourceview-3.0-1 libgtksourceview-3.0-common libjansson4
libjs-modernizr libjs-sphinxdoc libjs-underscore libm17n-0 libmbim-glib4
libmbim-proxy libmm-glib0 libmspub-0.1-1 libndp0 libnm0 libnma0
liborcus-0.11-0 libotf0 libpagemaker-0.0-0 libpcaudio0 libqmi-glib5
libqmi-proxy libreoffice libreoffice-avmedia-backend-gstreamer
libreoffice-calc libreoffice-draw libreoffice-gtk2 libreoffice-help-en-us
libreoffice-impress libreoffice-librelogo libreoffice-nlpsolver
libreoffice-ogltrans libreoffice-pdfimport libreoffice-script-provider-bsh
libreoffice-script-provider-js libreoffice-script-provider-python
libreoffice-wiki-publisher libsgutils2-2 libsidplay1v5 libsonic0 libspeechd2
libteamdctl0 libtidy5 libwnck-3-0 libwnck-3-common libxdg-basedir1
linux-headers-4.9.0-4-amd64 linux-headers-4.9.0-4-common
linux-image-4.9.0-4-amd64 lp-solve m17n-db media-player-info
mobile-broadband-provider-info modemmanager mythes-en-us network-manager
network-manager-gnome policykit-1-gnome python-feedparser python-libxml2
python-mutagen python-utidylib python3-brlapi python3-louis python3-pyatspi
python3-speechd python3-xdg quodlibet speech-dispatcher
speech-dispatcher-audio-plugins speech-dispatcher-espeak-ng
sphinx-rtd-theme-common xbrlapi xsane xsane-common

記得之前某次更新後,
每次使用 apt 提示可以 autoremove 的包就變成超長一串,
不過當時也沒有多注意,
也想不起來是哪時候了。

目前先手動裝一些回來:
libreoffice network-manager network-manager-gnome quodlibet ,
結果這幾個包的相依加一加就快把原本都裝回來了,
想比 autoremove 移除的包,少了這些:

espeak-ng-data gir1.2-atspi-2.0 gir1.2-wnck-3.0 gnome-orca hyphen-en-us
libatk-adaptor libdotconf0 libespeak-ng1 libm17n-0 libotf0 libpcaudio0
libreoffice-gtk2 libreoffice-help-en-us libsonic0 libspeechd2 libwnck-3-0
libwnck-3-common libxdg-basedir1 linux-headers-4.9.0-4-amd64
linux-headers-4.9.0-4-common linux-image-4.9.0-4-amd64 m17n-db
mythes-en-us python3-brlapi python3-louis python3-pyatspi python3-speechd
python3-xdg speech-dispatcher speech-dispatcher-audio-plugins
speech-dispatcher-espeak-ng sphinx-rtd-theme-common xbrlapi xsane xsane-common
fonts-dejavu fonts-font-awesome fonts-lato fonts-linuxlibertine
fonts-sil-gentium fonts-sil-gentium-basic

libreoffice 和 quodlibet 被移除可能是
xfce4 不再將 office 視為桌面的必要部份,
但怎麼都想不通 network-manager 會被移除。

有辦法可以從 apt 的歷史記錄看出
當初是什麼原因讓一堆包都被標為要被移除嗎?

還有現在 network-manager 和一些包變成手動安裝,
可是他們應該是要相依某個包才被安裝才對,
有什麼辦法可以修正回來嗎?


題外話,
autoremove 後忽然沒了 network-manager ,
就連網路都連不上,用手機查好久才成功用 ifup 連上 dhcp ,
apt 的進階操作也都不會,忽然覺得自己好廢……。


--
因為她不知道,唯一值得她流淚的人,絕不會讓她流淚。

--
Tags: Linux

All Comments

Emma avatar
By Emma
at 2018-04-25T07:22
請愛用 aptitude。有在用的按 m 消除 Auto 標籤
Jessica avatar
By Jessica
at 2018-04-30T03:18
更改套件狀態也可以用 apt-mark auto/manual
Barb Cronin avatar
By Barb Cronin
at 2018-04-30T09:03
可用二樓的方法處理。
George avatar
By George
at 2018-05-03T01:35
NetworkManager 的話也許看看最近有沒有刪過相關套件?
Adele avatar
By Adele
at 2018-05-06T18:53
用apt-get autoremove會有這問題很正常XD
Andrew avatar
By Andrew
at 2018-05-10T00:15
假設你常用的b套件是a套件的依存裝的 移a就會連b一起移XD
Todd Johnson avatar
By Todd Johnson
at 2018-05-14T01:59
所以用autoremove前要看清楚它的提示訊息
Franklin avatar
By Franklin
at 2018-05-16T23:05
如果看到要保留的就用2樓的apt-mark或apt-get install
再裝一次它就會切成manual了
Necoo avatar
By Necoo
at 2018-05-18T22:18
你的 debian 9 stretch xfce4 是用什麼方式安裝的?

Linux 遠端Xmanager連線問題(EDA環境)

Hedy avatar
By Hedy
at 2018-04-23T13:40
小弟最近建立完EDA的環境 Server端與Client端的連線沒有問題 client使用EDA軟體也沒有問題 但當我使用Xmanager4遠端連線 例如要開啟laker或是SOC Encounter 卻在遠端無法啟動軟體 有些可以執行 例如icfb 但是使用軟體卻馬上當機 但是一般安裝完EDA ...

新手在Lubuntu安裝軟體問題,請益

Wallis avatar
By Wallis
at 2018-04-23T12:02
※ 引述《wheado (principal component QQ)》之銘言: : 小弟初學 linux 系統,問題可能很白癡,但希望能夠多了解一點。 : 所選用的是比 Ubuntu 輕的 Lubuntu。 : 目的是單純的寫自己的程式(R, python, kotlin, android studio) ...

[firewall] CentOS7 安裝Samba 遇到的問題

Freda avatar
By Freda
at 2018-04-21T15:15
*註:我已經找到解決方法,只是想在這裡分享我怎麼解決問題。 大家好,之前伺服器炸掉 (也是用CentOS 7),所以就找個時間重灌。 但是SAMBA安裝好後,不管怎麼樣都沒有回應。 (測過手機、OSX High Sierra) 所以我開始尋找可能的問題。 1. 有可能是防火牆問題,所以我下nmap指 ...

Linux 雲端主機的範本建立(空間分配)

Catherine avatar
By Catherine
at 2018-04-20T16:04
最近在嘗試將一些雲端機做成範本 這裡有點關於 Linux 的空間問題希望可以請教一下~ 以前 Linux 空間都是切 /boot 200M 、swap = RAM * 2 剩下全丟給 / 但是現在雲端機想切 LVM (以便之後可以長大) 前面的文章有問過, 得到的建議是 /boot 、 uefi/boot ...

bluehost 不同PHP版本網站

Faithe avatar
By Faithe
at 2018-04-20T13:37
幾件事情先確認 Q1:貴公司使用的是哪個方案? A1:share hosting?(這可能無解,要看BH官方有沒有開放多個版本,我用Hostgator是可以) cloud hosting/vps hosting?(這兩個方案應該還有點希望,可以參考下面) ┌andgt;A=andgt;apa ...