Article View: linux.debian.bugs.dist
Article #6060Bug#1155227: u-a: should not crash when unable to remove dangling symlink as non-root
From: Sergio Gelato
Date: Wed, 25 Nov 2026 10:50
Date: Wed, 25 Nov 2026 10:50
28 lines
3046 bytes
3046 bytes
Package: dpkg Version: 1.22.22 Severity: wishlist The following mostly works as non-root, and can be useful for checking the alternatives without necessarily repairing them: yes '' | update-alternatives --all An exception is if update-alternatives encounters a dangling link; then it exits with an error since it doesn't have permission to fix the problem. It would be more useful to let it check the remaining configurations. To reproduce, one needs a system with a broken alternative. For example one where package python3-jsonschema has been upgraded from before version 3.0.2-1 (which dropped Python 2 support). Then one gets output along the lines of: [... normal output for alternatives that sort before jsonschema ...] Press <enter> to keep the current choice[*], or type selection number: update-alternatives: warning: /etc/alternatives/jsonschema is dangling; it will be updated with best choice There is no program which provides jsonschema. Nothing to configure. update-alternatives: error: unable to remove '/etc/alternatives/jsonschema': Permission denied and update-alternatives exits with code 2 instead of continuing.
Technical Details
Message-ID:
<O3iJz-e3hZ-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Sergio Gelato <sergio.gelato@astro.su.se> Newsgroups: linux.debian.bugs.dist,linux.debian.maint.dpkg Subject: Bug#1155227: u-a: should not crash when unable to remove dangling symlink as non-root Date: Wed, 25 Nov 2026 11:50:01 +0100 Message-ID: <O3iJz-e3hZ-1@gated-at.bofh.it> X-Original-To: "submit@bugs.debian.org" <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Nov 25 10:47:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Sergio Gelato <sergio.gelato@astro.su.se>, 1155227@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-dpkg@lists.debian.org X-Debian-Pr-Message: report 1155227 X-Debian-Pr-Package: dpkg X-Debian-Pr-Source: dpkg X-Halon-ID: 4a97e32e-e8bd-11f1-ba3a-572538bad445 Thread-Topic: u-a: should not crash when unable to remove dangling symlink as non-root Thread-Index: AQHdfMewcw81oeSLEUKKtY6ipNWDvw== Accept-Language: en-SE, sv-SE, it-IT, en-US, en-IE, ja-JP Content-Language: aa X-Originating-IP: [130.237.200.211] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004867 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 28 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 25 Nov 2026 10:45:11 +0000 X-Original-Message-ID: <ba1e2db0f95343adb0fdb8ddea706803@astro.su.se>