从技术上讲,其实并没有区别。然而,apt update在一个方面比apt-get update做的好,它会告诉你可升级的包的数量。
Hit:15 https://ppa.launchpadcontent.net/slimbook/slimbook/ubuntu jammy InReleaseFetched 213 kB in 4s (55.8 kB/s)Reading package lists... DoneBuilding dependency tree... DoneReading state information... Done6 packages can be upgraded. Run 'apt list --upgradable' to see them.
apt-get update甚至不会告诉你包是否可以升级。