When you login, you are shown "X packages can be updated, Y are security updates," Is there a terminal command that will give this message on demand?
120847
When I log in to a TTY I get the following nice text:  Ubuntu 16.04.03 LTS Log-in: username Password: Last log-in date/time Welcome to Ubuntu 16.04.03 LTS   * Documentation:  * Management:  * Support:  9 packages to update 4 updates are security updates   I would like the last 2 lines repeated every time I open a GUI terminal for all users in the adm group (but will settle for having the entire thing displayed each and every time I open a GUI Terminal for all users)  I tried the obvious:  fab-root@fab-ux-predator:~ $ cd /etc/update-motd.d/ fab-root@fab-ux-predator:/etc/update-motd.d $ ./90-updates-available  fab-root@fab-ux-predator:/etc/update-motd.d $ cat /var/lib/update-notifier/updates-available cat: /var/lib/update-notifier/updates-available: Permission denied fab-root@fab-ux-predator:/etc/update-motd.d $   What am I missing?  P.S. Obviously I can chmod o+r the file, but how future-proof would that be?
6338
So the default Ubuntu SSH banner has some cool stuff, mainly that it shows the packages that can be updated and whatnot. So I want to preserve those values, while customizing the rest of it.  I've already seen that I can point sshd_config to the file that would contain the text. I'm just unclear what commands will produce the update text.   For the record, what I'm talking about is this:  0 packages can be updated. 0 updates are security updates.   Help would be appreciated. Thanks so much.
9527
I keep getting this warning whenever I try to run sudo apt-get update.  W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise-updates_main_binary-i386_Packages) W: You may want to run apt-get update to correct these problems   Below is the output from /etc/apt/sources.list file:  deb http://archive.ubuntu.com/ubuntu precise main restricted deb-src http://archive.ubuntu.com/ubuntu precise main restricted  deb http://archive.ubuntu.com/ubuntu precise-updates main restricted deb-src http://archive.ubuntu.com/ubuntu precise-updates main restricted  deb http://archive.ubuntu.com/ubuntu precise universe deb-src http://archive.ubuntu.com/ubuntu precise universe deb http://archive.ubuntu.com/ubuntu precise-updates universe deb-src http://archive.ubuntu.com/ubuntu precise-updates universe  deb http://archive.ubuntu.com/ubuntu precise multiverse deb-src http://archive.ubuntu.com/ubuntu precise multiverse deb http://archive.ubuntu.com/ubuntu precise-updates multiverse deb-src http://archive.ubuntu.com/ubuntu precise-updates multiverse  deb http://archive.ubuntu.com/ubuntu precise-security main restricted deb-src http://archive.ubuntu.com/ubuntu precise-security main restricted deb http://archive.ubuntu.com/ubuntu precise-security universe deb-src http://archive.ubuntu.com/ubuntu precise-security universe deb http://archive.ubuntu.com/ubuntu precise-security multiverse deb-src http://archive.ubuntu.com/ubuntu precise-security multiverse   How do I fix it?
28310
I understand that in apt, the command update, updates the list of available packages, but it does not upgrade software that was already installed from these packages.  I also understand that upgrade upgrades any software that I already installed from a package I updated with update as described above.  What was the reason of the Ubuntu/Debian developers to do this splitting of update and upgrade instead work with one command to do both tasks?  This is more of a question on the architectural philosophy of the Ubuntu developers.
29290
I keep receiving the following notification about new updates:    If I then run the Software Updater, however, I don't receive any of these updates on Ubuntu 16.04.    Does someone have the same problem?
41245
I haven't seen this message from Update Manager before, and I have not been able to google up any info.  What will be installed when I click Install?  (Clicking "Description of Update" got me nothing...)
1944
I'm using Ubuntu 16.04.3 LTS, on a 64-bit system.   There are two available updates in "Updates" section of the Ubuntu Software, named OS Updates and Software respectively:      I usually update through Software Updater utility, (and occasionally used sudo apt update and sudo apt upgrade as recommended by some software installation tutorials)- anything that I think is required. So why is Ubuntu Software showing these updates? Should I install them?  As far as I know, these types of updates, if you look at the list, aren't ever available in the Software Updater.
40152
How can I see which application and what processes are running recently after the login using terminal command.
1746
How do I limit the updates that are installed to those from a specific set of repositories? Is this at all possible?
22101
Update Manager is constantly offering me updates (e.g. security fixes, updates from PPAs).  How can I tell my Ubuntu installation to automatically download and install updates whenever they become available?
111224
I am downloading a java package and in order to update I need to refresh the package list. How do I do that?
57711
I was wondering why the command do-release-upgrade doesn't require sudo? I mean, it does significantly change your system, so I would have guessed it requires sudo.   is from ubuntu self, but it isn't that helpful. I just want to know how this is secure for the integrity for my system, if every user can access this command.   Thanks in advance.  [EDIT]:  I used a new terminal window, thus no sudo that wasn't expired yet, and I used the command do-release-upgrade NOT sudo do-release-upgrade.So even with unexpired sudo I should be unable to upgrade.  [EDIT 2]:
89523
I'm using Ubuntu 11.04. The update manager once found the new release 'oneiric', and still shows up this screen when I log on use ssh:  Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-14-generic x86_64)   * Documentation:  https://help.ubuntu.com/  0 packages can be updated. 0 updates are security updates.  New release 'oneiric' available. Run 'do-release-upgrade' to upgrade to it.  Last login: Wed Apr 25 16:22:48 2012 from ***   But I didn't upgrade then, and change my apt sources. And now I cannot upgrade to 'oneiric'. do-relase-upgrade shows:  $ sudo do-release-upgrade Checking for a new ubuntu release No new release found $   And apt-get dist-upgrade shows:  $ sudo apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. $   I can successfully update all my packages.    File contents of source.list:  $ cat /etc/apt/sources.list ## See sources.list(5) for more information, especialy # Remember that you can only use http, ftp or file URIs  deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty main universe restricted multiverse deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty main universe restricted multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty-security universe main multiverse restricted deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty-security universe main multiverse restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty-updates universe main multiverse restricted deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty-updates universe main multiverse restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty-backports universe main multiverse restricted deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty-backports universe main multiverse restricted   # deb http://ubuntu.dormforce.net/ubuntu/ lucid main universe restricted multiverse # deb-src http://ubuntu.dormforce.net/ubuntu/ lucid main universe restricted multiverse # deb http://ubuntu.dormforce.net/ubuntu/ lucid-security universe main multiverse restricted # deb-src http://ubuntu.dormforce.net/ubuntu/ lucid-security universe main multiverse restricted # deb http://ubuntu.dormforce.net/ubuntu/ lucid-updates universe main multiverse restricted # deb-src http://ubuntu.dormforce.net/ubuntu/ lucid-updates universe main multiverse restricted  # CDROMs are managed through the apt-cdrom tool. # deb http://archive.canonical.com lucid partner # deb http://archive.canonical.com lucid-security partner # deb http://archive.canonical.com lucid-updates partner # deb-src http://archive.canonical.com lucid partner # deb-src http://archive.canonical.com lucid-security partner # deb-src http://archive.canonical.com lucid-updates partner   #medibuntu repo # deb http://packages.medibuntu.org/ lucid free non-free # deb-src http://packages.medibuntu.org/ lucid free non-free  # deb http://extras.ubuntu.com/ubuntu maverick main #Third party developers repository deb http://mirrors.sohu.com/ubuntu/ natty main restricted multiverse universe deb-src http://mirrors.sohu.com/ubuntu/ natty main universe restricted multiverse #Added by software-properties deb http://security.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted deb-src http://mirrors.sohu.com/ubuntu/ natty-security universe main multiverse restricted deb http://mirrors.sohu.com/ubuntu/ natty-updates universe main multiverse restricted deb-src http://mirrors.sohu.com/ubuntu/ natty-updates universe main multiverse restricted   File contents of /etc/update-manager/meta-release:  $ cat /etc/update-manager/meta-release # default location for the meta-release file  [METARELEASE] URI = http://changelogs.ubuntu.com/meta-release URI_LTS = http://changelogs.ubuntu.com/meta-release-lts URI_UNSTABLE_POSTFIX = -development URI_PROPOSED_POSTFIX = -proposed   What may be the problem of this?
30458
I would like to know how to upgrade from my current version of Ubuntu to the next stable from the Command line interface?
22656
I have tried searching for this but there seems to be no command that can output a list of packages (ideally in Ubuntu) that I have installed, not including any dependencies.
16398
What are post-installation triggers?  These are executed when upgrading software.
112645
On an Ubuntu 16.04.3 LTS server I run some process monitors, but I also run apt manually as well as unattended-upgrades for security updates.  This sometimes causes the monitors to report and act on programs that were stopped by apt during apt upgrade.  Is there a way to run a command when unattended-upgrades/apt starts the upgrades (to stop the monitors) and again when unattended-upgrades/apt finishes (to restart the monitors)?  I found APT::Update::Pre-Invoke and APT::Update::Post-Invoke hooks but the apt update step is not the problem, and apt itself does not seem to have any pre/post upgrade hooks.