[Bug 1873545] Re: Permission denied error from show-motd when updates available
Balint Reczey
balint.reczey at canonical.com
Tue May 19 10:26:28 UTC 2020
Maintainer scripts must not change files installed/owned by other
package.
The fix should be done in u-r-u.
--- update-motd-3.6.orig/debian/show-motd.postinst
+++ update-motd-3.6/debian/show-motd.postinst
@@ -0,0 +1,43 @@
+
+#!/bin/sh
...
+case "$1" in
+
+ configure)
+ # if it's WSL and we have 91-release-upgrade, disable it
+ if [ -e "/proc/sys/fs/binfmt_misc/WSLInterop" ] && [ -e "/etc/update-motd.d/91-release-upgrade" ]; then
+ [ -x "/etc/update-motd.d/91-release-upgrade" ] && chmod -x "/etc/update-motd.d/91-release-upgrade"
+ fi
** Changed in: update-motd
Status: In Progress => Invalid
** Tags removed: patch
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1873545
Title:
Permission denied error from show-motd when updates available
Status in Ubuntu WSL:
In Progress
Status in update-motd:
Invalid
Status in ubuntu-release-upgrader package in Ubuntu:
Confirmed
Status in update-motd package in Ubuntu:
Confirmed
Bug description:
motd on demo of 20.04:
Welcome to Ubuntu 20.04 LTS (GNU/Linux 4.19.84-microsoft-standard
x86_64)
....
26 updates can be installed immediately.
0 of these updates are security updates.
To see these additional updates run: apt list --upgradable
/usr/lib/ubuntu-release-upgrader/release-upgrade-motd: 31: cannot
create /var/lib/ubuntu-release-upgrader/release-upgrade-available:
Permission denied
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntuwsl/+bug/1873545/+subscriptions
More information about the Ubuntu-sponsors
mailing list