hello-robot / stretch_install

Install scripts for the Stretch mobile manipulators from Hello Robot Inc.
Other
7 stars 14 forks source link

Apt upgrade gives prompt: "Package distributor has shipped an updated version. What would you like to do about it?" #55

Closed hello-binit closed 9 months ago

hello-binit commented 9 months ago

With PR #54, the /etc/update-motd.d/10-help-text was changed to provide useful links. However, when performing an sudo apt upgrade, APT tried to replace the 10-help-text file, causing a interactive prompt to appear:

Preparing to unpack .../base-files_12ubuntu4.5_amd64.deb ...
Unpacking base-files (12ubuntu4.5) over (12ubuntu4.4) ...
Setting up base-files (12ubuntu4.5) ...

Configuration file '/etc/update-motd.d/10-help-text'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** 10-help-text (Y/I/N/O/D/Z) [default=N] ? D
--- /etc/update-motd.d/10-help-text     2024-01-22 02:22:56.968170804 -0500
+++ /etc/update-motd.d/10-help-text.dpkg-new    2024-01-02 09:57:37.000000000 -0500
@@ -21,5 +21,6 @@
 #    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

 printf "\n"
-printf " * Documentation:  https://docs.hello-robot.com/\n"
-printf " * Support:        https://forum.hello-robot.com/\n\n"
+printf " * Documentation:  https://help.ubuntu.com\n"
+printf " * Management:     https://landscape.canonical.com\n"
+printf " * Support:        https://ubuntu.com/pro\n"

Configuration file '/etc/update-motd.d/10-help-text'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** 10-help-text (Y/I/N/O/D/Z) [default=N] ? N
motd-news.service is a disabled or a static unit not running, not starting it.

This is an issue because users who do not know about this change may be confused by the unexpected prompt. There may be a way to disable it.