[Pkg-javascript-devel] Bug#1034933: node-whatwg-fetch: missing Breaks+Replaces for libjs-fetch when upgrading from bullseye

Helmut Grohne helmut at subdivi.de
Thu Apr 27 13:59:52 BST 2023


Package: node-whatwg-fetch
Version: 3.6.2-6
Severity: serious
Justification: dpkg unpack error

Attempting to unpack node-whatwg-fetch/3.6.2-6 from Debian bookworm
on a minimal Debian bullseye with libjs-fetch/3.5.0-1
installed, causes an unpack error from dpkg due to
/usr/share/nodejs/whatwg-fetch/fetch.js being contained in both packages.

| Selecting previously unselected package node-whatwg-fetch.
| dpkg: considering deconfiguration of libjs-fetch, which would be broken by installation of node-whatwg-fetch ...
| dpkg: yes, will deconfigure libjs-fetch (broken by node-whatwg-fetch)
| (Reading database ... 4693 files and directories currently installed.)
| Preparing to unpack .../node-whatwg-fetch_3.6.2-6_all.deb ...
| De-configuring libjs-fetch (3.5.0-1) ...
| Unpacking node-whatwg-fetch (3.6.2-6) ...
| dpkg: error processing archive ./node-whatwg-fetch_3.6.2-6_all.deb (--unpack):
|  trying to overwrite '/usr/share/nodejs/whatwg-fetch/fetch.js', which is also in package libjs-fetch 3.5.0-1
| Errors were encountered while processing:
|  ./node-whatwg-fetch_3.6.2-6_all.deb


Please ensure that node-whatwg-fetch has sufficient Breaks and Replaces declarations.

Helmut



More information about the Pkg-javascript-devel mailing list