Could not install letsencrypt

I’m trying to install letsencrypt on the Ubuntu 14.04.1 LTS as stated here: https://letsencrypt.org/getting-started/

After entering
./letsencrypt-auto --help
it shows some info about the packages


Then it tries to setup icecast2 (2.4.2-2)

Configuring icecast2…
Done Configuring icecast2…
Starting icecast2: invoke-rc.d: initscript icecast2, action “start” failed.
dpkg: error processing package icecast2 (–configure):

E: Sub-process /usr/bin/dpkg returned an error code (1)

I do have icecast2 installed on the server and it’s running with no problems.
I found some discussion about the similar error - http://www.linuxquestions.org/questions/debian-26/sub-process-usr-bin-dpkg-returned-an-error-code-1-a-171107/
There, it’s suggested to remove the related to the problematic package files in /var/lib/dpkg/info and then try again but I don’t want to mess with the running icecast2 server - in case it will be stopped, uninstalled or even restarted.

So is there is a way to deal with the letsencrypt installation without messing up the icecast2 package, in my case?
Or fixing the icecast2 is necessary here to continue with the letsencrypt installation (so, I will have to upgrade/reinstall icecast2)?

Thanks in advance!

You need to do sudo dpkg --configure -a, likely the postinstall script of icecast2 as failed and the icecast2 package is still not configured (~ half installed). Before doing so you should stop icecast2, for the “Starting icecast2” in the postinstall script to work.

You only see it because letsencrypt-auto try to install some dependencies. But the result should be the same on any new package install or upgrade.

Thank you! That helped!