apt-get update를 실행한 후 패키지를 설치할 수 없습니다.
# dpkg --configure -a
dpkg: dependency problems prevent configuration of libperl5.22:amd64:
libperl5.22:amd64 depends on perl-modules-5.22 (>= 5.22.1-9ubuntu0.2); however:
Version of perl-modules-5.22 on system is 5.22.1-9.
dpkg: error processing package libperl5.22:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of perl:
perl depends on perl-modules-5.22 (>= 5.22.1-9ubuntu0.2); however:
Version of perl-modules-5.22 on system is 5.22.1-9.
perl depends on libperl5.22 (= 5.22.1-9ubuntu0.2); however:
Package libperl5.22:amd64 is not configured yet.
dpkg: error processing package perl (--configure):
dependency problems - leaving unconfigured
dpkg: error processing package perl-modules-5.22 (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Errors were encountered while processing:
libperl5.22:amd64
perl
perl-modules-5.22
문제를 해결하는 방법?
답변1
오류 메시지에서 알 수 있듯이 다음 명령을 사용하여 응용 프로그램을 다시 설치할 수 있습니다.
sudo apt-get install --reinstall perl-modules-5.22
답변2
"perl-base" 패키지를 다시 설치해 보세요.
apt-get --reinstall install perl-base