强制安装apt-get
我尝试使用sudo apt-get install beanstalkd
(也使用-f
选项) sudo apt-get install beanstalkd
,我收到以下错误:
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: beanstalkd: Depends: libevent-1.4-2 (>= 1.4.13-stable) but it is not going to be installed mysql-server-5.1: Depends: mysql-client-5.1 (>= 5.1.62-0ubuntu0.10.04.1) but it is not going to be installed Depends: libmysqlclient16 (>= 5.1.21-1) but it is not going to be installed Depends: mysql-server-core-5.1 (>= 5.1.62-0ubuntu0.10.04.1) but it is not going to be installed PreDepends: mysql-common (>= 5.1.62-0ubuntu0.10.04.1) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
首先从存储库下载deb包
apt-get download
安装deb文件(它应该在当前文件夹中)
sudo dpkg -i
尝试运行sudo apt-get --fix-missing install
尝试
sudo apt-get install -f
在终端没有包裹。
如果这仍然给出了依赖关系的错误,那么你将不得不发布
sudo apt-get remove beanstalkd
然后试试
sudo apt-get install mysql-server beanstalkd
那应该安装mysql依赖项和beanstalk。
跑
apt --fix-broken install
没有包裹。 并尝试再次安装包。