Guide: Updating packages with apt

content:

Updating packages with apt

Depending on your Linux distribution, the standard way to synchronise your package list is:

root# apt update

However, due to a known Morpheus issue, you may encounter an error related to GPG:

root# apt update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:2 http://nova.clouds.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Ign:5 http://morpheus.dpi.wekeo.eu/apt morpheus InRelease
Hit:6 http://morpheus.dpi.wekeo.eu/apt morpheus Release
Get:7 http://morpheus.dpi.wekeo.eu/apt morpheus Release.gpg [287 B]
Ign:7 http://morpheus.dpi.wekeo.eu/apt morpheus Release.gpg
Fetched 252 kB in 1s (238 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
193 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: GPG error: http://morpheus.dpi.wekeo.eu/apt morpheus Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 239FF1B456AB73A6

To work around this error, please upload a GPG key into your VM:

root# curl https://morpheus.dpi.wekeo.eu/apt/pubkey2.gpg | sudo apt-key add

Now you can easily run apt update and upgrade your operating system.

root# apt update && apt upgrade
Ign:1 http://morpheus.dpi.wekeo.eu/apt morpheus InRelease
Hit:2 http://morpheus.dpi.wekeo.eu/apt morpheus Release
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:4 http://nova.clouds.archive.ubuntu.com/ubuntu bionic InRelease
Get:6 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:7 http://nova.clouds.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 252 kB in 0s (610 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
193 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-headers-4.15.0-70 linux-headers-4.15.0-70-generic linux-image-4.15.0-70-generic linux-modules-4.15.0-70-generic linux-modules-extra-4.15.0-70-generic
The following packages will be upgraded:
amd64-microcode apt apt-utils base-files bash bind9-host binutils binutils-common binutils-x86-64-linux-gnu bsdutils busybox-initramfs busybox-static bzip2 cloud-init console-setup
[...]
193 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 348 MB of archives.
After this operation, 379 MB of additional disk space will be used.
Do you want to continue? [Y/n]