Matthew - I did a few upgrade path tests on deb12 and concluded that the permission error comes from which rc1 version the user started with. I got a variety of results depending on 'which' rc1 dpkg was installed and how many steps the system has been through. Some of the earlier rc1 dpkg have errors you fixed in later updates to the rc1 dpkg.
Unfortunately the problem report didn't say 'which' rc1 dpkg was the starting point. Maybe a 'grep weewx /var/log/dpkg.log' might help if you wanted to dig that deeply. A clean v4 to latest v5 rc is clean other than the Directory not empty messages.... Unpacking weewx (5.0.0rc3-2) over (4.10.2-1) ... dpkg: warning: unable to delete old directory '/usr/share/weewx/user': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/udev/rules.d': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard/smartphone/icons': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard/smartphone': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard/lang': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard/backgrounds': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard/RSS': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard/NOAA': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Smartphone/lang': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Smartphone/icons': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Smartphone': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Seasons/lang': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Seasons/font': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Seasons/NOAA': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Seasons': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Rsync': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Mobile/lang': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Mobile': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins/Ftp': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/skins': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/scripts': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/apache/conf.d': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/apache/conf-available': Directory not empty dpkg: warning: unable to delete old directory '/etc/weewx/apache': Directory not empty On Tuesday, January 9, 2024 at 10:34:52 AM UTC-8 matthew wall wrote: the messages about 'dpkg: warning: unable to delete old directory' are expected, and should not cause any problems. the error is coming from the postinst script, probably where we set permissions. it has been working smoothly on clean installs and clean upgrades, but on some upgrades it fails. could you post the output from the following: cat /etc/default/weewx ls -la /var/lib/weewx ls -la /usr/share/weewx ls -la /etc/weewx ls -la /var/www/html/weewx -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/079a3fd4-9d66-46e6-af30-b73c174b1101n%40googlegroups.com.
