apt-get upgrade 未找到软件包

apt-get upgrade 未找到软件包

当我 ssh 进入我的服务器时,我收到此横幅:

Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-45-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage


11 packages can be updated.
8 updates are security updates.

但是当我跑步时sudo apt-get upgrade我得到:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic-hwe-16.04 linux-headers-generic-hwe-16.04 linux-image-generic-hwe-16.04 ubuntu-desktop
0 to upgrade, 0 to newly install, 0 to remove and 4 not to upgrade.

这是怎么回事,为什么 ssh login 和 apt-get 不一致?

答案1

你没有sudo apt-get update先这么做。

永远update如此upgrade

相关内容