<div dir="ltr"><br><div>dunno... bit of a guess, but it looks like it is getting messed up because you need a mail-transfer-agent, but the MTA does not need to be postfix.</div><div><br></div><div><a href="https://packages.ubuntu.com/bionic/mail-transport-agent">https://packages.ubuntu.com/bionic/mail-transport-agent</a><br></div><div><br></div><div>I would try:</div><div><br></div><div>apt --simulate install nullmailer</div><div><br></div><div>so that should make postfix removable without losing the mail-transfer-agent target, and thus without triggering libc armageddon.</div><div><br></div><div><br></div><div>I don't recommend removing libc... that is never going to end well... better off re-installing from scratch. You could upgrade to a different version, but removing will likely leave the userland unusable.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 15, 2020 at 10:20 PM Gary Aitken <<a href="mailto:ubuntu@dreamchaser.org">ubuntu@dreamchaser.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I'm attempting to manage a google-compute system running ubuntu;<br>
I normally run a freebsd system so I'm out of my element here and web<br>
searches haven't helped:<br>
<br>
81~16.04.1-Ubuntu SMP Mon May 11 14:56:45 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux<br>
<br>
When originally built, the system had a screwed-up postfix installation;<br>
in attempting to solve this problem, I wanted to uninstall postfix and<br>
reinstall it.  However, I don't think I should do that because the postfix<br>
installation has an issue:<br>
<br>
$ aptitude why postfix<br>
i   automysqlbackup Depends  bsd-mailx | mailx<br>
i A bsd-mailx       Depends  default-mta | mail-transport-agent<br>
i A postfix         Provides mail-transport-agent<br>
<br>
$ dpkg --simulate --remove postfix<br>
dpkg: could not open log '/var/log/dpkg.log': Permission denied<br>
dpkg: dependency problems prevent removal of postfix:<br>
  bsd-mailx depends on default-mta | mail-transport-agent; however:<br>
   Package default-mta is not installed.<br>
   Package postfix which provides default-mta is to be removed.<br>
   Package mail-transport-agent is not installed.<br>
   Package postfix which provides mail-transport-agent is to be removed.<br>
  bsd-mailx depends on default-mta | mail-transport-agent; however:<br>
   Package default-mta is not installed.<br>
   Package postfix which provides default-mta is to be removed.<br>
   Package mail-transport-agent is not installed.<br>
   Package postfix which provides mail-transport-agent is to be removed.<br>
<br>
dpkg: error processing package postfix (--remove):<br>
  dependency problems - not removing<br>
Processing triggers for libc-bin (2.23-0ubuntu10) ...<br>
dpkg: cycle found while processing triggers:<br>
  chain of packages whose triggers are or may be responsible:<br>
   libc-bin -> libc-bin<br>
  packages' pending triggers which are or may be unresolvable:<br>
   libc-bin: ldconfig<br>
dpkg: error processing package libc-bin (--remove):<br>
  triggers looping, abandoned<br>
Errors were encountered while processing:<br>
  postfix<br>
  libc-bin<br>
<br>
If I consider removing libc-bin so I can re-install it and correct the<br>
dependency loop, I am unable to do so:<br>
<br>
$ dpkg --simulate --remove libc-bin<br>
dpkg: could not open log '/var/log/dpkg.log': Permission denied<br>
dpkg: error processing package libc-bin (--remove):<br>
  this is an essential package; it should not be removed<br>
Processing triggers for libc-bin (2.23-0ubuntu10) ...<br>
dpkg: cycle found while processing triggers:<br>
  chain of packages whose triggers are or may be responsible:<br>
   libc-bin -> libc-bin<br>
  packages' pending triggers which are or may be unresolvable:<br>
   libc-bin: ldconfig<br>
dpkg: error processing package libc-bin (--remove):<br>
  triggers looping, abandoned<br>
Errors were encountered while processing:<br>
  libc-bin<br>
  libc-bin<br>
<br>
I then considered forcing removal of postfix by ignoring dependencies, but<br>
that has the same libc-bin loop issue:<br>
<br>
$ dpkg --simulate --ignore-depends bsd-mailx --purge postfix<br>
dpkg: could not open log '/var/log/dpkg.log': Permission denied<br>
(Reading database ... 171222 files and directories currently installed.)<br>
Would remove or purge postfix (3.1.0-3ubuntu0.3) ...<br>
Processing triggers for libc-bin (2.23-0ubuntu10) ...<br>
dpkg: cycle found while processing triggers:<br>
  chain of packages whose triggers are or may be responsible:<br>
   libc-bin -> libc-bin<br>
  packages' pending triggers which are or may be unresolvable:<br>
   libc-bin: ldconfig<br>
dpkg: error processing package libc-bin (--purge):<br>
  triggers looping, abandoned<br>
Errors were encountered while processing:<br>
  libc-bin<br>
<br>
Can anyone give me some clues on how to resolve this (i.e. get rid of the<br>
libc-bin self-reference?<br>
The main goal is to uninstall postfix and re-install it, without uninstalling<br>
the automysqlbackup as this is a production system and the autobackup is<br>
working properly.  I believe the postfix dependency is for cases where the<br>
auto-backup fails; it's also preventing mail from being delivered for failing<br>
cron jobs.<br>
<br>
Sorry for the naivete of this; I'm new to linux.<br>
BTW, I know I can't actually run these commands unprivileged if I drop the<br>
--simulate.<br>
<br>
Thanks,<br>
<br>
Gary<br>
<br>
-- <br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</blockquote></div>