'E : dpkg가 중단되었습니다. 문제를 해결하려면'sudo dpkg --configure -a '를 수동으로 실행해야합니다.'


34

업데이트를 시도 할 때마다 마지막 줄에 오류가 발생합니다.

Ign http://in.archive.ubuntu.com trusty-updates/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-updates/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-updates/universe Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/main Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com trusty-backports/universe Translation-en_IN
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

그리고 내가 실행할 때 프롬프트 오류에 따라 :

$ sudo dpkg --configure -a
dpkg: error: parsing file '/var/lib/dpkg/updates/0009' near line 0:
 newline in field name `#padding'

지금 무엇? 오류에서 벗어날 수 있습니까?

이 링크를 시도했습니다 .

답변:


67

잘못된 링크를 참조하셨습니다. /var/lib/dpkg/updates디렉토리의 모든 파일을 제거하려면 터미널에서 아래 명령을 시도하십시오.

cd /var/lib/dpkg/updates
sudo rm *

그런 다음 아래 명령을 실행하여 최신 명령을 얻으십시오.

sudo apt-get update

1
그것은 나를 위해 잘 작동합니다.
— user284303

2
이것은 Raspbmc / Raspbian에서도 나를 위해 일했습니다. 그러나 궁금합니다. 안전한 솔루션입니까?
— aalaap

이것은 우분투 12.04.5 LTS에서 나를 위해 일했다
— 병아리

2
2016 년에도 우분투 -15.04 (기반 Zorin OS 10)에서 작동합니다!
— x13

1
이 솔루션에 대해 대단히 감사합니다. 문제가있는 .deb 파일의 dpkg 설치를 의도적으로 중단했을 때 오류를 제거하는 방법을 찾기 위해 영원히 검색했습니다. 당신의 조언에 진심으로 감사드립니다!
— Ev-

3

그것은 나를 위해 작동합니다! 이 오류가 발생했을 때 무선 드라이버를 설치하려고했습니다. 파일과 잠금 파일을 삭제해야했습니다.

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
cd /var/lib/dpkg/updates
sudo rm *
sudo apt-get update

그런 다음 apt-get install설치하려는 모든 패키지를 실행할 수 있습니다.


1
별도의주의없이 반드시 좋은 아이디어는 아닙니다.
— 0xC0000022L

부작용이 없는지 확실하지는 않지만 이전 답변을 얻지 못한 경우에 도움이되었습니다.
— Erty Seidohl
당사 사이트를 사용함과 동시에 당사의 쿠키 정책과 개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.