Debian: Python パッケージのインストール: apt-get または apt-src?

Debian: Python パッケージのインストール: apt-get または apt-src?

mutagen以下に基づいてパッケージをインストールしようとしていますapt-cache

$ apt-cache madison mutagen
   mutagen |   1.40.0-2 | http://deb.debian.org/debian buster/main Sources

apt-get配送されない商品:

$ sudo apt-get install mutagen
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package mutagen

私は試しましたapt-src

$ sudo apt-src install mutagen

その結果は悲惨だった。それは壮大なショーを展開し、明らかにPython全体とすべてのもの(すでにシステムに存在する)をインストールしました。

それで、(a)損傷部分を見つけて取り除き、(b)突然変異誘発物質を正しい方法で設置する必要がありました。どうすればいいですか?

ベストアンサー1

mutagen |   1.40.0-2 | http://deb.debian.org/debian buster/main Sources

これがmutagenバイナリパッケージではなくソースパッケージであるとしましょう。 Pythonモジュールをインストールするには、関連するapt-getバイナリパッケージを見つける必要があります。

apt showsrc mutagen

それらをリストします。欲しいかもしれません

sudo apt install python3-mutagen

または

sudo apt install python-mutagen

インストールするPythonのバージョンによって異なります。

テスト後のクリーンアップには、sudo apt-src install不要なビルド依存関係を削除する作業が含まれます。上記Build-Dependsの出力の行を見て、不要とapt showsrc思われるパッケージを削除します。良い方法は、そのパッケージをサイレントインストールとしてマークしてから自動的にアンインストールすることです。

sudo apt-mark auto debhelper dh-python faad flac libc-bin oggz-tools pypy pypy-hypothesis pypy-pytest python-all python-docutils python-hypothesis python-pycodestyle python-pyflakes python-pytest python2.7-doc python3-all python3-hypothesis python3-pycodestyle python3-pyflakes python3-pytest python3-sphinx python3-sphinx-rtd-theme python3.7-doc vorbis-tools
sudo apt autoremove

おすすめ記事