間接依存パッケージを削除する方法

間接依存パッケージを削除する方法

/usr/bin/jupyterバイナリパッケージを削除したいです。ついに:

$ pacman -Qo /usr/bin/jupyter
/usr/bin/jupyter is owned by python-jupyter_core 4.11.0-1
$ pacman -R python-jupyter_core
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing python-jupyter_core breaks dependency 'python-jupyter_core' required by jupyter-nbformat
:: removing python-jupyter_core breaks dependency 'python-jupyter_core' required by python-jupyter_client

これは、このパッケージが別のパッケージによってインストールされたことを示しています。それからpactreeを使って次のことを見つけました。

$ pactree -r python-jupyter_core
python-jupyter_core
├─jupyter-nbformat
│ └─jupyter-nbclient
└─python-jupyter_client
  ├─jupyter-nbclient
  └─python-ipykernel
    └─python-jupyter_client

ただし、ツリーの先頭を削除しようとすると、依存関係python-jupyter_client警告が再表示されます。

$ pacman -R python-jupyter_client
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing python-jupyter_client breaks dependency 'python-jupyter_client' required by jupyter-nbclient
:: removing python-jupyter_client breaks dependency 'python-jupyter_client' required by python-ipykernel

インストールを引き起こしたパッケージをどのように削除しますか/usr/bin/jupyter

ベストアンサー1

with(賢明なアイデアではない)を使っjupyterてインストールしたようです。ついに:pipsudo

$ sudo pip uninstall jupyter-core

それが答えです。

おすすめ記事