0

On my Ubuntu 20.04.2 LTS server i run my script with cron hourly. It's generate a text file. This file processed by conky on my desktop PC. In my script i use apt-check to know is there any update and if is how many is security. My problem is: apt-check and apt update totally different result. for example right now apt-check:

$(/usr/lib/update-notifier/apt-check)
17;1

same numbers which in motd message

however

apt update
apt upgrade
0 upgraded, 0 newly, 0 remove

why different output? how can i run apt to give me 2 numbers only like 17;1?

Thomas
  • 17

0 Answers0