HPE Morpheus VM Essentials
1842724 Members
3100 Online
110208 Solutions
New Discussion

Re: Running apt on HVM Hosts

 
YA1007
Occasional Advisor

Running apt on HVM Hosts

When installing using the HVM OS installation ISO, should I run `apt update` and `apt upgrade` on the host to update the packages?
Or is it better not to run them?

Since `/etc/apt/sources.list.d/hep-ubuntu.sources` exists, running `apt update` and `apt upgrade` would update the packages, so I was wondering if updating is recommended.

1 REPLY 1
Arnout_Verbeken
HPE Pro

Re: Running apt on HVM Hosts

You can certainly run apt update && apt upgrade on the HVM hosts.  The HVM Base ISO is configured to use HPE speficic repositories instead of the standard Ubuntu ones.
If you receive a "signed-by" error during apt update, you can fix it as described below:

 

1. Retrieve the Public Key
Download the public GPG key to the hosts using the wget command:
wget -P /etc/apt/keyrings/ https://update1.linux.hpe.com/repo/hpevme/apt/pub_key/zion_repo_public.key
 
2. Configure APT Sources with the New GPG Key
Update the APT sources list to reference the newly downloaded GPG key for both repositories.
Content of /etc/apt/sources.list.d/hpe-ubuntu.sources:
Types: deb 
URIs: https://update1.linux.hpe.com/repo/hpevme/zion-private-ubuntu/ 
Suites: pulp 
Components: upload 
Check-Valid-Until: False 
Trusted: True
 Signed-by: /etc/apt/keyrings/zion_repo_public.key 

Types: deb 
URIs: https://update1.linux.hpe.com/repo/hpevme/zion-os-updates-prod/ubuntu2404-os-updates/ 
Suites: noble-updates 
Components: main 
Check-Valid-Until: False 
Trusted: True 
Signed-by: /etc/apt/keyrings/zion_repo_public.key
 
3. Update and Upgrade Packages
Run the following commands to refresh package lists and apply updates.
sudo apt update sudo apt upgrade
You should not see the warning message anymore.


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo