uboslinux / ubos-admin

UBOS administration tools
Other
16 stars 3 forks source link

Cannot update on EC2 instance #861

Closed jgwhite0111 closed 1 year ago

jgwhite0111 commented 1 year ago

It seems there is some issue with a PGP signature or corrupt package when running sudo ubos-admin update -v from a fresh EC2 image configured as per instruction.

checking keyring...
checking package integrity...
error: python-importlib-metadata: signature from "Filipe Laíns (FFY00) <lains@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/python-importlib-metadata-4.0.1-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] error: failed to commit transaction (invalid or corrupted package)

Errors occurred, no packages were upgraded.
Packages upgraded: archlinux-keyring ubos-admin
INFO : ubos-admin update-stage2 --snapnumber /=1 -v
INFO : Setting device state to: operational
[shepherd@ubos-es2 ~]$ sudo ubos-admin update -v
INFO : ubos-admin update -v
INFO : Setting device state to: in maintenance
INFO : No need to suspend or backup sites, none deployed
Undefined subroutine &UBOS::Utils::ageOfFileInSeconds called at /usr/share/perl5/vendor_perl/UBOS/Host.pm line 556.
INFO : Setting device state to: operational
jernst commented 1 year ago

This is covered in the FAQ: https://ubos.net/docs/administrators/faq-howto-troubleshooting/error-corrupted-package/

P.S. this "Undefined subroutine &UBOS::Utils::ageOfFileInSeconds called at /usr/share/perl5/vendor_perl/UBOS/Host.pm line 556." should not be happening. How old is this instance, and how long since the last update?