Now that you have spun up an Ubuntu Linux virtual server on Google Cloud Compute and connected to it via ssh, it might be a good idea to make sure it is up to date.
Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 5.19.0-1027-gcp x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Mon Jul 24 18:56:06 UTC 2023
System load: 0.0 Processes: 104
Usage of /: 20.2% of 9.51GB Users logged in: 1
Memory usage: 6% IPv4 address for ens4: __.__.__.__
Swap usage: 0%
* Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
just raised the bar for easy, resilient and secure K8s cluster deployment.
https://ubuntu.com/engage/secure-kubernetes-at-the-edge
Expanded Security Maintenance for Applications is not enabled.
0 updates can be applied immediately.
Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Ubuntu—like other Debian based distributions—uses APT as a package manager.
APT is built on dpkg.
Type sudo apt update
and hit enter to run.
Preceding a command with sudo
in a Debian based system is like saying run as an administrator.
anarchitect@computer:~$ sudo apt update
Hit:1 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:3 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [580 kB]
Get:7 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy/universe Translation-en [5652 kB]
Get:8 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy/universe amd64 c-n-f Metadata [286 kB]
Get:9 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [217 kB]
Get:10 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy/multiverse Translation-en [112 kB]
Get:11 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata [8372 B]
Get:12 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [850 kB]
Get:13 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [208 kB]
Get:14 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [15.4 kB]
Get:15 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [142 kB]
Get:16 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [663 kB]
Get:17 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [11.0 kB]
Get:18 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [568 kB]
Get:19 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [106 kB]
Get:20 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [949 kB]
Get:21 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [89.0 kB]
Get:22 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [752 kB]
Get:23 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [204 kB]
Get:24 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [20.7 kB]
Get:25 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [41.6 kB]
Get:26 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [135 kB]
Get:27 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [9704 B]
Get:28 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [476 B]
Get:29 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [40.9 kB]
Get:30 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [15.8 kB]
Get:31 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [36.5 kB]
Get:32 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [7060 B]
Get:33 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [10.2 kB]
Get:34 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [388 B]
Get:35 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B]
Get:36 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [22.2 kB]
Get:37 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [15.4 kB]
Get:38 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [580 B]
Get:39 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]
Get:40 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [260 B]
Fetched 26.2 MB in 3s (9699 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
Then type sudo apt upgrade
and hit enter.
anarchitect@computer:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libnuma1
Use 'sudo apt autoremove' to remove it.
#
# An OpenSSL vulnerability has recently been fixed with USN-6188-1 & 6119-1:
# CVE-2023-2650: possible DoS translating ASN.1 object identifiers.
# Ensure you have updated the package to its latest version.
#
The following packages will be upgraded:
curl libcurl3-gnutls libcurl4 openssh-client openssh-server openssh-sftp-server
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 standard LTS security updates
Need to get 2152 kB of archives.
After this operation, 13.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Enter y
for yes and hit enter.
Get:1 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/main amd64 openssh-sftp-server amd64 1:8.9p1-3ubuntu0.3 [38.8 kB]
Get:2 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/main amd64 openssh-server amd64 1:8.9p1-3ubuntu0.3 [434 kB]
Get:3 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/main amd64 openssh-client amd64 1:8.9p1-3ubuntu0.3 [910 kB]
Get:4 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/main amd64 curl amd64 7.81.0-1ubuntu1.13 [194 kB]
Get:5 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libcurl4 amd64 7.81.0-1ubuntu1.13 [290 kB]
Get:6 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libcurl3-gnutls amd64 7.81.0-1ubuntu1.13 [284 kB]
Fetched 2152 kB in 0s (24.2 MB/s)
Preconfiguring packages ...
(Reading database ... 64989 files and directories currently installed.)
Preparing to unpack .../0-openssh-sftp-server_1%3a8.9p1-3ubuntu0.3_amd64.deb ...
Unpacking openssh-sftp-server (1:8.9p1-3ubuntu0.3) over (1:8.9p1-3ubuntu0.1) ...
Preparing to unpack .../1-openssh-server_1%3a8.9p1-3ubuntu0.3_amd64.deb ...
Unpacking openssh-server (1:8.9p1-3ubuntu0.3) over (1:8.9p1-3ubuntu0.1) ...
Preparing to unpack .../2-openssh-client_1%3a8.9p1-3ubuntu0.3_amd64.deb ...
Unpacking openssh-client (1:8.9p1-3ubuntu0.3) over (1:8.9p1-3ubuntu0.1) ...
Preparing to unpack .../3-curl_7.81.0-1ubuntu1.13_amd64.deb ...
Unpacking curl (7.81.0-1ubuntu1.13) over (7.81.0-1ubuntu1.10) ...
Preparing to unpack .../4-libcurl4_7.81.0-1ubuntu1.13_amd64.deb ...
Unpacking libcurl4:amd64 (7.81.0-1ubuntu1.13) over (7.81.0-1ubuntu1.10) ...
Preparing to unpack .../5-libcurl3-gnutls_7.81.0-1ubuntu1.13_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.81.0-1ubuntu1.13) over (7.81.0-1ubuntu1.10) ...
Setting up openssh-client (1:8.9p1-3ubuntu0.3) ...
Setting up libcurl3-gnutls:amd64 (7.81.0-1ubuntu1.13) ...
Setting up libcurl4:amd64 (7.81.0-1ubuntu1.13) ...
Setting up curl (7.81.0-1ubuntu1.13) ...
Setting up openssh-sftp-server (1:8.9p1-3ubuntu0.3) ...
Setting up openssh-server (1:8.9p1-3ubuntu0.3) ...
rescue-ssh.target is a disabled or a static unit not running, not starting it.
ssh.socket is a disabled or a static unit not running, not starting it.
Processing triggers for ufw (0.36.1-4build1) ...
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
systemctl restart packagekit.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.
Run sudo apt dist-upgrade
to see if there are any distribution upgrades available.
anarchitect@computer:~$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libnuma1
Use 'sudo apt autoremove' to remove it.
#
# An OpenSSL vulnerability has recently been fixed with USN-6188-1 & 6119-1:
# CVE-2023-2650: possible DoS translating ASN.1 object identifiers.
# Ensure you have updated the package to its latest version.
#
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
And then finally, run sudo apt autoremove
to clean up any unnecessary or outdated packages.
anarchitect@quartz:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
libnuma1
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 72.7 kB disk space will be freed.
Do you want to continue? [Y/n] y
Enter y
for yes.
(Reading database ... 64988 files and directories currently installed.)
Removing libnuma1:amd64 (2.0.14-3ubuntu2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Congratualations! Now you have a fully updated Ubuntu Linux server on Google Cloud.