apt-get command line upgrade, to know when to restart

Bug #1411637 reported by Wise Melon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu GNOME
Confirmed
Undecided
Unassigned
apt (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When you run the application Software Updater and I install some updates which need a restart of your computer, it tells you that you need to restart your computer. But when running this command in Terminal: sudo apt-get upgrade

It is not clear whether or not the packages which you have upgraded require a restart of the computer once they have finished upgrading.

So what would be really useful instead of having to go and look in your /var/run/ folder to check if /var/run/reboot-required exists, it would be really good if on completion of the command for it to somehow just tell you if a restart is required. Even if it just says either:

RESTART REQUIRED = TRUE

or

RESTART REQUIRED = FALSE

Depending on whether or not a restart is needed. Or as it used to do for it to tell you here: Restart_to_complete_updates.bmp

Image refereed to has been attached.

System information:

Description: Ubuntu 14.10
Release: 14.10

Package version information:

apt:
  Installed: 1.0.9.2ubuntu2
  Candidate: 1.0.9.2ubuntu2
  Version table:
 *** 1.0.9.2ubuntu2 0
        500 http://gb.archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) wrote :
MagicMirror (0x7fffff)
Changed in apt (Ubuntu):
status: New → Confirmed
Changed in ubuntu-gnome:
status: New → Confirmed
Revision history for this message
Julian Andres Klode (juliank) wrote :

You should get the same popup when running apt as you do with update-manager or any other package management tool for that matter.

Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) wrote :

Well, if you are doing this in the command-line, then generally it would be seen as strange if something GUI wise popped up. And especially so would it be useless if you were in the console with no GUI or you were using apt as a dependency of another program. Then this popup might become quite a nuisance.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.