Post

E dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem 해결방법

error massage

장고와 MySQL을 연결하기 위해서 패키지가 하나 필요해서 설치를 할려고 하는데 위와 같은 에러가 나왔다.

1
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

일단 그대로 매뉴얼대로 <sudo dpkg –configure -a>를 입력하고 다시 설치 명령어를 쳤다.

img1 dpkg

지난번에 구글 크롬 깔다가 뻑나서 강제종료 했는데 이 부분이 문제가 생긴거 같다.

unpack

그럼 그렇지… 재설치해도 문제는 똑같다. 20%에서 멈추고 진행이 되지 않는다.

결국 문제는 구글 크롬설치?로 가는거 같다.

1
2
3
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

sudo apt install ./google-chrome-stable_current_amd64.deb

우분투에서 크롬을 설치하는 방법은 위 명령어를 차례로 입력하면 되지만

그래도 여전히 설치는 실패했고 다른 것은 설치할 수 없었다. 그러면 지워보자

1
sudo dpkg --remove --force-remove-reinstreq google-chrome-stable

이거는 잘 작동된다!

sudo apt-get update로 다시 최신화를 하고

ubunt update

1
sudo apt-get -y install libmysqlclient-dev

다시 libmysqlclient를 설치해보자

result

설치 끝!

결론 : 패키지 꼬임

This post is licensed under CC BY 4.0 by the author.