그래서 Debian 컴퓨터에 Cython을 설치하려고 했는데 설치 중에 오류 코드가 표시되었습니다.
Sub-process /usr/bin/dpkg returned an error code (1)
지금은 순혈 전문대생으로서 그냥 잠에서 깨어나서 별 생각 없이 나중에 봐야겠다는 생각이 들었습니다. 하지만 이제 무엇이든 설치하거나 업데이트하려고 하면 apt-get이 다음을 제공합니다.
Errors were encountered while processing:
cython
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo dpkg --configure -a는 다음을 제공합니다.
Setting up cython (0.25.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
ImportError: No module named 'ConfigParser'
dpkg: error processing package cython (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
cython
sudo apt-get 설치 -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up cython (0.25.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
ImportError: No module named 'ConfigParser'
dpkg: error processing package cython (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
cython
E: Sub-process /usr/bin/dpkg returned an error code (1)
고양이/etc/apt/sources.list
#------------------------------------------------------------------------------#
# OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#
###### Debian Main Repos
deb http://deb.debian.org/debian/ stable main contrib
deb-src http://deb.debian.org/debian/ stable main contrib
deb http://deb.debian.org/debian/ stable-updates main contrib
deb-src http://deb.debian.org/debian/ stable-updates main contrib
deb http://deb.debian.org/debian-security stable/updates main
deb-src http://deb.debian.org/debian-security stable/updates main
deb http://ftp.debian.org/debian stretch-backports main
deb-src http://ftp.debian.org/debian stretch-backports main
답변1
차단을 해제하려면 패키지 apt
를 제거해야 합니다 cython
.
sudo apt purge cython
설치를 복구하는 cython
것은 좀 더 복잡할 수 있습니다(질문 설명 참조).