우분투에서 아래의 파일들이 삭제가 안됩니다.
우분투 서버 16.04 lts를 이용 중입니다.
파이썬2는 없이 파이썬3만 깔리는 것으로 알고 있는데 설치 후 보니 둘 다 있더군요.
그런데 vsftpd를 설치하다가 일부 .deb 파일들 때문에 모든 설치가 오류로 끝나는 걸 알게 됐습니다.
삭제도 안되고 재설치도 안되고 모든 설치가 끝에 에러가 납니다.
공인IP로 바꾸려고 N/W 재실행도 안되고...
파일들은 /var/cache/apt/archives/ 아래에 있는 이겁니다.
apport_2.20.1-0ubuntu2.10_all.deb
python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.9_amd64.deb
삭제, 설치 clean autoclean 별거 다해봐도 안되고 루트로 삭제해도 조금 후 다시 보이더군요.
16.04 웍스테이션 쓸 때 파이썬 2를 한번 삭제했었는데..., 이번엔 함부로 그렇게 못해보겠고
지금 파이썬2로 venv를 바꿔보는 중인데, 참 갑갑하네요.
읽어주셔서 감사합니다. 혹시 삭제할 방법이나 도움말 좀 부탁드릴께요.
에러 메시지는 아래와 같습니다.
수고하세요.
Do you want to continue? [Y/n] Y
(Reading database ... 238997 files and directories currently installed.)
Preparing to unpack .../python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.9_amd64.deb ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.9_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../apport_2.20.1-0ubuntu2.10_all.deb ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/apport_2.20.1-0ubuntu2.10_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.9_amd64.deb
/var/cache/apt/archives/apport_2.20.1-0ubuntu2.10_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
댓글 달기