Google Chrome 제거 시 오류 발생

Google Chrome 제거 시 오류 발생

Google Chrome을 업데이트하거나 제거할 수 없습니다. 이 오류가 발생합니다.

Setting up google-chrome-stable (36.0.1985.125-1) ...
xdg-icon-resource: size argument must be numeric
Try 'xdg-icon-resource --help' for more information.
dpkg: error processing package google-chrome-stable (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 google-chrome-stable
E: Sub-process /usr/bin/dpkg returned an error code (1)

예전에 구글 크롬의 기본 아이콘을 변경하고 교체했던 기억이 나네요. 이 문제를 어떻게 해결하나요?

답변1

오류와 에 대한 언급을 바탕으로 post-installation script설치조차 성공적으로 완료되지 않았다고 말할 수 있습니다. sudo dpkg --purge --force-all google-chrome-stable그것을 제거하려면 실행해야합니다 .

편집: 을 실행 gksudo gedit /var/lib/dpkg/info/google-chrome-stable.postinst하고 를 #호출하는 줄 앞에 를 추가합니다 xdg-icon-resource. 저장한 후 패키지를 다시 제거해 보세요.

답변2

나에게 도움이 된 것은 xdg-utils 패키지를 설치하고, 크롬을 제거하고, 모든 작업이 완료되면 xdg.utils 패키지를 제거하는 것이었습니다.

  1. 냠 xdg-utils 설치
  2. 냠 구글 크롬 제거해
  3. 냠 xdg-utils를 제거하세요

답변3

응답여기나를 도와 주었다,

/var/lib/dpkg/info/google-chrome-stable.prerm동일한 방식으로 수정해야 한다는 점을 제외하면 @saiarcot895와 매우 유사합니다 .

관련 정보