한참 잘 쓰고 있데 upgrade시 에러가 발생해서 진행이 안되서 찾아보니 구글에서 다음과 같은 방법이 있길래 한글로 된문서가 없어 공유한다.

Setting up plymouth (0.9.0-7) ...

dpkg: error processing package plymouth (--configure):

 subprocess installed post-installation script returned error exit status 1

Errors were encountered while processing:

 plymouth

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


설치전 스크립트에서 발생한 에러여서 다음 부분을 다음과 같이 수정하면 정상처리 됨

# Automatically added by dh_installinit

if [ -x "/etc/init.d/plymouth" ]; then

        update-rc.d plymouth start 41 2 3 4 5 . stop 41 0 6 . >/dev/null || exit $?

fi

# End automatically added section

# Automatically added by dh_installinit

if [ -x "/etc/init.d/plymouth-log" ]; then

        update-rc.d plymouth-log start 40 S . >/dev/null || exit $?

fi


원래 어떻게 사용하는건지 모르겠어서 고칠 엄두가 안났는데 방법이 있어서 다행이다.

Posted by Mr.Jo :

업데이트시 다음과 같은 오류를 발생시키면서 업데이트가 안되길래 

Setting up udev (215-5+b1) ...

dpkg: error processing package udev (--configure):

 subprocess installed post-installation script returned error exit status 1

Errors were encountered while processing:

 udev

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



/var/lib/dpkg/info/udev.postinst 파일을 찾아보니 밑줄친 부분에서 에러가 발생해서 확인했더니 그룹이 이미 추가되어 있어서 주석처리 했더니 정상 동작

case "$1" in

    configure)

    # update/create hwdb before we (re)start udev

    update_hwdb

    

    # Add new system group used by udev rules

    #addgroup --quiet --system input


    if [ -z "$2" ]; then # first install

      if ! chrooted && ! in_debootstrap; then

        write_interfaces_rules

        enable_udev



버그가 있는경우가 종종 있지만 이렇게 사용자 수정에 의해 복구되는점이 매력인듯

Posted by Mr.Jo :