저는 Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-43-generic x86_64)
우분투 컴퓨터에서 작업하고 있습니다.
일부 패키지를 설치해야 하며, 이러한 패키지를 설치하려면 먼저 apt-get -f install
.
그러나 이것은 내가 실행할 때 얻는 것입니다 apt-get -f install
.
root@SERVERLINUX:/boot# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
firefox-globalmenu python2.6-minimal linux-headers-3.5.0-39-generic linux-headers-3.5.0-34 linux-headers-3.5.0-37
linux-headers-3.5.0-39 thunderbird-globalmenu linux-headers-3.5.0-34-generic linux-headers-3.5.0-37-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-image-generic-lts-quantal
The following packages will be upgraded:
linux-image-generic-lts-quantal
1 upgraded, 0 newly installed, 0 to remove and 440 not upgraded.
2 not fully installed or removed.
Need to get 0 B/2.442 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: dependency problems prevent configuration of linux-image-generic-lts-quantal:
linux-image-generic-lts-quantal depends on linux-image-3.5.0-44-generic; however:
Package linux-image-3.5.0-44-generic is not installed.
dpkg: error processing linux-image-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-lts-quantal:
linux-generic-lts-quantal depends on linux-image-generic-lts-quantal; however:
Package linux-image-generic-lts-quantal is not configured yet.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: error processing linux-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-generic-lts-quantal
linux-generic-lts-quantal
E: Sub-process /usr/bin/dpkg returned an error code (1)
어떻게 되어가나요? 어떻게 하면 apt-get -f install
성공적으로 실행할 수 있나요? 이러한 종속성 오류를 해결하려면 어떻게 해야 합니까?
편집하다:
dpkg --configure -a
이것은 Mohsen Pahlavanzadeh가 제안한 대로 실행할 때 얻은 결과입니다 .
root@SERVERLINUX:/boot# dpkg --configure -a
dpkg: dependency problems prevent configuration of linux-image-generic-lts-quantal:
linux-image-generic-lts-quantal depends on linux-image-3.5.0-44-generic; however:
Package linux-image-3.5.0-44-generic is not installed.
dpkg: error processing linux-image-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-lts-quantal:
linux-generic-lts-quantal depends on linux-image-generic-lts-quantal; however:
Package linux-image-generic-lts-quantal is not configured yet.
dpkg: error processing linux-generic-lts-quantal (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-generic-lts-quantal
linux-generic-lts-quantal
답변1
달리기
apt-get install linux-image-3.5.0-44-generic.
포스터 문제가 해결되었습니다.
답변2
같은 오류가 발생한 후:
apt-get update ### for resynchronize with your server
apt-get -f install ### fixing your problem
####And if your problem stay still you have two way:
####at first run :
dpkg --configure -a ### becuase after apt-get update , error of apt-get -f install may be changed
### two: wait to server will be changed
답변3
나에게는 해결책이 다릅니다.
나는 이 명령을 사용했고 aptitude
그래픽 메뉴가 나타날 때 /
종종 검색 필드를 팝업으로 표시하고 모든 linux-header
, linux-image
, linux-server
버전을 찾고 를 눌러 현재 사용되지 않는 버전을 제외한 모든 버전을 삭제했습니다 -
.
현재 사용 중인 커널 버전을 찾으려면 uname -r
.
linux-{header, image, server}
마지막으로 최신 버전을 선택하고 지정된 순서대로 설치했습니다 +
.
내가 사용한 업데이트를 확인하려면 u
.
마침내 재부팅했고 모든 것이 수정되었습니다.
답변4
force-all
이것을 추가하면 /etc/dpkg/dpkg.cfg
문제가 해결됩니다.
# echo "force-all" > /etc/dpkg/dpkg.cfg
# apt-get -f install