on 18.04.2 how do I reliably query whether they are pending updatesUnable to upgrade due to “SystemError:...

Taking headphones when quitting job

Memory usage: #define vs. static const for uint8_t

"Starve to death" Vs. "Starve to the point of death"

Website seeing my Facebook data?

Plausible reason for gold-digging ant

Why is the "Domain users" group missing from this Powershell AD Query?

Can you determine if focus is sharp without diopter adjustment if your sight is imperfect?

How does Leonard in "Memento" remember reading and writing?

What is a good reason for every spaceship to carry a weapon on board?

What is the industry term for house wiring diagrams?

What species should be used for storage of human minds?

What senses are available to a corpse subjected to a Speak with Dead spell?

Potential client has a problematic employee I can't work with

Why didn't the 2019 Oscars have a host?

Boss asked me to sign a resignation paper without a date on it along with my new contract

Is there a verb that means to inject with poison?

Possible issue with my W4 and tax return

Custom shape shows unwanted extra line

Should I cite R or RStudio?

Can we "borrow" our answers to populate our own websites?

Calculate of total length of edges in Voronoi diagram

How do you get out of your own psychology to write characters?

Why avoid shared user accounts?

How do you funnel food off a cutting board?



on 18.04.2 how do I reliably query whether they are pending updates


Unable to upgrade due to “SystemError: E:Method has died unexpectedly!” errorNeed help updating Ubuntu with apt-offlineHelp: “aptd” is maxing out my CPU?Apt-get update trouble upon missing/broken filesUpdate on libmysqlclient20 fails on a 16.04.1 LTS machineHow can I tell when updates/installations are done if I started them in the GUI?apt-get operations fail, because of invalid ld.so lookupapt-get update GPG errorHow to stop apt from doing anythingFilezilla not starting at all













0















I recently upgraded from 16.10 to 18.04.2. On 16.10 I ran /usr/lib/update-notifier/apt-check indicating the number of unapplied updates and how many of them are security updates. On 18.04.2 this returns "0;0" until I run sudo apt-get update. As I was using the apt-check to tell when to run the update this is less useful.



Have I missed a piece of configuration or what steps should I take to raise a useful bug report










share|improve this question







New contributor




djvines is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    It always shows 0 before apt update because the system doesn't know about new updates. You probably think that apt update installs updates. ;-)

    – Pilot6
    6 hours ago











  • Well on 16.10 it used to return the number of updates without the need for sudo apt update (at least not a manual one). I guess I could set up a cron job to regularly issue the update command.

    – djvines
    6 hours ago











  • It runs already by default. Why are you trying to do something that already is set by default a different way? You can set all that in Software & Updates app.

    – Pilot6
    6 hours ago













  • Because it doesn't run for days at a time on my system :) I may have disabled I guess?? (as a side effect of wanting to manage the timings of the actual installation of the updates rather than have an update. I guess that if I have (on the software updater GUI) the "install updates from" options unticked, but the "Automatically check for updates" set to something other than "never" that'll give me what I want.

    – djvines
    6 hours ago











  • Not correct. Install updates from should be checked. But you can set it to e.g. "Show daily".

    – Pilot6
    6 hours ago
















0















I recently upgraded from 16.10 to 18.04.2. On 16.10 I ran /usr/lib/update-notifier/apt-check indicating the number of unapplied updates and how many of them are security updates. On 18.04.2 this returns "0;0" until I run sudo apt-get update. As I was using the apt-check to tell when to run the update this is less useful.



Have I missed a piece of configuration or what steps should I take to raise a useful bug report










share|improve this question







New contributor




