Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Jan 01, 2006 4:45 pm 
Offline
Junior Member

Joined: Fri Aug 20, 2004 10:32 am
Posts: 38
Hey All,

For some reason why I try to remove postfix, apt-get wants to remove the mysql-server package as well. Anybody know why this is? I use mysql-server so I can not afford to remove it. Seems odd that an MTA wants to remove a database package. I do not have postfix-mysql installed btw:

Code:
root@g [/etc]# apt-get --purge remove postfix
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
   maildrop* (1.5.3-1.1sarge1)
   mailx* (8.1.2-0.20040524cvs-4)
   mysql-server* (4.0.24-10sarge1)
   postfix* (2.1.5-9)
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 11.7MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

Code:
root@g [/etc]# dpkg -l 'mysql-server'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  mysql-server   4.0.24-10sarge mysql database server binaries

Code:
root@g [/etc]# dpkg -l '*postfix*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name              Version           Description
+++-=================-=================-========================================
ii  postfix           2.1.5-9           A high-performance mail transport agent
un  postfix-doc       <none>            (no description available)
un  postfix-ldap      <none>            (no description available)
un  postfix-mysql     <none>            (no description available)
un  postfix-pcre      <none>            (no description available)
un  postfix-pgsql     <none>            (no description available)
un  postfix-tls       <none>            (no description available)

Any ideas?

_________________
-Kevin
thomber.net Directory
http://pingmyhost.net


Last edited by chapterthree on Sun Jan 01, 2006 8:56 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sun Jan 01, 2006 8:11 pm 
Offline
Senior Member

Joined: Sun Nov 14, 2004 6:37 pm
Posts: 138
Website: http://oldos.org
WLM: jasonlfaulkner@hotmail.com
Yahoo Messenger: jasonfncsu
AOL: jaylfaulkner
Location: NC, USA
apt-get install mysql-server

THEN do the postfix stuff.

_________________
Jay Faulkner
http://oldos.org


Top
   
 Post subject:
PostPosted: Sun Jan 01, 2006 8:56 pm 
Offline
Junior Member

Joined: Fri Aug 20, 2004 10:32 am
Posts: 38
Jay wrote:
apt-get install mysql-server

THEN do the postfix stuff.


My fault, I should have posted in my original post that mysql-server IS installed.

Code:
root@g [/etc]# dpkg -l 'mysql-server'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  mysql-server   4.0.24-10sarge mysql database server binaries


And on a side note, you can't remove a package unless it's installed, therefore apt-get can't remove mysql-server unless it is installed. So although implied, mysql-server is installed ;)

_________________
-Kevin

thomber.net Directory

http://pingmyhost.net


Top
   
 Post subject:
PostPosted: Mon Jan 02, 2006 4:39 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
dpkg will automatically remove packages required by a package you're removing, unless those packages are in use by something else (or have been installed specifically).

I believe what he was driving at is that if you tell the system you specifically want mysql-server, it won't automatically remove it.


Top
   
 Post subject:
PostPosted: Mon Jan 02, 2006 1:19 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
Actually, what you're probably hitting is a dependency chain: mysql-server depends on mailx, which depends on mail-transfer-agent, which is postfix. The
more surprising thing is that attempting to remove postfix doesn't cause a lot more fallout - an MTA is pretty much required to run Debian.

Trying using 'dpkg --remove postfix', it won't try to remove anything else automatically, but will complain about all the things you'll break with this removal.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
 Post subject:
PostPosted: Mon Jan 02, 2006 2:17 pm 
Offline
Junior Member

Joined: Fri Aug 20, 2004 10:32 am
Posts: 38
Xan wrote:
I believe what he was driving at is that if you tell the system you specifically want mysql-server, it won't automatically remove it.
How do you tell the system I specifically want to keep mysql-server?
Code:
root@g [/etc]# apt-get install mysql-server
Reading Package Lists... Done
Building Dependency Tree... Done
mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


SteveG - Ahh, I think I understand what you mean now. For example mysql-server will occasionally check for corrupt tables (I think on daemon restart), and if it finds any, it emails me. Now that I think about it, it must be using postfix or mailx to send those mails. Now that makes sense as to why mysql-server depends on mailx and postfix. I also see your point about other things not depending on it, like apache2 or crond for example.

Well I have installed a different MailServer, although it is 3rd party software, not a standard mta such as postfix or exim. Does anybody know how to configure mysql-server to use a sendmail binary, or specifically tell it not to use postfix.

Edit: I did some more searching, and SteveG was exactly correct:
Quote:
Of course it should be removed. The 'mysql-server' package depends on 'mailx', which depends on 'mail-transfer-agent'. You removed Exim, which provides 'mail-transport-agent', but did not provide a replacement, so the only thing to do was to remove 'mailx', which meant that 'mysql-server' had to go too.

The fix, of course, is to install something else that provides 'mail-transfer-agent'.


Now my question is how can I make it so that my 3rd party mail server program 'provides' the mail-transfer-agent dependency?

_________________
-Kevin

thomber.net Directory

http://pingmyhost.net


Top
   
 Post subject:
PostPosted: Mon Jan 02, 2006 7:21 pm 
Offline
Senior Member

Joined: Sat Dec 04, 2004 5:36 pm
Posts: 145
If the third-party program is in apt, install it. It should provide this automatically as part of the installation.

If it is not in apt, you'll probably need to set up a 'stub' package to keep apt quiet about that kind of thing. (Meaning, you install it from sources but tell apt "pretend this is a real Debian package called xxx and provides yyy, and note it.")

The second approach will require:

http://www.debian.org/doc/manuals/apt-howto/ch-helpers.en.html#s-equivs


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group