Bug#1135601: apt: Add stale lock removal hint for users
Ashwin Gundarapu <[email protected]> Sun, 3 May 2026 17:24:27 +0530
| Newsgroups | gmane.linux.debian.apt.devel |
|---|---|
| Message-ID | <CANAeh8dGDPif3_HSPj0-vGjcT9Uutq5atzU9cQ9ByuqjZsrcqQ__14973.2619685651$1777809443$gmane$org@mail.gmail.com> |
--0000000000000b7f2b0650e87cf5 Content-Type: multipart/alternative; boundary="0000000000000b7f2a0650e87cf3" --0000000000000b7f2a0650e87cf3 Content-Type: text/plain; charset="UTF-8" Package: apt Severity: wishlist Tags: patch When apt encounters a stale lock file with no owning process, it warns users not to remove it but gives no actionable advice. This patch adds a clear hint with the exact command to run. --0000000000000b7f2a0650e87cf3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Package: apt<br>Severity: wishlist<br>Tags: patch<br><br>W= hen apt encounters a stale lock file with no owning process,<br>it warns us= ers not to remove it but gives no actionable advice.<br>This patch adds a c= lear hint with the exact command to run.</div> --0000000000000b7f2a0650e87cf3-- --0000000000000b7f2b0650e87cf5 Content-Type: text/x-patch; charset="US-ASCII"; name="apt-stale-lock-hint.patch" Content-Disposition: attachment; filename="apt-stale-lock-hint.patch" Content-Transfer-Encoding: base64 Content-ID: <f_moppptue0> X-Attachment-Id: f_moppptue0 LS0tIGFwdC0zLjMuMC1vcmlnaW5hbC9hcHQtcGtnL2NvbnRyaWIvZmlsZXV0bC5jYwkyMDI2LTA1 LTAzIDE3OjIwOjQwLjEzMDI1MDMwNyArMDUzMAorKysgYXB0LTMuMy4wL2FwdC1wa2cvY29udHJp Yi9maWxldXRsLmNjCTIwMjYtMDUtMDMgMTc6MjI6MTEuODk4MDkzNzk1ICswNTMwCkBAIC0zMjAs NiArMzIwLDcgQEAKIAkgICAgX2Vycm9yLT5FcnJubygib3BlbiIsIF8oIkNvdWxkIG5vdCBnZXQg bG9jayAlcyIpLCBGaWxlLmNfc3RyKCkpOwogCiAJIF9lcnJvci0+Tm90aWNlKF8oIkJlIGF3YXJl IHRoYXQgcmVtb3ZpbmcgdGhlIGxvY2sgZmlsZSBpcyBub3QgYSBzb2x1dGlvbiBhbmQgbWF5IGJy ZWFrIHlvdXIgc3lzdGVtLiIpKTsKKwkgX2Vycm9yLT5Ob3RpY2UoXygiSWYgbm8gcGFja2FnZSBt YW5hZ2VyIGlzIHJ1bm5pbmcsIHJlbW92ZSB0aGUgc3RhbGUgbG9jayB3aXRoOiBzdWRvIHJtIC1m ICVzIiksIEZpbGUuY19zdHIoKSk7CiAgICAgICB9CiAKICAgICAgIHJldHVybiAtMTsK --0000000000000b7f2b0650e87cf5--