Ubuntu Packages Upgradable But Not Upgraded

Ubuntu: Packages Upgradable But Not Upgraded

It’s not always happened but it’s happened on Ubuntu where packages is upgradable but not upgraded when we try to upgrade the packages in the Ubuntu ๐Ÿ˜.

sudo apt update
Hit:1 http://kartolo.sby.datautama.net.id/ubuntu jammy InRelease
Hit:2 http://kartolo.sby.datautama.net.id/ubuntu jammy-updates InRelease
Hit:3 http://kartolo.sby.datautama.net.id/ubuntu jammy-backports InRelease
Hit:4 http://kartolo.sby.datautama.net.id/ubuntu jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  apt apt-utils libapt-pkg6.0
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

This is happened because the packages not met dependencies and to fix this you need to update the specific packages as mention with command sudo apt install –only-upgrade.

sudo apt install --only-upgrade apt apt-utils libapt-pkg6.0
[sudo] password for darto: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  apt-doc aptitude | synaptic | wajig dpkg-dev
The following packages will be upgraded:
  apt apt-utils libapt-pkg6.0
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,497 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://kartolo.sby.datautama.net.id/ubuntu jammy-updates/main amd64 libapt-pkg6.0 amd64 2.4.10 [907 kB]
Get:2 http://kartolo.sby.datautama.net.id/ubuntu jammy-updates/main amd64 apt amd64 2.4.10 [1,379 kB]
Get:3 http://kartolo.sby.datautama.net.id/ubuntu jammy-updates/main amd64 apt-utils amd64 2.4.10 [211 kB]
Fetched 2,497 kB in 0s (7,195 kB/s) 
(Reading database ... 74991 files and directories currently installed.)
Preparing to unpack .../libapt-pkg6.0_2.4.10_amd64.deb ...
Unpacking libapt-pkg6.0:amd64 (2.4.10) over (2.4.9) ...
Setting up libapt-pkg6.0:amd64 (2.4.10) ...
(Reading database ... 74991 files and directories currently installed.)
Preparing to unpack .../archives/apt_2.4.10_amd64.deb ...
Unpacking apt (2.4.10) over (2.4.9) ...
Setting up apt (2.4.10) ...
(Reading database ... 74991 files and directories currently installed.)
Preparing to unpack .../apt-utils_2.4.10_amd64.deb ...
Unpacking apt-utils (2.4.10) over (2.4.9) ...
Setting up apt-utils (2.4.10) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Scanning processes...                                                                                                                                             
Scanning candidates...                                                                                                                                            
Scanning linux images...                                                                                                                                          
Running kernel seems to be up-to-date.
Restarting services...
 systemctl restart packagekit.service
Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart networkd-dispatcher.service
 systemctl restart systemd-logind.service
 systemctl restart unattended-upgrades.service
 systemctl restart user@1000.service
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
sudo apt update
Hit:1 http://kartolo.sby.datautama.net.id/ubuntu jammy InRelease
Get:2 http://kartolo.sby.datautama.net.id/ubuntu jammy-updates InRelease [119 kB]
Get:3 http://kartolo.sby.datautama.net.id/ubuntu jammy-backports InRelease [109 kB]
Get:4 http://kartolo.sby.datautama.net.id/ubuntu jammy-security InRelease [110 kB]
Get:5 http://kartolo.sby.datautama.net.id/ubuntu jammy-updates/universe amd64 c-n-f Metadata [21.5 kB]
Get:6 http://kartolo.sby.datautama.net.id/ubuntu jammy-security/universe amd64 c-n-f Metadata [16.4 kB]
Fetched 376 kB in 1s (304 kB/s)           
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

reference: askubuntu

Baca juga:  SSH: Remove Host Key From known_hosts

Tinggalkan Komentar

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *


The reCAPTCHA verification period has expired. Please reload the page.