Force install apt-get [duplicate]
I tried installing beanstalkd with sudo apt-get install beanstalkd (also with -f option) and I get the following error:
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). 7 4 Answers
First download the deb package from repository
apt-get download <package_name>Install the deb file ( it should be in current folder )
sudo dpkg -i <downloaded_package_deb_file> 5 Try
sudo apt-get install -fwith no package in terminal.
If this still gives the error of the dependencies then you will have to issue
sudo apt-get remove beanstalkdthen try
sudo apt-get install mysql-server beanstalkdThat should install the mysql dependencies and beanstalk.
try running sudo apt-get --fix-missing install
Run
apt --fix-broken installwith no packages. And the try to install the packages again.