Can't update manually "hestia-php" package

Hey,

So I decided to turn off automatic updates and through that if you enable them back it will update automatically via GUI.

However it seems like you need to run the command in CLI (no problem). I am running HestiaCP on Debian 12.

root@soomething:/home/myuser2# sudo apt --only-upgrade  install hestia hestia-nginx hestia-
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
  hestia hestia-nginx
2 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 5,552 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://apt.hestiacp.com bookworm/main amd64 hestia amd64 1.9.3 [1,995 kB]
Get:2 https://apt.hestiacp.com bookworm/main amd64 hestia-nginx amd64 1.27.4 [3,557 kB]
Fetched 5,552 kB in 0s (11.5 MB/s)      
(Reading database ... 52351 files and directories currently installed.)
Preparing to unpack .../hestia_1.9.3_amd64.deb ...
Unpacking hestia (1.9.3) over (1.9.2) ...
Preparing to unpack .../hestia-nginx_1.27.4_amd64.deb ...
Unpacking hestia-nginx (1.27.4) over (1.27.3) ...
Setting up hestia (1.9.3) ...

                  _   _           _   _        ____ ____                      
                 | | | | ___  ___| |_(_) __ _ / ___|  _ \                     
                 | |_| |/ _ \/ __| __| |/ _` | |   | |_) |                    
                 |  _  |  __/\__ \ |_| | (_| | |___|  __/                     
                 |_| |_|\___||___/\__|_|\__,_|\____|_|                        
                                                                              
                    Hestia Control Panel Software Update                      
                               Version: 1.9.3

=============================================================================

[ ! ] IMPORTANT INFORMATION:                                                 

Default configuration files and templates may be modified or replaced        
during the upgrade process. You may restore these files from:                

Backup directory: /root/hst_backups/030320251143/
Installation log: /root/hst_backups/030320251143/hst-upgrade-030320251143.log
=============================================================================
[ * ] Backing up existing templates and configuration files...
=============================================================================
[ ! ] Performing system health check before proceeding with installation...  
[ ! ] Duplicated keys found repair config
[ * ] Health check complete. Starting upgrade from 1.9.2 to 1.9.3...
=============================================================================

[ - ] Now applying patches and updates for version v1.9.3...
[ ! ] Updating default web domain templates...
[ ! ] Updating default mail domain templates...
[ ! ] Updating default DNS zone templates...
[ ! ] Upgrading File Manager to version 7.13.0...
[ ! ] Update Hestia PHP dependencies...
[ * ] Updating Cloudflare IP Ranges for NGINX...
[ * ] phpMyAdmin is up to date (5.2.2)...
=============================================================================
Installation tasks complete, performing clean-up...                          
=============================================================================
[ * ] Rebuilding user accounts and domains, this may take a few minutes...
      - admin...
      - mmmm2...
      - dddddd2...
[ * ] Restarting services...
=============================================================================

Upgrade complete! If you encounter any issues or find a bug,                 
please take a moment to report it to us on GitHub at the URL below:          
https://github.com/hestiacp/hestiacp/issues                                  

Read the release notes to learn about new fixes and features:                
https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md               

We hope that you enjoy using this version of Hestia Control Panel,           
have a wonderful day!                                                        

Sincerely,                                                                   
The Hestia Control Panel development team                                    

Web:      https://www.hestiacp.com/                                          
Docs:     https://docs.hestiacp.com/                                                                               
Forum:    https://forum.hestiacp.com/                                        
GitHub:   https://github.com/hestiacp/hestiacp/                              

Help support the Hestia Control Panel project by donating via PayPal:        
https://www.hestiacp.com/donate                                              

Made with love & pride by the open-source community around the world.        

=============================================================================

sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
Setting up hestia-nginx (1.27.4) ...

However the hestia-php package remains at 8.3.16 (amd64) instead of 8.3.17 (amd64). Feels like I am missing something and need to run another additional command? Thanks!

Running next command solved the issue with PHP package not getting updated :slight_smile:

sudo apt update && sudo apt upgrade -y && sudo apt-get autoremove -y && sudo apt-get remove --purge -y software-properties-common

1 Like

Be careful with that -y flag. It’s a good way to overwrite your existing configuration files and break your server.

1 Like

As far as I know, apt upgrade -y just confirms the installation of the packages - not to overwrite configuration files. I personaly upgrade my servers with apt dist-upgrade -y all the time :slight_smile:. But @linkp is right, NEVER EVER overwrite config, expect you know what you do :slight_smile:.

2 Likes

That is good to know. The man page for apt-get mentions that using -yassumes yes for all prompts. While I think of the install or keep question as a binary choice, it really isn’t. That likely influences my unnecessary caution with that option. Thanks for sharing your firsthand experience and letting us know that it is safe.

2 Likes