作为免责声明,我对 Linux 几乎不熟悉。我知道足以安装我自己的服务器和我需要的软件包。我所拥有的是:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
每次我登录欢迎屏幕时都是:
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-117-generic x86_64)
* Documentation: https://help.ubuntu.com * Management:
https://landscape.canonical.com * Support:
https://ubuntu.com/advantage
System information as of Sat Sep 12 14:25:50 EDT 2020
System load: 0.35 Processes: 167 Usage
of /: 24.5% of 228.23GB Users logged in: 0 Memory usage: 32%
IP address for wls1: 192.168.0.12 Swap usage: 0%
* Kubernetes 1.19 is out! Get it in one command with:
sudo snap install microk8s --channel=1.19 --classic
https://microk8s.io/ has docs and details.
* Canonical Livepatch is enabled.
- All available patches applied.
3 packages can be updated.
0 updates are security updates.
运行apt list --upgradeable
返回:
base-files/bionic-updates 10.1ubuntu2.10 amd64 [upgradable from: 10.1ubuntu2.9]
ubuntu-server/bionic-updates 1.417.5 amd64 [upgradable from: 1.417.4]
除了上面显示的三个更新之外,我确实会收到其他更新的通知,并且运行sudo apt-get upgrade
获取并安装所有更新,除了下面显示的三个。
我使用的两个命令是sudo apt-get upgrade
和sudo apt-get update
谁能告诉我出了什么问题,或者更可能是我做错了什么?
以下是 和 的sudo apt-get update
结果sudo apt-get update
:
server:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Reading package lists... Done
server:~$ 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:
base-files ubuntu-server
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
server:~$
你想先运行:
然后如果它不更新软件包,请运行以下命令:
如果有问题,它会在安装之前让您知道问题所在。您可以选择 Y 或 N。
如果没有问题,您可以选择 Y,然后按ENTER。