본문으로 바로가기

dpkg python 패키지 처리오류

category 오류 발생 및 해결 2021. 1. 20. 16:06
반응형

** 오류발생 **

dpkg: error processing package python3-xdg (--configure): package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-lockfile (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-xdg (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
처리하는데 오류가 발생했습니다:
python-lockfile
python-xdg
python3-xdg 

파이썬 설치 중 오류발생

 

 

 

** 해결방법 **

 

1. 기존 파이썬에 연결된 심볼릭 링크 제거

# update-alternatives --remove [이름] [경로]
# update-alternatives --remove python /etc/alternatives/python 

 

2. python 기존 심볼릭 링크 복원

# rm /usr/bin/python
# ln -sf /usr/bin/python2.7 /usr/bin/python
# do-release-upgrade 

 

 

반응형