yannubuntu의 Boot Repair Disk를 사용하여 벽돌로 덮인 우분투 설치를 복구하는 동안 공유 라이브러리 libtinfo.so.5를 로드하는 동안 오류가 발생했습니다.

yannubuntu의 Boot Repair Disk를 사용하여 벽돌로 덮인 우분투 설치를 복구하는 동안 공유 라이브러리 libtinfo.so.5를 로드하는 동안 오류가 발생했습니다.

chroot를 통해 grub을 다시 설치하는 데 문제가 있습니다. 다시 설치하려고 할 때마다 다음 오류가 발생합니다.

공유 라이브러리를 로드하는 중 오류가 발생했습니다: libtinfo.so.5: 공유 객체 파일을 열 수 없습니다: 해당 파일이나 디렉터리가 없습니다

약간의 뒷이야기 : 최근에 디스크 파티션을 MBR에서 GPT로 변환하려고 시도하는 동안 Ubuntu 설치가 중단되었습니다. 다음 명령을 사용한 후 다시 시작하면 sgdisk -g /dev/sdaUbuntu로 부팅할 수 없습니다!

나의 주요 목표는 Windows 10을 설치하기 위해 MBR LVM 파티션을 GPT로 변환하는 것이었습니다. Windows 10을 설치하려면 GPT로 변경해야 한다는 인상을 받았지만 나중에 KDE 파티션을 사용하여 파티션 크기를 조정하면 된다는 것을 알게 되었습니다. 관리자 또는 LVM 작업이 가능한 기타 도구를 사용하여 파티션을 NTFS로 포맷하면 Windows 10 설치를 위한 환경이 준비됩니다.

지금 문제: Windows 10을 실행하고 지금 입력하는 동안 약간 틀에 박혔습니다. Ubuntu Linux를 사용하는 것을 좋아하고 이중 부팅 설정을 원합니다. Windows는 멀티미디어 작업 및 게임에 사용되는 반면 Ubuntu Linux는 일상적인 운영 체제입니다!

yannubuntu가 만든 부팅 복구 디스크라는 소프트웨어를 발견했습니다.소스포지, USB 스틱으로 부팅한 다음 부팅 복구 소프트웨어를 실행했는데, sudo chroot "/mnt/boot-sav/mapper/vgubuntu-root" apt purge --allow-remove-essential -y grub*-common shim-signedchroot를 사용하여 Ubuntu LVM 파티션에 grub을 다시 설치하고 구성하기 위해 다음 명령을 실행하라는 메시지가 표시되었습니다.

이 명령을 실행하면 /bin/bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory dpkg: error processing package grub-pc (--remove):apt를 사용하여 설치하려고 할 때 라이브러리가 부팅 복구 디스크에 설치되어 있어도 항상 이 라이브러리 오류가 발생하며 라이브러리가 이미 존재하고 Ubuntu에 사전 설치되어 있다고 가정합니다. 부팅 복구 디스크에 있으며 Ubuntu를 기반으로 합니다.

내 문제에 대한 전체 터미널 보기는 다음과 같습니다. 실행된 명령과 앞서 언급한 오류는 여기에서 볼 수 있습니다.

Command:
sudo chroot "/mnt/boot-sav/mapper/vgubuntu-root" apt purge --allow-remove-essential -y grub*-common shim-signed

Output:
lubuntu@lubuntu:~$ sudo chroot "/mnt/boot-sav/mapper/vgubuntu-root" apt purge --allow-remove-essential -y grub*-common shim-signed
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'grub-common' for glob 'grub*-common'
Note, selecting 'grub2-common' for glob 'grub*-common'
Package 'shim-signed' is not installed, so not removed
The following packages will be REMOVED:
  grub-common* grub-gfxpayload-lists* grub-pc* grub-pc-bin* grub2-common*
0 upgraded, 0 newly installed, 5 to remove and 73 not upgraded.
2 not fully installed or removed.
After this operation, 18.8 MB disk space will be freed.
(Reading database ... 305827 files and directories currently installed.)
Removing grub-pc (2.04-1ubuntu26.12) ...
/bin/bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
dpkg: error processing package grub-pc (--remove):
 installed grub-pc package pre-removal script subprocess returned error exit status 127
dpkg: too many errors, stopping
/bin/bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
dpkg: error while cleaning up:
 installed grub-pc package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 grub-pc
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

저를 도와주세요. 막혀서 다음에 무엇을 해야할지 모르겠습니다!

감사해요!

참고: 이미 시도한 몇 가지 사항은 다음과 같습니다.

  1. USB 스틱에 있는 전체 Ubuntu 18.04의 chroot를 사용하여 브릭 Ubuntu에 grub을 다시 설치하려고 시도했지만 동일한 라이브러리 오류가 지속됩니다.

답변1

제 경우에는 libtinfo.so.6이 'lib64' 폴더에 저장되는 것이 문제였습니다. 'lib'에 넣어서 수정되었습니다.

(나는 /bin/bash에서 chroot를 실행하고 있었습니다)

sudo chroot $HOME/jail /bin/bash

관련 정보