Force install apt-get [duplicate]
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>
Try
sudo apt-get install -f
with no package in terminal.
If this still gives the error of the dependencies then you will have to issue
sudo apt-get remove beanstalkd
then try
sudo apt-get install mysql-server beanstalkd
That should install the mysql dependencies and beanstalk.