I have a Ubuntu 20.04 VPS. On this server when I run sudo apt-get update && sudo apt-get upgrade
, it shows there are 3 upgradable packages, but when I run the upgrade command or force upgrade nothing upgrade or install. When I check sudo apt list --upgradable
it shows nothing.
What could be the reason for this? And how do I fix this issue?
root@server:~# du -sh /var/cache/apt/archives
40K /var/cache/apt/archives
root@server:~# sudo apt-get clean
root@server:~# sudo apt-get update && sudo apt-get upgrade
Hit:1 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu focal InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Get:3 http://download.opensuse.org/repositories/home:/virtubox:/nginx-ee/xUbuntu_20.04 InRelease [1,537 B]
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:7 http://archive.ubuntu.com/ubuntu focal-security InRelease
Hit:8 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Hit:9 http://ppa.launchpad.net/wordops/nginx-wo/ubuntu focal InRelease
Get:10 http://mariadb.mirrors.ovh.net/MariaDB/repo/10.5/ubuntu focal InRelease [7,767 B]
Fetched 9,304 B in 1s (10.8 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
root@server:~# sudo apt list --upgradable
Listing... Done
root@server:~#
sudo
at a root prompt.sudo
?apt dist-upgrade
instead ofapt upgrade
?