Divide and Conquer

E: Sub-process /usr/bin/dpkg returned an error code (2) 본문

2025/ROS

E: Sub-process /usr/bin/dpkg returned an error code (2)

10살 2022. 5. 6. 12:04
728x90

Linux에서 패키지를 설치할 때 사용하는 패키지 매니저는 apt, dpkg가 있다
해당 오류가 뜨면 두 매니저 모두 사용할 수 없다
install 자체가 안 되기 때문에 패키지들간의 의존성 문제가 발생한다

sudo apt install -f
sudo dpkg — configure -a

위의 명령어로도 실행이 안 된다면 아래 명령어도 실행한다

sudo rm /var/lib/dpkg/info/*
sudo dpkg --configure -a
sudo apt update -y

출처: https://jellybeanz.medium.com/tip-sub-process-usr-bin-dpkg-%EC%97%90%EB%9F%AC-%ED%95%B4%EA%B2%B0-%EB%B0%A9%EB%B2%95-f2aaf33ca18c
https://corona-world.tistory.com/83

 

[Ubuntu] E:Sub-process /usr/bin/dpkg returned an error code (1) 오류 해결 방법

Operating System : Ubuntu 18.04.LTS - Raspberry pi 4 일단 이 E: Sub-process /usr/bin/dpkg returned an error code (1) 오류가 뜨면 dpkg 든 apt든 기능이 모두 죽는다. install 자체가 안되기 때문에 패키..

corona-world.tistory.com

그 이후 업데이트
그리고 info 시 너무 많다고 했을 때 어떻게 나눠서 설치하면 되는지 같이 적기(아래 사진을 코드로)

 

반응형
Comments