[Bug 1571174] Re: package squid3 failed to install/upgrade: dependency problems - leaving triggers unprocessed

Robie Basak 1571174 at bugs.launchpad.net
Tue Jun 7 17:29:52 UTC 2016


I don't seem to be able to reproduce the original bug. This is likely
due to the dpkg fix in 1.18.4ubuntu1.1 that has already landed. However
we know that there could exist edge cases that would still cause an
upgrade failure without the Breaks clause, so I think this SRU is still
worth landing. I have verified that, with squid installed, I can upgrade
to xenial-proposed from wily (using apt-get dist-upgrade after
manipulating sources.list).

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/1571174

Title:
  package squid3 failed to install/upgrade: dependency problems -
  leaving triggers unprocessed

Status in dpkg package in Ubuntu:
  Invalid
Status in squid3 package in Ubuntu:
  Fix Released
Status in dpkg source package in Xenial:
  Fix Released
Status in squid3 source package in Xenial:
  Fix Committed

Bug description:
  [ SRU Justification ]
  Older versions of ufw had an interest-await trigger, causing trigger loops in some cases, especially the case of upgrading squid3.

  The newer version fixed this, however if squid is upgraded first,
  that's no help.

  [ Test Case ]
  == In a wily chroot with updates/security enabled ==
  apt-get install ufw squid3
  sed -i -e 's/wily/xenial/g' /etc/apt/sources.list
  apt-get update
  apt-get dist-upgrade

  == Repeat the above with xenial-proposed added before the upgrade ==
  Should succeed if either squid or dpkg have been updated for the Breaks.

  [ Test Case 2 ]

  [racb] I noticed that this doesn't reproduce every time, so try it a
  few times.

  Steps to reproduce:

  lxc launch ubuntu:wily squid3-upgrade
  lxc exec squid3-upgrade bash
  apt-get update && apt-get -y dist-upgrade
  apt-get install -y squid3 ufw
  sed -i s/wily/xenial/g /etc/apt/sources.list
  apt-get update
  systemctl mask systemd-sysctl.service  # workaround for LP: #1580984
  DEBIAN_FRONTEND=noninteractive apt-get -y -o DPkg::options::=--force-confnew dist-upgrade

  Expected result: success

  Actual result:

  dpkg: dependency problems prevent processing triggers for ufw:
   ufw depends on python3; however:
    Package python3 is not configured yet.
   ufw depends on python3:any (>= 3.3.2-2~); however:
    Package python3 is not configured yet.

  dpkg: error processing archive /var/cache/apt/archives/squid3_3.5.12-1ubuntu7_all.deb (--unpack):
   dependency problems - leaving triggers unprocessed
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  Cleanup after test:

  exit
  lxc delete -f squid3-upgrade

  [ Original Report ]
  During an upgrade from 15.10 to 16.04, upgrading squid3 erred out...

  ProblemType: Package
  DistroRelease: Ubuntu 16.04
  Package: squid3 3.3.8-1ubuntu16.2
  ProcVersionSignature: Ubuntu 4.2.0-34.39-generic 4.2.8-ckt4
  Uname: Linux 4.2.0-34-generic x86_64
  ApportVersion: 2.19.1-0ubuntu5
  Architecture: amd64
  Date: Sat Apr 16 05:33:51 2016
  DuplicateSignature: package:squid3:3.3.8-1ubuntu16.2:dependency problems - leaving triggers unprocessed
  ErrorMessage: dependency problems - leaving triggers unprocessed
  InstallationDate: Installed on 2015-12-07 (131 days ago)
  InstallationMedia: Ubuntu-Server 15.10 "Wily Werewolf" - Release amd64 (20151021)
  RelatedPackageVersions:
   dpkg 1.18.4ubuntu1
   apt  1.2.10ubuntu1
  SourcePackage: squid3
  Title: package squid3 3.3.8-1ubuntu16.2 failed to install/upgrade: dependency problems - leaving triggers unprocessed
  UpgradeStatus: Upgraded to xenial on 2016-04-16 (0 days ago)
  modified.conffile..etc.apparmor.d.usr.sbin.squid3: [deleted]
  modified.conffile..etc.init.d.squid3: [deleted]
  modified.conffile..etc.init.squid3.conf: [deleted]
  modified.conffile..etc.logrotate.d.squid3: [deleted]
  modified.conffile..etc.resolvconf.update.libc.d.squid3: [deleted]
  modified.conffile..etc.squid3.errorpage.css: [deleted]
  modified.conffile..etc.squid3.msntauth.conf: [deleted]
  modified.conffile..etc.squid3.squid.conf: [deleted]
  modified.conffile..etc.ufw.applications.d.squid3: [deleted]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1571174/+subscriptions



More information about the foundations-bugs mailing list