我试着安装了一个mutagen包,根据apt-cache:
$ apt-cache madison mutagen
mutagen | 1.40.0-2 | http://deb.debian.org/debian buster/main Sourcesapt-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)安装诱变剂的正确方式。我该怎么做呢?
发布于 2019-03-24 10:58:17
诱变剂/主要来源:http://deb.debian.org/debian诱变剂1.40.0-2
说mutagen是一个源包,而不是二进制包。如果要使用apt-get安装Python模块,则需要找到相关的二进制包;
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 autoremovehttps://unix.stackexchange.com/questions/508293
复制相似问题