← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1926819] Re: Empty MOTD on up-to-date systems (includes fix)

 

This bug was fixed in the package update-notifier - 3.192.40.3

---------------
update-notifier (3.192.40.3) hirsute; urgency=medium

  * debian/control: add lsb-release to the update-notifier-common depends as
    it is used by apt-cdrom-check. (LP: #1927996)
  * data/apt_check.py
    - Only show esm-apps alerts on lts and non-esm distros (LP: #1926990)
    - Update esm-infra alert for distros on ESM mode
    - Show message with number of upgradable packages even if that
      number is zero (LP: #1926819)
    - Get distro name and version directly from /etc/os-release
    - Fallback to lsb_release command if there are any problems using
      /etc/os-release as source of information
    - Show esm-apps status header when running on LTS distro that
      has not yet entered Extended Security Maintenance

 -- Lucas Moura <lucas.moura@xxxxxxxxxxxxx>  Fri, 14 May 2021 16:41:27
-0300

** Changed in: update-notifier (Ubuntu Hirsute)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1926819

Title:
  Empty MOTD on up-to-date systems (includes fix)

Status in update-notifier package in Ubuntu:
  Fix Released
Status in update-notifier source package in Xenial:
  Fix Committed
Status in update-notifier source package in Bionic:
  Fix Released
Status in update-notifier source package in Focal:
  Fix Released
Status in update-notifier source package in Hirsute:
  Fix Released

Bug description:
  [Impact]
  On a system without updates to be installed, not showing any message in motd feels that something went wrong in the backend. Also, currently we are printing unwanted white spaces in that scenario, which is not a good user experience here.

  [Test case]

  To reproduce the issue, you can:

  1. Launch a xenial container
  2. Remove ubuntu-advantage-tools from the system
     This package will make update-notifier show more messages which are not needed in that test
  3. Run an apt update
  4. Install update-notifier
  5. Run apt upgrade
  6. Run /usr/lib/update-notifier/apt_check.py --human-readable
  7. Verify we deliver an empty message

  To verify that the error is fixed:

  1. Run the past scenario until step 4
  2. Install the new update-notifier from this ppa:
  https://launchpad.net/~lamoura/+archive/ubuntu/update-notifier-test-ppa/
  3. Run `/usr/lib/update-notifier/apt-check --human-readable`
  4. Verify that the command print the following message:

     0 updates can be applied immediately.

  [Where problems could occur]

  We are bringing back a behavior that was already present in the
  package, but removed in the last version of it. We will now be
  impacting users that may not be relying in that message anymore. But
  we believe this should not be a huge issue if that happens, since
  users were already relying on the old behavior.

  [Discussion]
  Currently, motd will not output a message if the system does not have any updates to apply. However, this is not ideal since this may cause the impression that there is something wrong with motd or the system. Also, the empty message we produce in that scenario is not completely empty, it does contain some white spaces on it, which is completely unnecessary.

  Because of that, we are bringing back the behavior of printing the
  message:

  0 updates can be applied immediately.

  If no updates need to be applied in the system.

  [Original description]

  
  Starting with update-notifier-common 3.192.30.7 (focal), my up-to-date systems are showing this MOTD on login:

  Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-72-generic x86_64)

  user@host:~$

  I've attached a patch that fixes this issue and adds more test cases.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1926819/+subscriptions