dpkgはこれを見ることができますが、apt-getはそれを削除できませんか?

dpkgはこれを見ることができますが、apt-getはそれを削除できませんか?

(質問に似ているDebian からデフォルトの VBoxGuestAdditions を削除するしかし、Ubuntuがインストールされていますが、そこの解決策は私には適していませんか? )

実際、問題はvirtualboxやLinuxゲストの追加ではなくdpkg / apt-getにあるようです。

host:/media/VBOXADDITIONS_4.2.10_84104$ dpkg -l | grep virtualbox
rc  virtualbox-guest-utils                 4.1.12-dfsg-2ubuntu0.2                  x86 virtualization solution - non-X11 guest utilities
rc  virtualbox-guest-x11                   4.1.12-dfsg-2ubuntu0.2                  x86 virtualization solution - X11 guest utilities
host:/media/VBOXADDITIONS_4.2.10_84104$ sudo apt-get remove virtualbox-guest-utils virtualbox-guest-x11
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package virtualbox-guest-utils is not installed, so not removed


Package virtualbox-guest-x11 is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
host:/media/VBOXADDITIONS_4.2.10_84104$ sudo sh ./VBoxLinuxAdditions.run 
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.10 Guest Additions for Linux..........
VirtualBox Guest Additions installer
You appear to have a version of the VBoxGuestAdditions software
on your system which was installed from a different source or using a
different type of installer.  If you installed it from a package from your
Linux distribution or if it is a default part of the system then we strongly
recommend that you cancel this installation and remove it properly before
installing this version.  If this is simply an older or a damaged
installation you may safely proceed.

Do you wish to continue anyway? [yes or no]
no

Cancelling installation.

それで、dpkgはvirtualbox-guest-utilsとvirtualbox-guest-x11を見ることができますが、apt-getはそれを削除できませんか? !

ベストアンサー1

rc virtualbox-guest-utils 4.1.12-dfsg-2ubuntu0.2

この出力の最初の2つのフラグは、正確に何が起こっているのかを知らせます。

「r」は、パッケージが削除された状態であることを示します。技術的にはまだインストールされていますが、実際にはほとんどが消えています。

「c」は、プロファイルがまだインストールされていることを意味します。

man dpkg-query興味があれば、詳細を読んでください。

この状態(rc)は非常に一般的です。構成ファイルを含むパッケージを削除するたびに、ほぼ常にこの状態になります。

この問題を解決するには、または--purgeオプションを使用してその項目をクリーンアップします。dpkgapt-get remove

おすすめ記事