apt upgrade fail with a fresh CloudPanel install #191

Closed
opened 2026-04-05 20:25:49 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @chattambulo on 8/30/2024

CloudPanel version(s) affected

2.4.2

Description

Ubuntu 24.04, fresh installed. CloudPanel 2.4.2 (MySQL version) fresh installed and fully working. If I try an "apt upgrade":

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following upgrades have been deferred due to phasing:
cloud-init
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up cloudpanel (2.4.2-4+clp-noble) ...
cp: cannot stat '/tmp/cloudpanel/data/clp/services/nginx/systemd/clp-nginx.service': No such file or directory
dpkg: error processing package cloudpanel (--configure):
installed cloudpanel package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
cloudpanel
E: Sub-process /usr/bin/dpkg returned an error code (1)

How to reproduce

Ubuntu 24.04, fresh installed. CloudPanel 2.4.2 (MySQL version) fresh installed and working. Please try an "apt upgrade" from SSH. It seems a bug, tryng the tmp folder to start services (also php, if I create an empty file for ngnix servive start).
2024-08-30 19_10_41

Possible Solution

No response

Additional Context

No response

*Originally created by @chattambulo on 8/30/2024* ### CloudPanel version(s) affected 2.4.2 ### Description Ubuntu 24.04, fresh installed. CloudPanel 2.4.2 (MySQL version) fresh installed and fully working. If I try an "apt upgrade": Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following upgrades have been deferred due to phasing: cloud-init 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up cloudpanel (2.4.2-4+clp-noble) ... cp: cannot stat '/tmp/cloudpanel/data/clp/services/nginx/systemd/clp-nginx.service': No such file or directory dpkg: error processing package cloudpanel (--configure): installed cloudpanel package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: cloudpanel E: Sub-process /usr/bin/dpkg returned an error code (1) ### How to reproduce Ubuntu 24.04, fresh installed. CloudPanel 2.4.2 (MySQL version) fresh installed and working. Please try an "apt upgrade" from SSH. It seems a bug, tryng the tmp folder to start services (also php, if I create an empty file for ngnix servive start). ![2024-08-30 19_10_41](https://github.com/user-attachments/assets/0dd055fc-fbe2-4660-b045-c9ced6c512d6) ### Possible Solution _No response_ ### Additional Context _No response_
Sign in to join this conversation.