Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Debian Stretch中的依赖性问题_Debian_Apt_Debian Stretch - Fatal编程技术网

Debian Stretch中的依赖性问题

Debian Stretch中的依赖性问题,debian,apt,debian-stretch,Debian,Apt,Debian Stretch,我安装了一个全新的Debian GNU/Linux 9(stretch)。 我已经安装了python3.7.2和一些python包。 在尝试使用sudo-apt-get-install-python3-spyder安装spyder3之后,每当我尝试安装或删除软件包时,都会收到错误消息 例如,运行sudo apt get install unixodbc会给出以下输出: ~$ sudo apt-get install unixodbc Reading package lists... Done B

我安装了一个全新的Debian GNU/Linux 9(stretch)。 我已经安装了python3.7.2和一些python包。 在尝试使用
sudo-apt-get-install-python3-spyder
安装spyder3之后,每当我尝试安装或删除软件包时,都会收到错误消息

例如,运行
sudo apt get install unixodbc
会给出以下输出:

~$ sudo apt-get install unixodbc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
unixodbc is already the newest version (2.3.4-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
12 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up python-wrapt (1.9.0-2) ...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
dpkg: error processing package python-wrapt (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python-isort (4.2.5+ds1-2+deb9u1) ...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
dpkg: error processing package python-isort (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python-lazy-object-proxy (1.2.2-1) ...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
dpkg: error processing package python-lazy-object-proxy (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pylint:
 pylint depends on python-isort; however:
  Package python-isort is not configured yet.

dpkg: error processing package pylint (--configure):
 dependency problems - leaving unconfigured
Setting up python-backports.functools-lru-cache (1.3-1) ...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
dpkg: error processing package python-backports.functools-lru-cache (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python-pyflakes (1.3.0-1) ...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
dpkg: error processing package python-pyflakes (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3-spyder:
 python3-spyder depends on pylint; however:
  Package pylint is not configured yet.

dpkg: error processing package python3-spyder (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-astroid:
 python-astroid depends on python-lazy-object-proxy; however:
  Package python-lazy-object-proxy is not configured yet.
 python-astroid depends on python-wrapt; however:
  Package python-wrapt is not configured yet.

dpkg: error processing package python-astroid (--configure):
 dependency problems - leaving unconfigured
Setting up python-sip (4.18.1+dfsg-2) ...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
dpkg: error processing package python-sip (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python-pyqt5:
 python-pyqt5 depends on sip-api-11.3; however:
  Package sip-api-11.3 is not installed.
  Package python-sip which provides sip-api-11.3 is not configured yet.

dpkg: error processing package python-pyqt5 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pyflakes:
 pyflakes depends on python-pyflakes (>= 1.0.0-2); however:
  Package python-pyflakes is not configured yet.

dpkg: error processing package pyflakes (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-pyqt5.qtwebkit:
 python-pyqt5.qtwebkit depends on python-pyqt5 (= 5.7+dfsg-5); however:
  Package python-pyqt5 is not configured yet.

dpkg: error processing package python-pyqt5.qtwebkit (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-wrapt
 python-isort
 python-lazy-object-proxy
 pylint
 python-backports.functools-lru-cache
 python-pyflakes
 python3-spyder
 python-astroid
 python-sip
 python-pyqt5
 pyflakes
 python-pyqt5.qtwebkit
E: Sub-process /usr/bin/dpkg returned an error code (1)
~$sudo apt get安装unixodbc
正在阅读软件包列表。。。多恩
构建依赖树
正在读取状态信息。。。多恩
unixodbc已经是最新版本(2.3.4-1)。
0已升级,0已新安装,0已删除,0未升级。
12未完全安装或拆除。
执行此操作后,将使用0 B的额外磁盘空间。
你想继续吗?[Y/n]Y
正在设置python wrapt(1.9.0-2)。。。
回溯(最近一次呼叫最后一次):
文件“/usr/bin/pycompile”,第35行,在
从支持的debpython.version导入、debsorted、vrepr、\
文件“/usr/share/python/debpython/version.py”,第24行,在
从ConfigParser导入SafeConfigParser
ModuleNotFoundError:没有名为“ConfigParser”的模块
dpkg:处理包python wrapt(--configure)时出错:
安装的子进程安装后脚本返回错误退出状态1
正在设置python isort(4.2.5+ds1-2+deb9u1)。。。
回溯(最近一次呼叫最后一次):
文件“/usr/bin/pycompile”,第35行,在
从支持的debpython.version导入、debsorted、vrepr、\
文件“/usr/share/python/debpython/version.py”,第24行,在
从ConfigParser导入SafeConfigParser
ModuleNotFoundError:没有名为“ConfigParser”的模块
dpkg:处理包python isort(--configure)时出错:
安装的子进程安装后脚本返回错误退出状态1
正在设置python惰性对象代理(1.2.2-1)。。。
回溯(最近一次呼叫最后一次):
文件“/usr/bin/pycompile”,第35行,在
从支持的debpython.version导入、debsorted、vrepr、\
文件“/usr/share/python/debpython/version.py”,第24行,在
从ConfigParser导入SafeConfigParser
ModuleNotFoundError:没有名为“ConfigParser”的模块
dpkg:处理包python惰性对象代理时出错(--configure):
安装的子进程安装后脚本返回错误退出状态1
dpkg:依赖关系问题阻止配置pylint:
pylint依赖于pythonisort;然而:
尚未配置包python ISRT。
dpkg:处理包pylint(--configure)时出错:
依赖关系问题-保持未配置状态
正在设置python-backports.functools-lru-cache(1.3-1)。。。
回溯(最近一次呼叫最后一次):
文件“/usr/bin/pycompile”,第35行,在
从支持的debpython.version导入、debsorted、vrepr、\
文件“/usr/share/python/debpython/version.py”,第24行,在
从ConfigParser导入SafeConfigParser
ModuleNotFoundError:没有名为“ConfigParser”的模块
dpkg:处理包python-backports.functools-lru-cache(--configure)时出错:
安装的子进程安装后脚本返回错误退出状态1
正在设置python pyflakes(1.3.0-1)。。。
回溯(最近一次呼叫最后一次):
文件“/usr/bin/pycompile”,第35行,在
从支持的debpython.version导入、debsorted、vrepr、\
文件“/usr/share/python/debpython/version.py”,第24行,在
从ConfigParser导入SafeConfigParser
ModuleNotFoundError:没有名为“ConfigParser”的模块
dpkg:处理包python pyflakes(--configure)时出错:
安装的子进程安装后脚本返回错误退出状态1
dpkg:依赖关系问题阻止配置python3 spyder:
python3 spyder依赖于pylint;然而:
尚未配置包pylint。
dpkg:处理包python3 spyder(--configure)时出错:
依赖关系问题-保持未配置状态
dpkg:依赖关系问题阻止配置python astroid:
python astroid依赖于python惰性对象代理;然而:
尚未配置包python惰性对象代理。
python astroid依赖于python wrapt;然而:
尚未配置包python wrapt。
dpkg:错误处理包python astroid(--configure):
依赖关系问题-保持未配置状态
正在设置python sip(4.18.1+dfsg-2)。。。
回溯(最近一次呼叫最后一次):
文件“/usr/bin/pycompile”,第35行,在
从支持的debpython.version导入、debsorted、vrepr、\
文件“/usr/share/python/debpython/version.py”,第24行,在
从ConfigParser导入SafeConfigParser
ModuleNotFoundError:没有名为“ConfigParser”的模块
dpkg:处理程序包python sip(--configure)时出错:
安装的子进程安装后脚本返回错误退出状态1
dpkg:依赖关系问题阻止配置python-pyqt5:
python-pyqt5依赖于sip-api-11.3;然而:
未安装程序包sip-api-11.3。
尚未配置提供sip-api-11.3的包python sip。
dpkg:处理包python-pyqt5(--configure)时出错:
依赖关系问题-保持未配置状态
dpkg:依赖性问题阻止PyFlake的配置:
pyflakes依赖于python pyflakes(>=1.0.0-2);然而:
尚未配置包python pyflakes。
dpkg:处理程序包pyflakes时出错(--configure):
依赖关系问题-保持未配置状态
dpkg:依赖关系问题阻止配置python-pyqt5.qtwebkit:
python-pyqt5.qtwebkit依赖于python-pyqt5(=5.7+dfsg-5);然而:
尚未配置包python-pyqt5。
dpkg:处理包python-pyqt5.qtwebkit(--configure)时出错:
依赖关系问题-保持未配置状态
处理时遇到错误:
蟒蛇皮
python isort
python惰性对象代理
派林
python-backports.functools-lru-cache
蟒蛇鳞片
蟒蛇3号spyder
巨蟒星体
python sip
python-pyqt5
皮克斯
python-pyqt5.qtwebkit
E:子流程/usr/bin/dpkg返回错误代码(1)
这与我在运行
sudodpkg--configure-a
时得到的输出基本相同

我有三个
sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3.7 1
sudo update-alternatives --remove python /usr/local/bin/python3.7
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo dpkg --configure -a