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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1873545

Title:
  Permission denied error from show-motd when updates available

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntuwsl/+bug/1873545/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to