Re: uninstalling smail when a self compiled MTA is present
On 06 Jan 1999 16:09:32 +0100, you wrote: >Install this exim-local package and deinstall the dummy smail one (or >apt will try to update it). Then activate your local MTA, and you are >done. After some initial confusion with making the new equivs working on my hamm system, your solution worked. Thanks. Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Re: uninstalling smail when a self compiled MTA is present
On 11 Jan 1999 20:44:37 +1300, you wrote: >That just changes the status of smail. See `dpkg --status' for the >effect, before and after. ('echo smail install | ...' changes back.) I see. What we _really_ need is more comprehensive docs for dpkg. Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Re: uninstalling smail when a self compiled MTA is present
[EMAIL PROTECTED] (Marc Haber) writes: > On 10 Jan 1999 17:51:05 +1300, you wrote: > >Maybe smail needs to be marked for removal. > > > ># echo smail deinstall | dpkg --set-selections > > This does not give an error message, but does not remove smail either. That just changes the status of smail. See `dpkg --status' for the effect, before and after. ('echo smail install | ...' changes back.) My idea was that maybe dpkg would deconfigure it when using -auto-deconfigure if it was marked for removal later (with `dpkg --remove --pending' or similar). Aha! Testing with `dpkg --no-act ...' shows this to be the case, at least for replacing my current exim with smail. -- Carey Evans http://home.clear.net.nz/pages/c.evans/ Larry froze. Was the bag a trap? He could see the way in, but the other end appeared to be sealed.
Re: uninstalling smail when a self compiled MTA is present
On Tue, Jan 05, 1999 at 02:34:45PM +, Marc Haber wrote: > On Mon, 4 Jan 1999 16:03:47 -0800 (PST), you wrote: > >I did exactly this yesterday (replacing smail with exim). > > > > apt-get install exim > > No, you didn't. You used the debian package; I am trying to get rid of > smail because I have a self-built exim. > > Greetings > Marc > > -- > -- !! No courtesy copies, please !! - > Marc Haber | " Questions are the | Mailadresse im Header > Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 > Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29 > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > >From what I remember when watching apt, it uses dpkg --force-remove to remove >a package, then immediately installs the replacing package. Or was that dftp? >Either way, it seems to be an appropriate way to deal with the problem, >doesn't it? -- Stephen Pitts [EMAIL PROTECTED] webmaster - http://www.mschess.org
Re: uninstalling smail when a self compiled MTA is present
On 10 Jan 1999 17:51:05 +1300, you wrote: >Maybe smail needs to be marked for removal. > ># echo smail deinstall | dpkg --set-selections This does not give an error message, but does not remove smail either. >(Is anyone reading that actually *understands* dpkg?) Well, I surely do not :-( Any documentation besides the packaging manual, the manpage and the source? Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Re: uninstalling smail when a self compiled MTA is present
[EMAIL PROTECTED] (Marc Haber) writes: > neither dpkg --install packagename --auto-deconfigure nor dpkg > --install --auto-deconfigure packagename works. More ideas to get this command to work: Maybe smail needs to be marked for removal. # echo smail deinstall | dpkg --set-selections Maybe equivs needs to `Conflicts:' and `Replaces:' mail-transfer-agent, like exim, smail, sendmail etc. do. (Is anyone reading that actually *understands* dpkg?) -- Carey Evans http://home.clear.net.nz/pages/c.evans/ Larry froze. Was the bag a trap? He could see the way in, but the other end appeared to be sealed.
Re: uninstalling smail when a self compiled MTA is present
On 08 Jan 1999 00:34:45 +1300, you wrote: >/usr/lib/dpkg/methods/disk/install says: I don't have that file >Maybe it matters which order it goes in? neither dpkg --install packagename --auto-deconfigure nor dpkg --install --auto-deconfigure packagename works. Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Re: uninstalling smail when a self compiled MTA is present
[EMAIL PROTECTED] (Marc Haber) writes: > On 07 Jan 1999 21:33:48 +1300, you wrote: > >[EMAIL PROTECTED] (Marc Haber) writes: > >> Sounds like a bad brute-force approach. Can't dpkg do the remove and > >> the install of the equivs package in a single operation? > > > >Yes, AFAIK. "dpkg --auto-deconfigure --install new-mta.deb" [Marc proves me wrong.] /usr/lib/dpkg/methods/disk/install says: dpkg --install --auto-deconfigure and uses: dpkg -iB Maybe it matters which order it goes in? -- Carey Evans http://home.clear.net.nz/pages/c.evans/ Larry froze. Was the bag a trap? He could see the way in, but the other end appeared to be sealed.
Re: uninstalling smail when a self compiled MTA is present
On 07 Jan 1999 21:33:48 +1300, you wrote: >[EMAIL PROTECTED] (Marc Haber) writes: >> Sounds like a bad brute-force approach. Can't dpkg do the remove and >> the install of the equivs package in a single operation? > >Yes, AFAIK. "dpkg --auto-deconfigure --install new-mta.deb" |=>ROOT<[EMAIL PROTECTED]:/usr/src # dpkg --auto-deconfigure --install equivs_1.0.5-3_all.deb |dpkg: regarding equivs_1.0.5-3_all.deb containing equivs: | smail conflicts with mail-transport-agent | equivs provides mail-transport-agent and is to be installed |dpkg: error processing equivs_1.0.5-3_all.deb (--install): | conflicting packages - not installing equivs |Errors were encountered while processing: | equivs_1.0.5-3_all.deb |=>ROOT<[EMAIL PROTECTED]:/usr/src # Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Re: uninstalling smail when a self compiled MTA is present
[EMAIL PROTECTED] (Marc Haber) writes: > Sounds like a bad brute-force approach. Can't dpkg do the remove and > the install of the equivs package in a single operation? Yes, AFAIK. "dpkg --auto-deconfigure --install new-mta.deb" -- Carey Evans http://home.clear.net.nz/pages/c.evans/ Larry froze. Was the bag a trap? He could see the way in, but the other end appeared to be sealed.
Re: uninstalling smail when a self compiled MTA is present
On 06 Jan 1999 15:25:27 +0100, you wrote: >Then how about installing the package maintainer scripts and wrap your >self-built exim up as a debian package? You should be able to get the >necessary debianizing magic from the package source for the debian >exim. That would surely work, but I'd consider this to be a little overkill. But since there seems to be only one possibility to do so... apt is only a front-end to dpkg, so filing wishlist bugs against dpkg is still apropriate, right? Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Re: uninstalling smail when a self compiled MTA is present
>> "HM" == Henning Makholm <[EMAIL PROTECTED]> writes: HM> [EMAIL PROTECTED] (Marc Haber) writes: >> On Mon, 4 Jan 1999 16:03:47 -0800 (PST), you wrote: >> > apt-get install exim >> No, you didn't. You used the debian package; I am trying to get rid of >> smail because I have a self-built exim. HM> Then how about installing the package maintainer scripts and wrap HM> your self-built exim up as a debian package? You should be able to HM> get the necessary debianizing magic from the package source for HM> the debian exim. As you and other users may be interested, I make a plug for the new equivs package: $ cat mail-transport.ctl Package: smail Provides: mail-transport-agent Description: A dummy exim Smail package which just provides mail-transport-agent and doesnot conflict with mail-transport-agent. . Deinstall after installing a fake MTA package. $ make-equivs mail-transport.ctl [...] This will create a dummy smail_1.0_all.deb Package, which you install. Thous smail doesn't conflict with mail-transport-agent any more. Beware, you don't have a working MTA from this point on. $ cat exim-local.ctl Package: exim-local Section: mail Priority: optional Provides: mail-transport-agent Description: My local exim Local exim package to fulfil package dependencies. Provides mail-transport-agent. $ make-equivs exim-local.ctl Install this exim-local package and deinstall the dummy smail one (or apt will try to update it). Then activate your local MTA, and you are done. Ciao, Martin -- from a 1996 Microshit ad campaign: "The less you know about computers the more you want Micro$oft!" See! They do get some things right!
Re: uninstalling smail when a self compiled MTA is present
[EMAIL PROTECTED] (Marc Haber) writes: > On Mon, 4 Jan 1999 16:03:47 -0800 (PST), you wrote: > > apt-get install exim > No, you didn't. You used the debian package; I am trying to get rid of > smail because I have a self-built exim. Then how about installing the package maintainer scripts and wrap your self-built exim up as a debian package? You should be able to get the necessary debianizing magic from the package source for the debian exim. Or am I misunderstanding you, too? -- Henning Makholm http://www.diku.dk/students/makholm
Re: uninstalling smail when a self compiled MTA is present
On Tue, 05 Jan 1999 01:43:06 -0500, you wrote: > You may have to use 'dpkg --purge --force-depends smail' to delete >smail, then immediately install your MTA. If '--force-depends' doesn't >work check 'man dpkg' for the other '--force' options ('dpkg --help' or >'--force-help' may be sufficient). Sounds like a bad brute-force approach. Can't dpkg do the remove and the install of the equivs package in a single operation? Or can I "update" smail with equivs? Should this be filed as a wish-list bug? Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Re: uninstalling smail when a self compiled MTA is present
On Mon, 4 Jan 1999 16:03:47 -0800 (PST), you wrote: >I did exactly this yesterday (replacing smail with exim). > >apt-get install exim No, you didn't. You used the debian package; I am trying to get rid of smail because I have a self-built exim. Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Re: uninstalling smail when a self compiled MTA is present
Marc Haber wrote: > > On Wed, 30 Dec 1998 14:56:15 -0500 (EST), you wrote: > >Marc Haber said > >> So I seem to be in a circular situation: I can't install equiv package > >> just made because I have smail installed. I can't uninstall smail > >> because I have numerous packages that require mail-transport-agent. > >> > >> How do I get out of this circle? > >> You may have to use 'dpkg --purge --force-depends smail' to delete smail, then immediately install your MTA. If '--force-depends' doesn't work check 'man dpkg' for the other '--force' options ('dpkg --help' or '--force-help' may be sufficient). -- Ed C.
Re: uninstalling smail when a self compiled MTA is present
Marc Haber said: >> So I seem to be in a circular situation: I can't install equiv package >> just made because I have smail installed. I can't uninstall smail >> because I have numerous packages that require mail-transport-agent. >> >> How do I get out of this circle? I did exactly this yesterday (replacing smail with exim). apt-get install exim was smart enough to first remove smail and subsequently install exim. It worked without a hitch (all I had to do was remove some files by hand in /var/spool/ and /var/log/). It was very impressive, Jim
Re: uninstalling smail when a self compiled MTA is present
On Wed, 30 Dec 1998 14:56:15 -0500 (EST), you wrote: >Marc Haber said >> So I seem to be in a circular situation: I can't install equiv package >> just made because I have smail installed. I can't uninstall smail >> because I have numerous packages that require mail-transport-agent. >> >> How do I get out of this circle? >> >How about this: >dpkg --auto-deconfigure -r smail |=>ROOT<[EMAIL PROTECTED]:/mnt/maindisk/home/mh # dpkg --auto-deconfigure -r smail |dpkg: dependency problems prevent removal of smail: | mailagent depends on sendmail | smail | mail-transport-agent; however: | Package sendmail is not installed. | Package smail is to be removed. | Package mail-transport-agent is not installed. | Package smail which provides mail-transport-agent is to be removed. |dpkg: error processing smail (--remove): | dependency problems - not removing |Errors were encountered while processing: | smail |=>ROOT<[EMAIL PROTECTED]:/mnt/maindisk/home/mh # Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Re: uninstalling smail when a self compiled MTA is present
Marc Haber said > On Tue, 29 Dec 1998 12:56:37 -0500, you wrote: > >The necessary package for telling Debian that you've got a locally > >built mail-transport-agent installed is "equivs". > > Thanks. > > >The "equivs" package only seems to be available from http://www.debian.org > >and not from any mirror sites. Or at least that was what seemed to be the > >case when I was doing all of this > > My local mirror had the package. Here is what I did > [...] > So I seem to be in a circular situation: I can't install equiv package > just made because I have smail installed. I can't uninstall smail > because I have numerous packages that require mail-transport-agent. > > How do I get out of this circle? > How about this: dpkg --auto-deconfigure -r smail dpkg -i equivs_1.0.5-3_all.deb dpkg --pending --configure > Greetings > Marc > > -- > -- !! No courtesy copies, please !! - > Marc Haber | " Questions are the | Mailadresse im Header > Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 > Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29 > Chuck -- Chuck Stickelman, Owner E-Mail: <[EMAIL PROTECTED]> Practical Network DesignVoice: +1-419-529-3841 9 Chambers Road FAX:+1-419-529-3625 Mansfield, OH 44906-1301 USA
Re: uninstalling smail when a self compiled MTA is present
On Tue, 29 Dec 1998 12:56:37 -0500, you wrote: >The necessary package for telling Debian that you've got a locally >built mail-transport-agent installed is "equivs". Thanks. >The "equivs" package only seems to be available from http://www.debian.org >and not from any mirror sites. Or at least that was what seemed to be the >case when I was doing all of this My local mirror had the package. Here is what I did (1) Download Package (2) dpkg --install equivs_1.0.5-3.deb (3) create single-line file /etc/equivs.conf containing "mail-transport-agent" (4) run debian/rules binary (5) fail (6) install devel/debmake (7) file bug report because this dependency is not recorded in the equivs package (8) run debian/rules binary (9) succeed this time, creating /usr/src/equivs_1.0.5-3_all.deb (0) =>ROOT<[EMAIL PROTECTED]:/usr/src # dpkg --install equivs_1.0.5-3_all.deb |dpkg: regarding equivs_1.0.5-3_all.deb containing equivs: | smail conflicts with mail-transport-agent | equivs provides mail-transport-agent and is to be installed. |dpkg: error processing equivs_1.0.5-3_all.deb (--install): | conflicting packages - not installing equivs |Errors were encountered while processing: | equivs_1.0.5-3_all.deb |=>ROOT<[EMAIL PROTECTED]:/usr/src # So I seem to be in a circular situation: I can't install equiv package just made because I have smail installed. I can't uninstall smail because I have numerous packages that require mail-transport-agent. How do I get out of this circle? Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Re: uninstalling smail when a self compiled MTA is present
The necessary package for telling Debian that you've got a locally built mail-transport-agent installed is "equivs". I don't know whether the hamm version will work right or not... several months back, during either hamm or slink upgrading, my equivs suddenly stopped working; I filed a "bug" report, and the maintainer told me to edit some file and change a version number, at which point everything mysteriously worked again. But don't ask me why -- no explanation was given along with this advice. The "equivs" package only seems to be available from http://www.debian.org and not from any mirror sites. Or at least that was what seemed to be the case when I was doing all of this If "equivs" doesn't work for you, let me know and I can try to dig up exactly what I did. (I'm not at home right now.)
Re: uninstalling smail when a self compiled MTA is present
Hi, my question must have a quite easy answer, however I have not been able to find it yet. Did that mail get through to the list in the first place? On Sun, 20 Dec 1998 15:57:15 -0500, you wrote: >On Sun, Dec 20, 1998 at 08:52:41PM +, Marc Haber wrote: >> How do I tell dpkg that mail-transport-agent is present even if I >> uninstall smail and that I take responsibility? > >Install and configure the dummy package which is there for this reason. |=>ROOT<[EMAIL PROTECTED]:/cdrom/binary-i386 # zgrep Package:.*ummy Packages.gz |Package: svgalib-dummy1 |Package: svgalib-dummyg1 |=>ROOT<[EMAIL PROTECTED]:/cdrom/binary-i386 # How is the package called? Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Re: uninstalling smail when a self compiled MTA is present
On Sun, 20 Dec 1998 15:57:15 -0500, you wrote: >On Sun, Dec 20, 1998 at 08:52:41PM +, Marc Haber wrote: >> How do I tell dpkg that mail-transport-agent is present even if I >> uninstall smail and that I take responsibility? > >Install and configure the dummy package which is there for this reason. |=>ROOT<[EMAIL PROTECTED]:/cdrom/binary-i386 # zgrep Package:.*ummy Packages.gz |Package: svgalib-dummy1 |Package: svgalib-dummyg1 |=>ROOT<[EMAIL PROTECTED]:/cdrom/binary-i386 # How is the package called? Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Re: uninstalling smail when a self compiled MTA is present
On Sun, Dec 20, 1998 at 08:52:41PM +, Marc Haber wrote: > How do I tell dpkg that mail-transport-agent is present even if I > uninstall smail and that I take responsibility? Install and configure the dummy package which is there for this reason. -- --- - - --- - - - --- Ben Collins <[EMAIL PROTECTED]> Debian GNU/Linux UnixGroup Admin - Jordan Systems Inc. [EMAIL PROTECTED] -- -- - - - --- --- -- The Choice of the GNU Generation
uninstalling smail when a self compiled MTA is present
Hi! After compiling my own exim 2.10, I'd like to remove smail that has been installed on my system. |=>ROOT<[EMAIL PROTECTED]:/root # dpkg --purge smail |dpkg: dependency problems prevent removal of smail: | mailagent depends on sendmail | smail | mail-transport-agent; however: | Package sendmail is not installed. | Package smail is to be removed. | Package mail-transport-agent is not installed. | Package smail which provides mail-transport-agent is to be removed. | mailx depends on smail | mail-transport-agent; however: | Package smail is to be removed. | Package mail-transport-agent is not installed. | Package smail which provides mail-transport-agent is to be removed. | anacron depends on smail | sendmail | mail-transport-agent; however: | Package smail is to be removed. | Package sendmail is not installed. | Package mail-transport-agent is not installed. | Package smail which provides mail-transport-agent is to be removed. | mailagent depends on sendmail | smail | mail-transport-agent; however: | Package sendmail is not installed. | Package smail is to be removed. | Package mail-transport-agent is not installed. | Package smail which provides mail-transport-agent is to be removed. | mailx depends on smail | mail-transport-agent; however: | Package smail is to be removed. | Package mail-transport-agent is not installed. | Package smail which provides mail-transport-agent is to be removed. | elm-me+ depends on mail-transport-agent; however: | Package mail-transport-agent is not installed. | Package smail which provides mail-transport-agent is to be removed. | smartlist depends on mail-transport-agent; however: | Package mail-transport-agent is not installed. | Package smail which provides mail-transport-agent is to be removed. | anacron depends on smail | sendmail | mail-transport-agent; however: | Package smail is to be removed. | Package sendmail is not installed. | Package mail-transport-agent is not installed. | Package smail which provides mail-transport-agent is to be removed. |dpkg: error processing smail (--purge): | dependency problems - not removing |Errors were encountered while processing: | smail |=>ROOT<[EMAIL PROTECTED]:/root # How do I tell dpkg that mail-transport-agent is present even if I uninstall smail and that I take responsibility? Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29