Ubuntu 12.04 vps를 업그레이드하려고하면 다음 오류가 발생합니다.
henrik@neung:~$ sudo apt-get upgrade
[sudo] password for henrik:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
nginx-full : Depends: nginx-common (= 1.2.4-1ubuntu0ppa2~precise) but 1.2.4-2ubuntu0ppa1~precise is installed
E: Unmet dependencies. Try using -f.
그래서 나는 이것을 실행하려고합니다.
henrik@neung:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
nginx-full
The following packages will be upgraded:
nginx-full
1 upgraded, 0 newly installed, 0 to remove and 42 not upgraded.
2 not fully installed or removed.
Need to get 0 B/441 kB 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 nginx-full:
nginx-full depends on nginx-common (= 1.2.4-1ubuntu0ppa2~precise); however:
Version of nginx-common on system is 1.2.4-2ubuntu0ppa1~precise.
dpkg: error processing nginx-full (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-full | nginx-light; however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
dpkg: error processing nginx (--configure):
dependency problems - leaving unconfigured
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.
Errors were encountered while processing:
nginx-full
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
누구든지 이것을 고칠 수 있습니까?
나는 모든 것을 겪었지만 운이 없다. 그래서 제거하고 설치를 시도했지만 재부팅 후 모든 것이 정상적으로 작동했습니다. 이것을 올바른 해결책으로 받아 들일 수 있도록 답변으로 게시 할 수 있습니까?
—
hstr
nginx
패키지를 다시 설치하십시오 .sudo apt-get remove nginx* && sudo apt-get install nginx-full