Question

No mail() from my server, sendmail can't install

Hi there, I have sometrouble w/ sending mail from my server, I have an Ubuntu 14.* and last VestaCP, so, it can’t emailing :C I tryed to install php-mail and sendmail, but somewhat crashed:


root@digitalsharks:~# apt-get install php-mail
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-mail is already the newest version.
php-mail set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
root@digitalsharks:~# apt-get install sendmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 sendmail : Depends: sendmail-bin but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Sorry, guys. I’m amauter in linux C:


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

No worries. This is likely due to your apt database being out of date. When the package manager tries to grab packages that no longer exist (because a new version was released) this can happen. A rule of thumb is to always run an

apt-get update

before running your install command. This will sync your local apt database with the remote repository.