Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incident Report - cluster-command.sh - require-upgrade not returning correct upgrade info #12

Open
BradleyA opened this issue Jul 31, 2018 · 1 comment
Assignees
Labels
additional testing Test security & policy compliance and evaluate whether the solution satisfies the requirements. needs investigation What? How?

Comments

@BradleyA
Copy link
Owner

BradleyA commented Jul 31, 2018

cluster-command.sh require-upgrade not returning correct infomation

Need to change this command because at times it is returning 0 but when running update and upgrade a system require an update
/usr/lib/update-notifier/apt-check --human-readable

@BradleyA BradleyA added the bug Something isn't working, an incident requiring resources for assessment and resolution. label Jul 31, 2018
@BradleyA BradleyA self-assigned this Jul 31, 2018
@BradleyA BradleyA added the needs investigation What? How? label Oct 16, 2018
@BradleyA
Copy link
Owner Author

test this:

The issue was resolved by changing the shebang in the apt-check script from:

sudo vi /usr/lib/update-notifier/apt-check

#!/usr/bin/python3

to

#!/usr/bin/python3.5

python3 was calling a python interpreter without the module apt_pkg installed. After changing it back to the default python3.5 the motd is updating properly.

If anyone else has a similar problem in the future you can run this command to manually check if there are packages available to update:

python3.5 /usr/lib/update-notifier/apt-check --human-readable

or

sudo /usr/lib/update-notifier/update-motd-updates-available

@BradleyA BradleyA changed the title cluster-command.sh require-upgrade not returning correct info cluster-command.sh require-upgrade not returning correct upgrade info May 20, 2019
@BradleyA BradleyA changed the title cluster-command.sh require-upgrade not returning correct upgrade info cluster-command.sh - require-upgrade not returning correct upgrade info May 20, 2019
@BradleyA BradleyA added additional testing Test security & policy compliance and evaluate whether the solution satisfies the requirements. and removed bug Something isn't working, an incident requiring resources for assessment and resolution. labels May 26, 2019
@BradleyA BradleyA changed the title cluster-command.sh - require-upgrade not returning correct upgrade info Incident Report - cluster-command.sh - require-upgrade not returning correct upgrade info Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
additional testing Test security & policy compliance and evaluate whether the solution satisfies the requirements. needs investigation What? How?
Projects
None yet
Development

No branches or pull requests

1 participant