系統:Ubuntu 18.04
apt
卸載後不會刪除jackd
的依賴項jackd2
(及其自身的依賴項)jackd
:
$ sudo apt install jackd
The following additional packages will be installed:
jackd2 jackd2-firewire libconfig++9v5 libffado2 libglibmm-2.4-1v5 libsigc++-2.0-0v5 libxml++2.6-2v5 python-dbus python-gi qjackctl
$ sudo apt remove jackd
The following packages will be REMOVED:
jackd qjackctl
$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
$ sudo apt remove jackd2
The following packages were automatically installed and are no longer required:
libconfig++9v5 libffado2 libglibmm-2.4-1v5 libsigc++-2.0-0v5 libxml++2.6-2v5 python-dbus python-gi
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
jackd2 jackd2-firewire
$ sudo apt autoremove
The following packages will be REMOVED:
libconfig++9v5 libffado2 libglibmm-2.4-1v5 libsigc++-2.0-0v5 libxml++2.6-2v5 python-dbus python-gi
0 upgraded, 0 newly installed, 7 to remove and 15 not upgraded.
答案1
您的系統上可能安裝了另一個推薦或建議jackd2
.你可以用aptitude why jackd2
它來找出答案。
就我而言,它是blender
通過另一個依賴項的套件:
$ aptitude why jackd2
i blender Depends libjack-jackd2-0 (>= 1.9.10+20150825) | libjack-0.125
i A libjack-jackd2-0 Suggests jackd2 (= 1.9.12~dfsg-2+b1)
並且您的 apt 可能配置為將推薦和建議視為依賴項,其設定稱為APT::Autoremove::RecommendsImportant
和APT::Autoremove::SuggestsImportant
。
我建議保留第一個設置,但您可以安全地停用建議設置(但它仍然可能會卸載您想要保留的一些軟體包,在這種情況下取將它們標記為自動安裝)。
若要停用處理建議和依賴自動刪除的設定:
sudo apt-get autoremove -o APT::Autoremove::SuggestsImportant=0