Describe the bug
The PHP 8.2 migration doesn't call sudo apt-get update before installing PHP 8.2. If the package lists are out of date, PHP 8.1 will be uninstalled and PHP 8.2 won't be installed, leaving the system in an unusable state, as no version of PHP exists on the system.
Expected behavior
The migration should first run sudo apt-get update before uninstalling PHP 8.1 and installing PHP 8.2.
To Reproduce
Steps to reproduce the behavior:
- Load an old vagrant box of the Submitty vm (e.g. 25.12.00.2512070428
- Run
vagrant up; vagrant ssh; submitty_install
- See an error from composer
- Run
php -v to see an error, php is no longer installed
Configuration
Screenshots
N/A
Additional context
N/A
Describe the bug
The PHP 8.2 migration doesn't call
sudo apt-get updatebefore installing PHP 8.2. If the package lists are out of date, PHP 8.1 will be uninstalled and PHP 8.2 won't be installed, leaving the system in an unusable state, as no version of PHP exists on the system.Expected behavior
The migration should first run
sudo apt-get updatebefore uninstalling PHP 8.1 and installing PHP 8.2.To Reproduce
Steps to reproduce the behavior:
vagrant up; vagrant ssh; submitty_installphp -vto see an error, php is no longer installedConfiguration
Screenshots
N/A
Additional context
N/A