无法安装新软件包

无法安装新软件包

收到此消息:

alkos@vps-21314:/root$ sudo apt-get -f install mailutils                                                                                                                                                                                  
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:                                                                                                                                                                                           
 linux-image-extra-4.4.0-70-generic : Depends: linux-image-4.4.0-70-generic but it is not going to be installed                                                                                                                           
 linux-image-extra-4.4.0-77-generic : Depends: linux-image-4.4.0-77-generic but it is not going to be installed                                                                                                                           
 linux-image-generic : Depends: linux-image-4.4.0-77-generic but it is not going to be installed                                                                                                                                          
                       Recommends: thermald but it is not going to be installed                                                                                                                                                           
 mailutils : Depends: mailutils-common (= 1:2.99.99-1ubuntu2) but it is not going to be installed                                                                                                                                         
             Depends: default-mta or                                                                                                                                                                                                      
                      mail-transport-agent                                                                                                                                                                                                
             Depends: guile-2.0-libs but it is not going to be installed                                                                                                                                                                  
             Depends: libmailutils4 (>= 1:2.99.99) but it is not going to be installed                                                                                                                                                    
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

对于我来说,apt-get -f install这些都不起作用,从服务器收到相同的消息,我该怎么做才能解决这个问题?sudo apt-get update && timesudo apt-get dist-upgrade

答案1

在这些情况下,我通常使用aptitude,它具有更强大的依赖项解决引擎。命令完全相同,sudo aptitude install mailutils。它将开始向您提出各种解决方案,要求您确认或转到下一个解决方案。选择时要小心,因为有时它会删除一些对系统至关重要的依赖项(我遇到过这种情况,因为我没有仔细阅读建议的解决方案将删除重要的软件包)

相关内容