ca-certificates-java 패키지를 처리하는 동안 "구조를 청소해야 합니다", apt-get / dpkg가 오류로 인해 손상되었습니다.

ca-certificates-java 패키지를 처리하는 동안 "구조를 청소해야 합니다", apt-get / dpkg가 오류로 인해 손상되었습니다.

더 이상 apt-get을 사용하여 설치/제거/재설치 또는 아무 작업도 수행할 수 없습니다. 예를 들어 내가 할 때:

sudo apt-get autoremove

나는 얻다:

    Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
2 not fully installed or removed.
Need to get 0 B/12.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: error processing package openjdk-11-jre-headless:amd64 (--configure):
 unable to check existence of '/var/lib/dpkg/info/ca-certificates-java.postinst': Structure needs cleaning
dpkg: dependency problems prevent configuration of ca-certificates-java:
 ca-certificates-java depends on openjdk-11-jre-headless | java8-runtime-headless; however:
  Package openjdk-11-jre-headless:amd64 is not configured yet.
  Package java8-runtime-headless is not installed.
  Package openjdk-8-jre-headless:amd64 which provides java8-runtime-headless is not installed.
  Package openjdk-11-jre-headless:amd64 which provides java8-runtime-headless is not configured yet.

dpkg: error processing package ca-certificates-java (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 openjdk-11-jre-headless:amd64
 ca-certificates-java
E: Sub-process /usr/bin/dpkg returned an error code (1)

다시 설치해도 작동하지 않습니다.

root@xubuntu:/var/cache/apt/archives# sudo apt-get install --reinstall oracle-java11-installer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  gsfonts-x11 oracle-java11-set-default
Suggested packages:
  binfmt-support visualvm ttf-baekmuk | ttf-unfonts | ttf-unfonts-core ttf-kochi-gothic | ttf-sazanami-gothic
  ttf-kochi-mincho | ttf-sazanami-mincho ttf-arphic-uming
The following packages will be REMOVED:
  openjdk-11-jre-headless
The following NEW packages will be installed:
  gsfonts-x11 oracle-java11-installer oracle-java11-set-default
0 upgraded, 3 newly installed, 1 to remove and 4 not upgraded.
2 not fully installed or removed.
Need to get 45.4 kB/57.6 kB of archives.
After this operation, 169 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu cosmic/universe amd64 gsfonts-x11 all 0.26 [7140 B]
Get:2 http://ppa.launchpad.net/linuxuprising/java/ubuntu cosmic/main amd64 oracle-java11-installer amd64 11.0.2-2~linuxuprising1 [35.1 kB]
Get:3 http://ppa.launchpad.net/linuxuprising/java/ubuntu cosmic/main amd64 oracle-java11-set-default amd64 11.0.2-2~linuxuprising1 [3116 B]
Fetched 45.4 kB in 0s (306 kB/s)               
Preconfiguring packages ...
dpkg: error processing package openjdk-11-jre-headless:amd64 (--remove):
 unable to check existence of '/var/lib/dpkg/info/ca-certificates-java.postinst': Structure needs cleaning
Errors were encountered while processing:
 openjdk-11-jre-headless:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

행위:

sudo apt-get purge openjdk-11-jre-headless

또는

sudo apt-get purge ca-certificate-java

또한 작동하지 않으며 ca-certificates-java를 처리하는 동안 유사한 문제가 발생합니다. 내 상황에 대한 해결책이 있나요?

편집하다

영향을 받는 장치는 casper-rw fs입니다.

sdd              28.7G                        
├─sdd1 ntfs      28.7G /isodevice             UUI
└─sdd4 ext2      12.2G                        casper-rw

따라서 fsck작동하지 않습니다.

관련 정보