ysdragon / Pterodactyl-VPS-Egg

Pterodactyl VPS Egg
46 stars 28 forks source link

permissions error #19

Closed MasonDye closed 3 months ago

MasonDye commented 4 months ago

I always encounter errors like the following when executing commands such as apt install: E: Sub-process /usr/bin/dpkg returned an error code (1) And during the initial installation, I encounter permission issues with install.sh.

MasonDye commented 4 months ago
container@pterodactyl~ Starting installation process, this could take a few minutes...
bash: /mnt/install/install.sh: Permission denied
[Pterodactyl Daemon]: Checking server disk space usage, this could take a few seconds...
[Pterodactyl Daemon]: Updating process configuration files...
[Pterodactyl Daemon]: Ensuring file permissions are set correctly, this could take a few seconds...
container@pterodactyl~ 服务器运行状态更新为: starting...
[Pterodactyl Daemon]: Pulling Docker container image, this could take a few minutes to complete...
Pulling from ydrag0n/pterodactyl-vps-egg 
Digest: sha256:62f74ca4dc7e746af989108ba2ce6f6c30f1d32213ec2abcef32f475e747800a 
Status: Image is up to date for quay.io/ydrag0n/pterodactyl-vps-egg:latest 
[Pterodactyl Daemon]: Finished pulling Docker container image
Setting up ssh-import-id (5.11-0ubuntu1) ...
Setting up libwrap0:amd64 (7.6.q-31build2) ...
Setting up publicsuffix (20211207.1025-1) ...
Setting up ncurses-term (6.3-2ubuntu0.1) ...
Setting up openssh-server (1:8.9p1-3ubuntu0.6) ...
ucf: do not have write privilege to the state data
dpkg: error processing package openssh-server (--configure):
 installed openssh-server package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Errors were encountered while processing:
 openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
ysdragon commented 3 months ago

Hi, please download the newer vps-egg.json or egg-vps-arm64.json according to your arch... Second error is fixable via running:

PACKAGE_NAME=openssh-server
rm /var/lib/dpkg/info/$PACKAGE_NAME.*
dpkg --configure -a
apt update
apt-get install $PACKAGE_NAME