
오늘 업그레이드를 실행한 이후 더 이상 apt-get을 사용할 수 없습니다.
지목 사항:
sudo apt-get install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up linux-image-3.2.0-24-generic (3.2.0-24.38) ...
Running depmod.
Failed to symbolic-link /boot/initrd.img-3.2.0-24-generic to initrd.img: File exists
dpkg: error processing linux-image-3.2.0-24-generic (--configure):
subprocess installed post-installation script returned error exit status 17
Errors were encountered while processing:
linux-image-3.2.0-24-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
내가 해결할 수 있는 한, 이것이 실패한 것입니다.
sudo dpkg --configure linux-image-3.2.0-24-generic
Setting up linux-image-3.2.0-24-generic (3.2.0-24.38) ...
Running depmod.
Failed to symbolic-link /boot/initrd.img-3.2.0-24-generic to initrd.img: File exists
dpkg: error processing linux-image-3.2.0-24-generic (--configure):
subprocess installed post-installation script returned error exit status 17
Errors were encountered while processing:
linux-image-3.2.0-24-generic
그러나 이것을 실행하면 모든 것이 작동하는 것 같습니다 ...
/var/lib/dpkg/info/linux-image-3.2.0-24-generic.postinst
echo $?
0
도대체 무슨 일이 일어나고 있는 걸까요? 이것이 중요한 일이라고 생각하기 때문에 장난을 치는 것이 조금 두렵습니다.
답변1
initrd
다음을 실행하여 루트 디렉터리에서 심볼릭 링크를 제거했습니다.
sudo rm /initrd.img
그러나 이에 대비한 안전 장치를 갖고 싶다면 기존 항목을 initrd.img
삭제하기 전에 백업할 수 있습니다.
그런 다음 실행
sudo apt-get -f install [package]
성공적으로 실행될 수 있어야 합니다.
답변2
노력하다
sudo apt-get -f install [package]
이렇게 하면 업그레이드가 강제됩니다. 적어도 시도해 볼 가치가 있습니다. 하는 일
sudo apt-get update
다치게 할 수도 없습니다.