我正在运行一个带有Python 2.7.12的Ubuntu机器,Ubuntu 16.04.5 LTS \ n \ l。我正在遵循RFNOC入门过程Getting Started with RFNoC Development,该过程已于上周在另一台Ubuntu VM上成功完成。
相对于这些说明
1$ sudo apt-get install git
2$ sudo apt-get install python-setuptools python-dev python-pip build-essential
3$ sudo pip install git+https://github.com/gnuradio/pybombs.git
4$ pybombs recipes add gr-recipes git+https://github.com/gnuradio/gr-recipes.git
5$ pybombs recipes add ettus git+https://github.com/EttusResearch/ettus-pybombs.git
执行上面的第四条命令后,我发现如果我运行
pybombs recipes list
食谱已损坏
PyBOMBS.ConfigManager - INFO - Prefix Python version is: 2.7.12
PyBOMBS - INFO - PyBOMBS Version 2.3.3a0
Loading package information.......................
PyBOMBS.recipes - WARNING - **Recipe for `pygraphviz' is invalid.**
直接运行命令3之后,我可以执行食谱列表,并且可以成功查看10个食谱
Loading package information.............
Package Name Recipe Filename Installed By
-------------------------------------------------------------------------------------------------------------------
autoconf /usr/local/lib/python2.7/dist-packages/pybombs/recipes/autoconf.lwr -
automake /usr/local/lib/python2.7/dist-packages/pybombs/recipes/automake.lwr -
autotools-bootstrap /usr/local/lib/python2.7/dist-packages/pybombs/recipes/autotools-bootstrap.lwr -
build-essential /usr/local/lib/python2.7/dist-packages/pybombs/recipes/build-essential.lwr apt,cmd
cmake /usr/local/lib/python2.7/dist-packages/pybombs/recipes/cmake.lwr -
git /usr/local/lib/python2.7/dist-packages/pybombs/recipes/git.lwr apt,cmd
graphviz /usr/local/lib/python2.7/dist-packages/pybombs/recipes/graphviz.lwr -
python /usr/local/lib/python2.7/dist-packages/pybombs/recipes/python.lwr apt,cmd
python-requests /usr/local/lib/python2.7/dist-packages/pybombs/recipes/python-requests.lwr -
xz /usr/local/lib/python2.7/dist-packages/pybombs/recipes/xz.lwr apt,cmd
在运行第4条命令并在python 2.7上进行greping之后,我注意到graphviz不再具有与其关联的apt,cmd。
rich@pc:~$ pybombs recipes list |grep python2
PyBOMBS.ConfigManager - INFO - Prefix Python version is: 2.7.12
PyBOMBS - INFO - PyBOMBS Version 2.3.3a0
PyBOMBS.Packager.apt - INFO - Install python-apt to speed up apt processing.
PyBOMBS.recipes - WARNING - Recipe for `pygraphviz' is invalid.
autoconf /usr/local/lib/python2.7/dist-packages/pybombs/recipes/autoconf.lwr -
automake /usr/local/lib/python2.7/dist-packages/pybombs/recipes/automake.lwr -
autotools-bootstrap /usr/local/lib/python2.7/dist-packages/pybombs/recipes/autotools-bootstrap.lwr -
build-essential /usr/local/lib/python2.7/dist-packages/pybombs/recipes/build-essential.lwr apt,cmd
cmake /usr/local/lib/python2.7/dist-packages/pybombs/recipes/cmake.lwr -
git /usr/local/lib/python2.7/dist-packages/pybombs/recipes/git.lwr apt,cmd
graphviz /usr/local/lib/python2.7/dist-packages/pybombs/recipes/graphviz.lwr -
python-requests /usr/local/lib/python2.7/dist-packages/pybombs/recipes/python-requests.lwr -
xz /usr/local/lib/python2.7/dist-packages/pybombs/recipes/xz.lwr apt,cmd
那些python 2.7 dist-package配方在文件系统中存储为root:root,因此我不确定第4步中的非root命令如何能够破坏该配方。我试过几次卸载并重新安装pip和python。该行为是可重复的。
谁能说出PyBOMB根目录级配方如何被用户级安装破坏的本质?