왜 apt-get이 어떤 애플리케이션도 설치할 수 없나요?

왜 apt-get이 어떤 애플리케이션도 설치할 수 없나요?

apt-get을 사용하여 애플리케이션을 설치하려고 하면 항상 다음과 같은 메시지가 나타납니다.

/bin/sh: /usr/sbin/dpkg-preconfigure: not found

예를 들어:

$sudo apt-get install libssl-dev  
[sudo] password for camino:   
Reading package lists... Done  
Building dependency tree         
Reading state information... Done  
 ....

Do you want to continue [Y/n]? y  
WARNING: The following packages cannot be authenticated!  
  libssl-dev libssl0.9.8  
Install these packages without verification [y/N]? y  


/bin/sh: /usr/sbin/dpkg-preconfigure: not found  
Setting up debconf (1.5.35+maemo3+0m6) ...  
exec: 19: /usr/share/debconf/frontend: not found  
dpkg: error processing debconf (--configure):    
 subprocess installed post-installation script returned error exit status 2  
Errors were encountered while processing:  
 debconf  


$sudo dpkg-reconfigure libssl-dev  
sudo: unable to execute /usr/sbin/dpkg-reconfigure: No such file or directory  

$ls /usr/sbin/dpkg-reconfigure  
/usr/sbin/dpkg-reconfigure  

$which dpkg-reconfigure  
/usr/sbin/dpkg-reconfigure  

$dpkg-reconfigure  
bash: /usr/sbin/dpkg-reconfigure: /usr/bin/perl.real: bad interpreter: No such file or directory

어떤 제안이 있으십니까?

답변1

귀하의 시스템이 너무 손상되어 새로 설치하는 것이 좋습니다.

근거: 이렇게 깨진 것들이 빙산의 일각에 불과하다면 이 시스템은 앞으로 많은 문제를 안겨줄 것입니다. 알려진 상태로 가져옵니다. 가장 쉬운 방법은 새로 설치하는 것입니다.

(그리고 다시는 당신이 했던 일을 하지 마십시오).

답변2

bash: /usr/sbin/dpkg-reconfigure: /usr/bin/perl.real: 잘못된 해석기: 해당 파일이나 디렉터리가 없습니다.

펄.리얼? 이런 젠장? 어떤 것 또는 누군가가 /usr/sbin/dpkg-reconfigurePerl에 대한 잘못된 경로를 포함하도록 귀하를 수정했습니다 .

/usr/sbin/dpkg-reconfigure예를 들어 즐겨 사용하는 텍스트 편집기와 sudo를 사용하여 파일 sudo nano -w /usr/sbin/dpkg-reconfigure의 시작 부분을 다음과 같이 변경합니다.

#!/usr/bin/perl.real -w

에게

#!/usr/bin/perl -w

답변3

et voilà를 사용하여 이 문제를 해결했습니다 sudo apt install --reinstall po-debconf . 그 명령 후에 새 프로그램을 설치할 수 있습니다.

(Ubuntu 14.04 32비트 - Eee PC 1000HE에서 실행)

답변4

PATH 변수만 엉망으로 만들지 않았다면 중요한 프로그램을 삭제했을 수도 있습니다.

- $PATH 변수는 무엇을 말합니까? - apt-get이 마지막으로 작동한 이후 디렉토리를 삭제한 적이 있습니까?

관련 정보