Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 4465F781925 for <~alpine/users@lists.alpinelinux.org>; Tue, 4 Aug 2020 04:35:35 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 2359715D2 for <~alpine/users@lists.alpinelinux.org>; Tue, 4 Aug 2020 00:35:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 04 Aug 2020 00:35:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ml1.net; h=date :from:to:subject:message-id:mime-version:content-type; s=fm1; bh=xVMhQnDYA7tDZEtiqB3JAXDV1eHVeRW2nNkVAdrAN3c=; b=An3x5+ar32hT ZX9oYsNd4nLai1m5MVZZ7LgpWaoFb392kqF71+YH74z9unz10suKYDg0VclYSnxR +5TAW4X+UxPQ/bj4vIZTTCYz/ePLz80pSLojdFSiKnWKCYBs+CM4R9Zm80KjCkiM rjmpJqtzBj2pjjHaST7Y9ORlBagpJfEVr4NwvWRoUw9dqTbowJotljCU0u7U1ypa woQbtcECr3+U/PUOy9vC7HzqLH3uJbI2lx+fQOu8AqrnuvCuW9ilOYX5/ikf8nyT TPaykL1oqR/PksvH4eEyBvfmvj23ssbgXaG0pwioxkT75z3Ml6KTEl5sVfSNtJ2y xfgdvUJ5BQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=xVMhQnDYA7tDZEtiqB3JAXDV1eHVe RW2nNkVAdrAN3c=; b=F7SYxvF23hDI308OiIEOON5h45U9IpBqktbJDSHZbzL0h n5yj336VY28iOgBrNZzY5pQ8T2sXAdVUrhlP4pNlANRYrCsV8wSa7raoP8eU2xgS mbSbWBICgajqpNRMUCax+4/ZyfcKrrXA5UFq0OwG1a1vV4J4YArkC0CvCkptbPLV XtBFI0QPDe4VT8MYOLOJ7GlUI2mJEWGG5EcbDFkQjkDDBCuCuxxU18pFqtHLot27 hblyBO/sVR0lucWBKDCXRTapGIH8PcI7/nSmimydpCZlB8VPpOpVsrcK6R9Y+yCD 8XAKD3yWV7lyvHi/SiUuqnOgnY6f3LeoBv5asmtTw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrjeehgdekhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggusehttdertddttd dvnecuhfhrohhmpeghihhnshhtohhnucghvghinhgvrhhtuceofihinhhsthhonhesmhhl uddrnhgvtheqnecuggftrfgrthhtvghrnhepffehgedtffefgeelieevgeekuedttdevfe fgtdeftefhgeekteetgeeitedvtdelnecuffhomhgrihhnpegrlhhpihhnvghlihhnuhig rdhorhhgnecukfhppeejhedrjedvrdduheehrddvudenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeifihhnshhtohhnsehmlhdurdhnvght X-ME-Proxy: Received: from ml1.net (c-75-72-155-21.hsd1.wi.comcast.net [75.72.155.21]) by mail.messagingengine.com (Postfix) with ESMTPA id 2BB8F30600A6 for <~alpine/users@lists.alpinelinux.org>; Tue, 4 Aug 2020 00:35:33 -0400 (EDT) Date: Mon, 3 Aug 2020 23:35:31 -0500 From: Winston Weinert To: ~alpine/users@lists.alpinelinux.org Subject: How to address apk file conflicts? Message-ID: <20200804043531.ltdodl7vps2cywns@ml1.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sometimes I encounter an alpine box with apk errors: / # apk add nethack (1/1) Installing nethack (3.6.6-r0) Executing busybox-1.31.1-r16.trigger 1 error; 28 MiB in 23 packages My usual approach to fixing these issues is to run "apk fix". Sometimes it fixes it, other times it isn't fixable due to a file conflict: / # apk fix (1/1) Reinstalling perl-doc (5.30.3-r0) ERROR: perl-doc-5.30.3-r0: trying to overwrite usr/share/man/man3/Data::Dumper.3pm.gz owned by perl-data-dumper-doc-2.173-r3. 1 error; 23 MiB in 19 packages In a situation such as the above, my solution is to delete one of the affected packages, and report the conflict to https://gitlab.alpinelinux.org/alpine/aports/-/issues Is there a better recourse than deleting one of the conflicting packages? Is there a mechanism in apk to manually resolve file conflicts? Unfortunately things like "abuild -r" and ansible's apk module will fail when apk fails even if the overall operation was a success. Happy apk-ing, Winston Weinert winny.tech