Package: dpkg Version: 1.19.0.4 Severity: normal Hi Guillem and all,
Please consider the following situation: - package 'aa' is unpacked; - package 'aa' has a dependency on package 'bb' (version 2); - package 'bb' version 1 is currently installed; - we're trying to remove package 'bb'. I'd expect we can remove 'bb' (version 1), since dependencies do not have to be satisfied for merely-unpacked packages. Moreover, the dependency 'aa -> bb' was unsatisfied anyway due to a version mismatch, so removing 'bb' does not break any dependency which was satisfied before. Adding '--force-depends' works around the problem, but I'd prefer not having to mass-enable it. Here is a transcript with real packages (aa -> python3-uno, bb -> libreoffice-core): -----------------------------8<----------------------- $ dpkg -s python3-uno | egrep "Depends|Status" Status: install ok unpacked Depends: libreoffice-core (= 1:5.4.2-3), [...] $ dpkg -s libreoffice-core | grep Version Version: 1:5.2.2~rc2-2 $ dpkg --dry-run --force-bad-path --remove libreoffice-core [...] dpkg: dependency problems prevent removal of libreoffice-core: python3-uno depends on libreoffice-core (= 1:5.4.2-3). libreoffice-base-core depends on libreoffice-core (= 1:5.4.2-3). libreoffice-math depends on libreoffice-core (= 1:5.4.2-3). dpkg: error processing package libreoffice-core (--remove): dependency problems - not removing Errors were encountered while processing: libreoffice-core $ dpkg --dry-run --force-bad-path --force-depends --remove libreoffice-core [...] dpkg: libreoffice-core: dependency problems, but removing anyway as you requested: python3-uno depends on libreoffice-core (= 1:5.4.2-3). libreoffice-base-core depends on libreoffice-core (= 1:5.4.2-3). libreoffice-math depends on libreoffice-core (= 1:5.4.2-3). (Reading database ... 147478 files and directories currently installed.) Would remove or purge libreoffice-core (1:5.2.2~rc2-2) ... ----------------------------->8----------------------- Seen same behavior also in dpkg 1.18.24 and 1.17.24. -- System Information: Debian Release: 8.0 Architecture: amd64 (x86_64) Kernel: Linux 4.3.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages dpkg depends on: ii libbz2-1.0 1.0.6-7+b2 ii libc6 2.23-1 ii liblzma5 5.2.2-1.2+b1 ii libselinux1 2.3-2 ii tar 1.29b-1.1 ii zlib1g 1:1.2.8.dfsg-2+b1 dpkg recommends no packages. Versions of packages dpkg suggests: ii apt 1.6~alpha5 pn debsig-verify <none> -- no debconf information