패키지 시스템이 손상된 경우 Ubuntu를 어떻게 업데이트합니까?

패키지 시스템이 손상된 경우 Ubuntu를 어떻게 업데이트합니까?

Ubuntu 기반 Gallium OS를 업데이트하려고 했는데 계속 오류 메시지가 나타납니다. 어떤 도움이라도 주시면 감사하겠습니다. 아래 오류 메시지의 스크린샷을 참조하세요.

에러 메시지.

터미널에서 실행했는데 sudo apt-get -f install다음 메시지를 받았습니다.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libssl1.0.0:i386
The following packages will be upgraded:
  libssl1.0.0:i386
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
3 not fully installed or removed.
Need to get 0 B/1,106 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 193560 files and directories currently installed.)
Preparing to unpack .../libssl1.0.0_1.0.2d-0ubuntu1.5-galliumos0_i386.deb ...
Unpacking libssl1.0.0:i386 (1.0.2d-0ubuntu1.5-galliumos0) over (1.0.2d-0ubuntu1.4-galliumos0) ...
dpkg: error processing archive /var/cache/apt/archives/libssl1.0.0_1.0.2d-0ubuntu1.5-galliumos0_i386.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libssl1.0.0/changelog.Debian.gz', which is different from other instances of package libssl1.0.0:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libssl1.0.0_1.0.2d-0ubuntu1.5-galliumos0_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

답변1

가능한 해결 방법은 해당 디렉토리의 이름을 바꾸고 다음과 같이 강제 설치하는 것입니다.

sudo mv /usr/share/doc/libssl1.0.0 /usr/share/doc/libssl1.0.0.backup
sudo apt-get -f install

아니면 문제가 해결될 수도 있습니다.

apt-get install libssl1.0.0 libssl1.0.0:i386

관련 정보