Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 302387  / 3 Years ago, wed, october 27, 2021, 3:52:28

I'm getting this error when ever I install any packages via apt-get:



hostname: Name or service not known
dpkg: error processing ssmtp (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libt1-5 (5.1.2-3.4ubuntu1) ...
Setting up php5-gd (5.3.10-1ubuntu3.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
ssmtp
E: Sub-process /usr/bin/dpkg returned an error code (1)


Why this is happening?


More From » 12.04

 Answers
2

Solution:


(These types of problems don't have good solutions. But only some haking-ish)


You should first try this command in a terminal:


sudo apt-get -f install

If it doesn't work, process with haking-ish solution.


Try temporarily moving the configuration script of ssmtp.



  1. Open a terminal and execute this command to move them to the current dir


      sudo mv /var/lib/dpkg/info/ssmtp* .


  2. Then try using apt-get




The cause of the problem:


The previous installation or removal might not completed successfully, leaving some configuration step to be done for ssmtp package. Since, dpkg won't progress without first completing the steps, subsequent use of apt-get now get stuck on that step.


[#35700] Thursday, October 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ickump

Total Points: 234
Total Questions: 124
Total Answers: 111

Location: Jordan
Member since Fri, Apr 8, 2022
2 Years ago
ickump questions
Mon, Aug 16, 21, 08:46, 3 Years ago
Mon, Aug 22, 22, 02:44, 2 Years ago
Sun, Oct 2, 22, 07:13, 2 Years ago
;