djvines is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    It always shows 0 before apt update because the system doesn't know about new updates. You probably think that apt update installs updates. ;-)

    – Pilot6
    6 hours ago











  • Well on 16.10 it used to return the number of updates without the need for sudo apt update (at least not a manual one). I guess I could set up a cron job to regularly issue the update command.

    – djvines
    6 hours ago











  • It runs already by default. Why are you trying to do something that already is set by default a different way? You can set all that in Software & Updates app.

    – Pilot6
    6 hours ago













  • Because it doesn't run for days at a time on my system :) I may have disabled I guess?? (as a side effect of wanting to manage the timings of the actual installation of the updates rather than have an update. I guess that if I have (on the software updater GUI) the "install updates from" options unticked, but the "Automatically check for updates" set to something other than "never" that'll give me what I want.

    – djvines
    6 hours ago











  • Not correct. Install updates from should be checked. But you can set it to e.g. "Show daily".

    – Pilot6
    6 hours ago














0












0








0








I recently upgraded from 16.10 to 18.04.2. On 16.10 I ran /usr/lib/update-notifier/apt-check indicating the number of unapplied updates and how many of them are security updates. On 18.04.2 this returns "0;0" until I run sudo apt-get update. As I was using the apt-check to tell when to run the update this is less useful.



Have I missed a piece of configuration or what steps should I take to raise a useful bug report










share|improve this question







New contributor




djvines is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I recently upgraded from 16.10 to 18.04.2. On 16.10 I ran /usr/lib/update-notifier/apt-check indicating the number of unapplied updates and how many of them are security updates. On 18.04.2 this returns "0;0" until I run sudo apt-get update. As I was using the apt-check to tell when to run the update this is less useful.



Have I missed a piece of configuration or what steps should I take to raise a useful bug report







apt 18.04






share|improve this question







New contributor




djvines is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




djvines is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




djvines is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 6 hours ago









djvinesdjvines

1




1




New contributor




djvines is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





djvines is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






djvines is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1





    It always shows 0 before apt update because the system doesn't know about new updates. You probably think that apt update installs updates. ;-)

    – Pilot6
    6 hours ago











  • Well on 16.10 it used to return the number of updates without the need for sudo apt update (at least not a manual one). I guess I could set up a cron job to regularly issue the update command.

    – djvines
    6 hours ago











  • It runs already by default. Why are you trying to do something that already is set by default a different way? You can set all that in Software & Updates app.

    – Pilot6
    6 hours ago













  • Because it doesn't run for days at a time on my system :) I may have disabled I guess?? (as a side effect of wanting to manage the timings of the actual installation of the updates rather than have an update. I guess that if I have (on the software updater GUI) the "install updates from" options unticked, but the "Automatically check for updates" set to something other than "never" that'll give me what I want.

    – djvines
    6 hours ago











  • Not correct. Install updates from should be checked. But you can set it to e.g. "Show daily".

    – Pilot6
    6 hours ago














  • 1





    It always shows 0 before apt update because the system doesn't know about new updates. You probably think that apt update installs updates. ;-)

    – Pilot6
    6 hours ago











  • Well on 16.10 it used to return the number of updates without the need for sudo apt update (at least not a manual one). I guess I could set up a cron job to regularly issue the update command.

    – djvines
    6 hours ago











  • It runs already by default. Why are you trying to do something that already is set by default a different way? You can set all that in Software & Updates app.

    – Pilot6
    6 hours ago













  • Because it doesn't run for days at a time on my system :) I may have disabled I guess?? (as a side effect of wanting to manage the timings of the actual installation of the updates rather than have an update. I guess that if I have (on the software updater GUI) the "install updates from" options unticked, but the "Automatically check for updates" set to something other than "never" that'll give me what I want.

    – djvines
    6 hours ago











  • Not correct. Install updates from should be checked. But you can set it to e.g. "Show daily".

    – Pilot6
    6 hours ago








1




1





It always shows 0 before apt update because the system doesn't know about new updates. You probably think that apt update installs updates. ;-)

– Pilot6
6 hours ago





It always shows 0 before apt update because the system doesn't know about new updates. You probably think that apt update installs updates. ;-)

– Pilot6
6 hours ago













Well on 16.10 it used to return the number of updates without the need for sudo apt update (at least not a manual one). I guess I could set up a cron job to regularly issue the update command.

– djvines
6 hours ago





Well on 16.10 it used to return the number of updates without the need for sudo apt update (at least not a manual one). I guess I could set up a cron job to regularly issue the update command.

– djvines
6 hours ago













It runs already by default. Why are you trying to do something that already is set by default a different way? You can set all that in Software & Updates app.

– Pilot6
6 hours ago







It runs already by default. Why are you trying to do something that already is set by default a different way? You can set all that in Software & Updates app.

– Pilot6
6 hours ago















Because it doesn't run for days at a time on my system :) I may have disabled I guess?? (as a side effect of wanting to manage the timings of the actual installation of the updates rather than have an update. I guess that if I have (on the software updater GUI) the "install updates from" options unticked, but the "Automatically check for updates" set to something other than "never" that'll give me what I want.

– djvines
6 hours ago





Because it doesn't run for days at a time on my system :) I may have disabled I guess?? (as a side effect of wanting to manage the timings of the actual installation of the updates rather than have an update. I guess that if I have (on the software updater GUI) the "install updates from" options unticked, but the "Automatically check for updates" set to something other than "never" that'll give me what I want.

– djvines
6 hours ago













Not correct. Install updates from should be checked. But you can set it to e.g. "Show daily".

– Pilot6
6 hours ago





Not correct. Install updates from should be checked. But you can set it to e.g. "Show daily".

– Pilot6
6 hours ago










1 Answer
1






active

oldest

votes


















2














Run



sudo apt update


It will show how many updates are pending.



For more details run



apt list --upgradable





share|improve this answer
























  • The apt-check command doesn't require root - I'd rather my montioring program doesn't need root access (it didn't before)

    – djvines
    6 hours ago











  • But list relies on downloaded lists, that are got by update.

    – Pilot6
    6 hours ago













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






djvines is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1121231%2fon-18-04-2-how-do-i-reliably-query-whether-they-are-pending-updates%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














Run



sudo apt update


It will show how many updates are pending.



For more details run



apt list --upgradable





share|improve this answer
























  • The apt-check command doesn't require root - I'd rather my montioring program doesn't need root access (it didn't before)

    – djvines
    6 hours ago











  • But list relies on downloaded lists, that are got by update.

    – Pilot6
    6 hours ago


















2














Run



sudo apt update


It will show how many updates are pending.



For more details run



apt list --upgradable





share|improve this answer
























  • The apt-check command doesn't require root - I'd rather my montioring program doesn't need root access (it didn't before)

    – djvines
    6 hours ago











  • But list relies on downloaded lists, that are got by update.

    – Pilot6
    6 hours ago
















2












2








2







Run



sudo apt update


It will show how many updates are pending.



For more details run



apt list --upgradable





share|improve this answer













Run



sudo apt update


It will show how many updates are pending.



For more details run



apt list --upgradable






share|improve this answer












share|improve this answer



share|improve this answer










answered 6 hours ago









Pilot6Pilot6

52.5k15108197




52.5k15108197













  • The apt-check command doesn't require root - I'd rather my montioring program doesn't need root access (it didn't before)

    – djvines
    6 hours ago











  • But list relies on downloaded lists, that are got by update.

    – Pilot6
    6 hours ago





















  • The apt-check command doesn't require root - I'd rather my montioring program doesn't need root access (it didn't before)

    – djvines
    6 hours ago











  • But list relies on downloaded lists, that are got by update.

    – Pilot6
    6 hours ago



















The apt-check command doesn't require root - I'd rather my montioring program doesn't need root access (it didn't before)

– djvines
6 hours ago





The apt-check command doesn't require root - I'd rather my montioring program doesn't need root access (it didn't before)

– djvines
6 hours ago













But list relies on downloaded lists, that are got by update.

– Pilot6
6 hours ago







But list relies on downloaded lists, that are got by update.

– Pilot6
6 hours ago












djvines is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















djvines is a new contributor. Be nice, and check out our Code of Conduct.













djvines is a new contributor. Be nice, and check out our Code of Conduct.












djvines is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1121231%2fon-18-04-2-how-do-i-reliably-query-whether-they-are-pending-updates%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

List of shipwrecks in 1808...

Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

Unit packagekit.service is masked Announcing the arrival of Valued Associate #679: Cesar...