Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Installing Packages - Please Help!

Status
Not open for further replies.

southbeach

Programmer
Jan 22, 2008
879
US
Using Ubuntu

I tried to install postfix and ran into problems. The installation returned errors referencing myhostname as being invalid or something to that effect.

I then tried to install webmin to use webmin to setup postfix through webmin. webmin requires perl so I had to install that. I tried installing perl but get this

Code:
root@fesweb# sudo apt-get install perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
perl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up postfix (2.5.5-1.1) ...

Postfix configuration was not changed.  If you need to make changes, edit /etc/postfix/main.cf (and others) as needed.  To view Postfix configuration values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
newaliases: fatal: bad string length 0 < 1: mydomain =
dpkg: error processing postfix (--configure):
 subprocess post-installation script returned error exit status 75
dpkg: dependency problems prevent configuration of bsd-mailx:
 bsd-mailx depends on postfix | mail-transport-agent; however:
  Package postfix is not configured yet.
  Package mail-transport-agent is not installed.
  Package postfix which provides mail-transport-agent is not configured yet.
dpkg: error processing bsd-mailx (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mailx:
 mailx depends on bsd-mailx; however:
  Package bsd-mailx is not configured yet.
dpkg: error processing mailx (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc6 ...
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
                                                    ldconfig deferred processing now taking place
Errors were encountered while processing:
 postfix
 bsd-mailx
 mailx
E: Sub-process /usr/bin/dpkg returned an error code (1)

I am caught in a catch 22 where I need to install webmin which needs perl which needs postfix which is not installing at all ...

Could you please provide some advise? I have spent a great deal of time at google looking for answers but nothing productive so far.

Thank you all in advance for your assistance.


Jose

--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
It looks as if you are using unbuntu
IIRC webmin is in the Unbuntu reporitorys

sudo apt-get install webmin
should be enough to sort your problem.



I do not Have A.D.D. im just easily, Hey look a Squirrel!
 
I think the root of your problem is that you have an error in your postfix configuration. When you install postfix via the apt package manager, it should have started up an automatic configuration wizard. The error looks like you are missing the configuration files like main.cf which should have been configured in the process.

First try sudo dpkg-reconfigure postfix. Here is a link that should have some helpful information on this process.

If that fails, remove the package and try re-installing. I would suggest using sudo apt-get purge ...package name... which will remove the package and its configuration files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top