[From nobody Thu May 28 16:33:08 2026
Received: (at submit) by bugs.debian.org; 25 May 2026 16:35:56 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-18.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,FOURLA,HAS_PACKAGE,NO_RELAYS,XMAILER_REPORTBUG
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 25; hammy, 150; neutral, 167; spammy,
 0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--python3, 0.000-+--HTo:N*Debian,
 0.000-+--H*Ad:N*Bug
Return-path: &lt;tommi.hoynalanmaa@iki.fi&gt;
Received: via submission by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;tommi.hoynalanmaa@iki.fi&gt;) id 1wRYHS-005Pzc-0T
 for submit@bugs.debian.org; Mon, 25 May 2026 16:35:56 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: =?utf-8?b?VG9tbWkgSMO2eW7DpGzDpG5tYWE=?= &lt;tommi.hoynalanmaa@iki.fi&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: piuparts: Problem removing link autovt@.service causing false
 positive outcome
Message-ID: &lt;177972695028.92467.16786259894945450577.reportbug@th-unstable2.tohoyn.fi&gt;
X-Mailer: reportbug 13.2.0
Date: Mon, 25 May 2026 19:35:50 +0300
Delivered-To: submit@bugs.debian.org

Package: piuparts
Version: 1.6.0
Severity: important
X-Debbugs-Cc: tommi.hoynalanmaa@iki.fi

Dear Maintainer,

Piuparts has been starting to give false positive outcome for
several packages. Piuparts worked with g-golf before but now it gives
an error with package g-golf-gtk-4-examples_0.8.7-3_all.deb.
The error occurs in the removal of the packages. The error is:
---cut here---
1m47.2s ERROR: FAIL: Package purging left files on system:
  /etc/systemd/system/autovt@.service -&gt; /usr/lib/systemd/system/getty@.service not owned

1m47.2s ERROR: FAIL: After purging files have been modified:
  /	 not owned

1m47.2s ERROR: FAIL: Installation and purging test.
---cut here---

Steps to reproduce the error:
1. Install git-buildpackage and sbuild if you don't have them already.
2. If you have package g-golf installed to your system uninstall it.
3. Create a new work directory and cd into it.
4. Create file build.sh with the following contents:
---cut here---
#!/bin/sh

sbuild -s -d unstable --source-only-changes \
       --run-lintian \
       --lintian-opt=-I --lintian-opt=--pedantic $*
---cut here---
5. Run the following commands:
---cut here---
chmod +x build.sh
sudo apt-get build-dep g-golf
mkdir build-area
gbp clone https://salsa.debian.org/tohoyn-guest/g-golf.git
cd g-golf
gbp buildpackage --git-builder=$(pwd)/../build.sh
cd ../build-area
sudo piuparts --shell-on-error g-golf-gtk-4-examples_0.8.7-3_all.deb
dpkg -S /etc/systemd/system/autovt@.service
ls -l /etc/systemd/system/autovt@.service
readlink -f /etc/systemd/system/autovt@.service
exit
---cut here---

Expected results: The piuparts tests should pass.

Actual results: Piuparts reports the error described before.
Commands in point 4 show that /etc/systemd/system/autovt@.service
is not owned by any package but it is present in the system.

This bug has been reproduced in an up-to-date Debian unstable environment.

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 7.0.9+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages piuparts depends on:
ii  debsums          3.0.2.4
ii  libjs-sphinxdoc  9.1.0-3
ii  lsb-release      12.1-2
ii  lsof             4.99.4+dfsg-2
ii  mount            2.42-6
ii  piuparts-common  1.6.0
ii  python3          3.13.9-3+b1
ii  python3-debian   1.1.0

Versions of packages piuparts recommends:
ii  adequate     0.17.6+b1
ii  debootstrap  1.0.143
ii  mmdebstrap   1.5.7-3

Versions of packages piuparts suggests:
pn  docker.io  &lt;none&gt;
ii  schroot    1.6.13-8
ii  uidmap     1:4.19.3-2

-- no debconf information
]