首页 > 代码库 > Unmet dependencies. Try 'apt-get -f install' with no packages

Unmet dependencies. Try 'apt-get -f install' with no packages

在ubuntu14.04上用sudo apt-get install percona-xtrabackup安装xtrabackup时提示

zhj@my-SERVER:~$ sudo apt-get install percona-xtrabackup[sudo] password for zhj:Reading package lists... DoneBuilding dependency treeReading state information... DoneYou might want to run apt-get -f install to correct these:The following packages have unmet dependencies:percona-xtrabackup : Depends: libdbd-mysql-perl but it is not going to be insta lledE: Unmet dependencies. Try apt-get -f install with no packages (or specify a s olution).

当我输入sudo apt-get -f install percona-xtrabackup时提示相同的错误

解决方法是行执行sudo dpkg --purge percona-xtrabackup,再执行sudo apt-get -f install percona-xtrabackup

 

Unmet dependencies. Try 'apt-get -f install' with no packages