IT INFO
[linux] [Ubuntu] Sub-process /usr/bin/dpkg returned an error code (1) 에러 해결 오류 해결
devlunch4
2022. 5. 13. 09:27
반응형
Sub-process /usr/bin/dpkg returned an error code (1)
윈도우내 우분투에 redis 설치중 명령어 실행을 해보았습니다.
관련 링크:
https://redis.io/docs/getting-started/installation/install-redis-on-windows/
Install Redis on Windows
Use Redis on Windows for development
redis.io
*명령어 실행
$ sudo apt-get upgrade
$ sudo apt-get upgrade
...
...
...
/usr/lib/x86_64-linux-gnu/libfakeroot:
libfakeroot-0.so -> libfakeroot-tcp.so
/usr/lib/wsl/lib:
/usr/local/lib:
/lib/x86_64-linux-gnu:
Aborted (core dumped)
dpkg: error processing package libc-bin (--configure):
installed libc-bin package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
이후 에러 문구를 확인할수 있었습니다.
"E: Sub-process /usr/bin/dpkg returned an error code (1)"
위 문장에 따라 해결을 해보았습니다.
* 해결 명령어
$ sudo rm /var/lib/dpkg/info/*
$ sudo dpkg --configure -a
$ sudo apt update -y
$ sudo rm /var/lib/dpkg/info/*
$ sudo dpkg --configure -a
$ sudo apt update -y
그리고 다시 명령어 재실행
$ sudo apt-get upgrade
$ sudo apt-get upgrade
중간에 잘 수행되다가 다른 문제로 또 생성이 되었습니다.
다시 위와 같이 명령어 실행후 진행하니 정상 해결 되었습니다.
반응형