我尝试使用以下命令安装imagemagick
sudo apt-get install imagemagick --fix-missing
但是在安装时出现以下错误
nginx-full : Depends: nginx-common (= 1.4.7-1+precise0) but 1.6.0-1+precise0 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
我尝试使用sudo apt-get remove nginx
命令删除Nginx,但遇到相同的错误,我该如何解决此问题。
通过引用此链接的输出进行编辑dpkg -l | grep nginx
iU nginx 1.4.7-1+precise0 small, powerful, scalable web/proxy server
ii nginx-common 1.6.0-1+precise0 small, powerful, scalable web/proxy server - common files
iF nginx-full 1.4.7-1+precise0 nginx web/proxy server (standard version)
输出 dpkg -S $(which nginx)
dpkg-query: error: --search needs at least one file name pattern argument
Use --help for help about querying packages.
提前致谢。
跑 :
sudo dpkg -r nginx-common
如果成功或无法运行:
gksudo gedit /var/lib/dpkg/status
在生成的gedit中,删除整个部分,以:
Package : nginx-common
然后运行安装
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句