web-dev-qa-db-ja.com

仮想パッケージを完全に削除する方法は?

apt-getを使用して仮想パッケージを削除すると、パッケージ自体のみが削除され、インストールされた実際のパッケージが残ります。

それでは、仮想パッケージと、それがインストールするすべての実際のパッケージをどのように削除しますか?

5
Flint

apt-cache dependsを使用して、仮想パッケージに「含まれている」パッケージのリストを検索し、それらをすべて削除して、仮想パッケージを削除します。例えば:

$ Sudo apt-cache depends mono-complete
mono-complete
  Depends: mono-runtime
  Depends: mono-runtime-sgen
  Depends: libmono-2.0-1
  Depends: libmono-profiler
  Depends: mono-utils
  Depends: mono-jay
  Depends: mono-devel
  Depends: mono-mcs
  Depends: mono-csharp-Shell
  Depends: mono-4.0-gac
  Depends: mono-4.0-service
  Depends: monodoc-base
  Depends: monodoc-manual
  Depends: libmono-cil-dev
  Depends: ca-certificates-mono

あとは、Sudo apt-get removeの後にリストされているすべてのパッケージDepends:が必要です。一度実行すると、仮想パッケージmono-completeが自動的に削除されます。

最初にSudo apt-cache dependsコマンドを実行して、すべての依存パッケージを確認し、次にパッケージのリストで削除してもよいと思われる場合は、これを使用してすべてを削除できます。

$ Sudo apt-get remove `apt-cache depends mono-complete | grep Depends | cut -d : -f 2`

ジョブが完了したら、次を使用して仮想パッケージのステータスを確認できます。

$ dpkg -l mono-complete

インストール済み(n)otとしてマークする必要があります。

6
nidalpres

「仮想」パッケージは、他のパッケージへの参照のみを含むパッケージ、またはカスタマイズされた構成ファイルのみを含むパッケージ

したがって、仮想パッケージを削除することはできません。「仮想」パッケージの参照元または作成元であるrealパッケージを削除する必要があります。

5
Peachy

仮想パッケージを個別に削除することはできません。実際のパッケージを完全に削除すると、仮想パッケージが自動的に削除されます。 apt-get purgeコマンドを使用する必要があるパッケージを削除して、構成ファイルを削除します。

2
Ketan Patel

これらの答えは問題を解決しませんでした。質問は「それらを削除できますか」です。答えはイエスでしたが、それらを削除するコマンドを提供しませんでした。彼らはそれらを削除することはできませんそれらをインストールしているコンピュータ端末の問題を指しますか?次に、これはバグであるか、この質問に対する回答がありません。

私は同じ問題を抱えています-

プロンプトに従ってapt-get purgeに続いてpurge -fに進み、以下を取得しました。

次のパッケージには、満たされていない依存関係があります。

      google-chrome-stable:i386 : Depends: libasound2:i386 (>= 1.0.23) but it is not installed

                         Depends: libatk1.0-0:i386 (>= 1.12.4) but it is not installed

                         Depends: libcairo2:i386 (>= 1.6.0) but it is not installed

                         Depends: libcups2:i386 (>= 1.4.0) but it is not installed

                         Depends: libfontconfig1:i386 (>= 2.8.0) but it is not installed

                         Depends: libgconf-2-4:i386 (>= 2.31.1) but it is not installed

                         Depends: libgcrypt11:i386 (>= 1.4.5) but it is not installed

                         Depends: libgdk-pixbuf2.0-0:i386 (>= 2.22.0) but it is not installed

                         Depends: libglib2.0-0:i386 (>= 2.18.0) but it is not installed

                         Depends: libgtk2.0-0:i386 (>= 2.24.0) but it is not installed

                         Depends: libnspr4:i386 (>= 1.8.0.10) but it is not installed

                         Depends: libnss3:i386 (>= 3.14.3) but it is not installed

                         Depends: libpango1.0-0:i386 (>= 1.22.0) but it is not installed

                         Depends: libudev0:i386 (>= 147) but it is not installed or

                                  libudev1:i386 (>= 198) but it is not installable

                         Depends: libxcomposite1:i386 (>= 1:0.3-1) but it is not installed

                         Depends: libxi6:i386 (>= 2:1.2.99.4) but it is not installed
                         Depends: libxss1:i386 but it is not installed
                         Depends: libxtst6:i386 but it is not installed
                         Depends: libcurl3:i386 but it is not installed
                         Depends: xdg-utils:i386 (>= 1.0.2) but it is not installable

E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by    held packages.        

E: Unable to correct dependencies

別のchromeパッケージをインストールできるように仮想パッケージを削除することに対する回答はありますか?

これは元の質問ではありません。しかし、仮想パッケージを完全に削除する方法の問題を解決しようとして失敗したため、これはほぼ同じです。

私はすでにAptitudeをインストールしており、Aptitudeの提案はChromiumの削除でした。 Chromiumは仮想パッケージです。 AptitudeはChromiumを削除しました。これは仮想の残りなので、再インストールできます。

したがって、Aptitudeをインストールし、Sudo aptitudeをターミナルに入力してPackage Resolver> Remove> "package name"を選択してPackage Resolverを使用することをお勧めします。

1

Ubuntuアプリストアから仮想環境(ワインなど)をインストールした場合は、Ubuntuアプリストアからそのようなインストールを削除することもできます。プロセスが少し簡単になります。

0
Favor George