rustdesk not installing correctly #1766

Closed
opened 2025-11-20 05:16:59 -05:00 by saavagebueno · 10 comments
Owner

Originally created by @SomeBelgianDude on GitHub (Aug 22, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

rustdeskserver

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/rustdeskserver.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

I've run the script but get some errors while installing.
The installer continues but the credentials that are generated do not work in the WebUI.

🔄 Steps to reproduce the issue.

  1. Run the following command:
    bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/rustdeskserver.sh)"

  2. Choose default settings with verbose

Paste the full error output (if available).

Reading package lists... Done: rustdesk-hbbr (1.1.14)
Building dependency tree... Done
Reading state information... Done
Note, selecting 'rustdesk-server-hbbr' instead of '/tmp/tmp.CGcjAsodTa/rustdesk-server-hbbr_1.1.14_amd64.deb'
The following NEW packages will be installed:
rustdesk-server-hbbr
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,394 kB of archives.
After this operation, 3,373 kB of additional disk space will be used.
Get:1 /tmp/tmp.CGcjAsodTa/rustdesk-server-hbbr_1.1.14_amd64.deb rustdesk-server-hbbr amd64 1.1.14 [1,394 kB]
Selecting previously unselected package rustdesk-server-hbbr.
(Reading database ... 20339 files and directories currently installed.)
Preparing to unpack .../rustdesk-server-hbbr_1.1.14_amd64.deb ...
Unpacking rustdesk-server-hbbr (1.1.14) ...
Setting up rustdesk-server-hbbr (1.1.14) ...
Created symlink /etc/systemd/system/multi-user.target.wants/rustdesk-hbbr.service → /lib/systemd/system/rustdesk-hbbr.service.
N: Download is performed unsandboxed as root as file '/tmp/tmp.CGcjAsodTa/rustdesk-server-hbbr_1.1.14_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
✔️ Deployed: rustdesk-hbbr (1.1.14)
Reading package lists... Done: rustdesk-hbbs (1.1.14)
Building dependency tree... Done
Reading state information... Done
Note, selecting 'rustdesk-server-hbbs' instead of '/tmp/tmp.BLxZhtc4eW/rustdesk-server-hbbs_1.1.14_amd64.deb'
The following NEW packages will be installed:
rustdesk-server-hbbs
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,214 kB of archives.
After this operation, 9,520 kB of additional disk space will be used.
Get:1 /tmp/tmp.BLxZhtc4eW/rustdesk-server-hbbs_1.1.14_amd64.deb rustdesk-server-hbbs amd64 1.1.14 [4,214 kB]
Selecting previously unselected package rustdesk-server-hbbs.
(Reading database ... 20344 files and directories currently installed.)
Preparing to unpack .../rustdesk-server-hbbs_1.1.14_amd64.deb ...
Unpacking rustdesk-server-hbbs (1.1.14) ...
Setting up rustdesk-server-hbbs (1.1.14) ...
Created symlink /etc/systemd/system/multi-user.target.wants/rustdesk-hbbs.service → /lib/systemd/system/rustdesk-hbbs.service.
N: Download is performed unsandboxed as root as file '/tmp/tmp.BLxZhtc4eW/rustdesk-server-hbbs_1.1.14_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
✔️ Deployed: rustdesk-hbbs (1.1.14)
Reading package lists... Done: rustdesk-utils (1.1.14)
Building dependency tree... Done
Reading state information... Done
Note, selecting 'rustdesk-server-utils' instead of '/tmp/tmp.NoX6Euysuk/rustdesk-server-utils_1.1.14_amd64.deb'
The following NEW packages will be installed:
rustdesk-server-utils
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/317 kB of archives.
After this operation, 630 kB of additional disk space will be used.
Get:1 /tmp/tmp.NoX6Euysuk/rustdesk-server-utils_1.1.14_amd64.deb rustdesk-server-utils amd64 1.1.14 [317 kB]
Selecting previously unselected package rustdesk-server-utils.
(Reading database ... 20349 files and directories currently installed.)
Preparing to unpack .../rustdesk-server-utils_1.1.14_amd64.deb ...
Unpacking rustdesk-server-utils (1.1.14) ...
Setting up rustdesk-server-utils (1.1.14) ...
N: Download is performed unsandboxed as root as file '/tmp/tmp.NoX6Euysuk/rustdesk-server-utils_1.1.14_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
✔️ Deployed: rustdesk-utils (1.1.14)
Reading package lists... Done: rustdesk-api (2.6.27)
Building dependency tree... Done
Reading state information... Done
Note, selecting 'rustdesk-api-server' instead of '/tmp/tmp.p2U7BB9JPj/rustdesk-api-server_2.6.27_amd64.deb'
The following NEW packages will be installed:
rustdesk-api-server
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/26.9 MB of archives.
After this operation, 77.9 MB of additional disk space will be used.
Get:1 /tmp/tmp.p2U7BB9JPj/rustdesk-api-server_2.6.27_amd64.deb rustdesk-api-server amd64 2.6.27 [26.9 MB]
Selecting previously unselected package rustdesk-api-server.
(Reading database ... 20353 files and directories currently installed.)
Preparing to unpack .../rustdesk-api-server_2.6.27_amd64.deb ...
Unpacking rustdesk-api-server (2.6.27) ...
Setting up rustdesk-api-server (2.6.27) ...
Created symlink /etc/systemd/system/multi-user.target.wants/rustdesk-api.service → /lib/systemd/system/rustdesk-api.service.
N: Download is performed unsandboxed as root as file '/tmp/tmp.p2U7BB9JPj/rustdesk-api-server_2.6.27_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
✔️ Deployed: rustdesk-api (2.6.27)
Configuring RustDesk Server[2025-08-22 13:35:56] [WARN] user not found! (/home/runner/work/rustdesk-api/rustdesk-api/cmd/apimain.go:60 main.init.func3)
✔️ Configured RustDesk Server
✔️ Customized Container
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
✔️ Cleaned
✔️ Completed Successfully!

🚀 RustDesk Server setup has been successfully initialized!
💡 Access it using the following URL:
🌐 ****:21114

🖼️ Additional context (optional).

No response

Originally created by @SomeBelgianDude on GitHub (Aug 22, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? rustdeskserver ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/rustdeskserver.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. I've run the script but get some errors while installing. The installer continues but the credentials that are generated do not work in the WebUI. ### 🔄 Steps to reproduce the issue. 1. Run the following command: bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/rustdeskserver.sh)" 2. Choose default settings with verbose ### ❌ Paste the full error output (if available). Reading package lists... Done: rustdesk-hbbr (1.1.14) Building dependency tree... Done Reading state information... Done Note, selecting 'rustdesk-server-hbbr' instead of '/tmp/tmp.CGcjAsodTa/rustdesk-server-hbbr_1.1.14_amd64.deb' The following NEW packages will be installed: rustdesk-server-hbbr 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/1,394 kB of archives. After this operation, 3,373 kB of additional disk space will be used. Get:1 /tmp/tmp.CGcjAsodTa/rustdesk-server-hbbr_1.1.14_amd64.deb rustdesk-server-hbbr amd64 1.1.14 [1,394 kB] Selecting previously unselected package rustdesk-server-hbbr. (Reading database ... 20339 files and directories currently installed.) Preparing to unpack .../rustdesk-server-hbbr_1.1.14_amd64.deb ... Unpacking rustdesk-server-hbbr (1.1.14) ... Setting up rustdesk-server-hbbr (1.1.14) ... Created symlink /etc/systemd/system/multi-user.target.wants/rustdesk-hbbr.service → /lib/systemd/system/rustdesk-hbbr.service. N: Download is performed unsandboxed as root as file '/tmp/tmp.CGcjAsodTa/rustdesk-server-hbbr_1.1.14_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) ✔️ Deployed: rustdesk-hbbr (1.1.14) Reading package lists... Done: rustdesk-hbbs (1.1.14) Building dependency tree... Done Reading state information... Done Note, selecting 'rustdesk-server-hbbs' instead of '/tmp/tmp.BLxZhtc4eW/rustdesk-server-hbbs_1.1.14_amd64.deb' The following NEW packages will be installed: rustdesk-server-hbbs 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/4,214 kB of archives. After this operation, 9,520 kB of additional disk space will be used. Get:1 /tmp/tmp.BLxZhtc4eW/rustdesk-server-hbbs_1.1.14_amd64.deb rustdesk-server-hbbs amd64 1.1.14 [4,214 kB] Selecting previously unselected package rustdesk-server-hbbs. (Reading database ... 20344 files and directories currently installed.) Preparing to unpack .../rustdesk-server-hbbs_1.1.14_amd64.deb ... Unpacking rustdesk-server-hbbs (1.1.14) ... Setting up rustdesk-server-hbbs (1.1.14) ... Created symlink /etc/systemd/system/multi-user.target.wants/rustdesk-hbbs.service → /lib/systemd/system/rustdesk-hbbs.service. N: Download is performed unsandboxed as root as file '/tmp/tmp.BLxZhtc4eW/rustdesk-server-hbbs_1.1.14_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) ✔️ Deployed: rustdesk-hbbs (1.1.14) Reading package lists... Done: rustdesk-utils (1.1.14) Building dependency tree... Done Reading state information... Done Note, selecting 'rustdesk-server-utils' instead of '/tmp/tmp.NoX6Euysuk/rustdesk-server-utils_1.1.14_amd64.deb' The following NEW packages will be installed: rustdesk-server-utils 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/317 kB of archives. After this operation, 630 kB of additional disk space will be used. Get:1 /tmp/tmp.NoX6Euysuk/rustdesk-server-utils_1.1.14_amd64.deb rustdesk-server-utils amd64 1.1.14 [317 kB] Selecting previously unselected package rustdesk-server-utils. (Reading database ... 20349 files and directories currently installed.) Preparing to unpack .../rustdesk-server-utils_1.1.14_amd64.deb ... Unpacking rustdesk-server-utils (1.1.14) ... Setting up rustdesk-server-utils (1.1.14) ... N: Download is performed unsandboxed as root as file '/tmp/tmp.NoX6Euysuk/rustdesk-server-utils_1.1.14_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) ✔️ Deployed: rustdesk-utils (1.1.14) Reading package lists... Done: rustdesk-api (2.6.27) Building dependency tree... Done Reading state information... Done Note, selecting 'rustdesk-api-server' instead of '/tmp/tmp.p2U7BB9JPj/rustdesk-api-server_2.6.27_amd64.deb' The following NEW packages will be installed: rustdesk-api-server 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/26.9 MB of archives. After this operation, 77.9 MB of additional disk space will be used. Get:1 /tmp/tmp.p2U7BB9JPj/rustdesk-api-server_2.6.27_amd64.deb rustdesk-api-server amd64 2.6.27 [26.9 MB] Selecting previously unselected package rustdesk-api-server. (Reading database ... 20353 files and directories currently installed.) Preparing to unpack .../rustdesk-api-server_2.6.27_amd64.deb ... Unpacking rustdesk-api-server (2.6.27) ... Setting up rustdesk-api-server (2.6.27) ... Created symlink /etc/systemd/system/multi-user.target.wants/rustdesk-api.service → /lib/systemd/system/rustdesk-api.service. N: Download is performed unsandboxed as root as file '/tmp/tmp.p2U7BB9JPj/rustdesk-api-server_2.6.27_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) ✔️ Deployed: rustdesk-api (2.6.27) ⏳ Configuring RustDesk Server[2025-08-22 13:35:56] [WARN] user not found! (/home/runner/work/rustdesk-api/rustdesk-api/cmd/apimain.go:60 main.init.func3) ✔️ Configured RustDesk Server ✔️ Customized Container Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree... Done Reading state information... Done ✔️ Cleaned ✔️ Completed Successfully! 🚀 RustDesk Server setup has been successfully initialized! 💡 Access it using the following URL: 🌐 ****:21114 ### 🖼️ Additional context (optional). _No response_
saavagebueno added the not a script issue label 2025-11-20 05:16:59 -05:00
Author
Owner

@MickLesk commented on GitHub (Aug 22, 2025):

@tremor021 we have tested it yesterday and it worked fine?

@MickLesk commented on GitHub (Aug 22, 2025): @tremor021 we have tested it yesterday and it worked fine?
Author
Owner

@tremor021 commented on GitHub (Aug 22, 2025):

Image Image Image
@tremor021 commented on GitHub (Aug 22, 2025): <img width="775" height="180" alt="Image" src="https://github.com/user-attachments/assets/4a6f2bcf-2f43-4a54-8416-b34c48167328" /> <img width="609" height="539" alt="Image" src="https://github.com/user-attachments/assets/b819aecf-4b70-40c6-9d51-2b572a04ebb8" /> <img width="1301" height="451" alt="Image" src="https://github.com/user-attachments/assets/c3b4e28b-a1f2-4562-aa91-9baa49135cd1" />
Author
Owner

@SomeBelgianDude commented on GitHub (Aug 22, 2025):

In the meantime, I tried lots of things: First I thought it was because of the advanced settings but the same with default settings. Then I thought it might be because I was installing the CT Volume via NFS and switched to local-lvm, nothing seems to be working.
I tried again and same issue: these kings of errors:

N: Download is performed unsandboxed as root as file '/tmp/tmp.sErmFO0jwo/rustdesk-api-server_2.6.27_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

Anything you need from my side to test?

@SomeBelgianDude commented on GitHub (Aug 22, 2025): In the meantime, I tried lots of things: First I thought it was because of the advanced settings but the same with default settings. Then I thought it might be because I was installing the CT Volume via NFS and switched to local-lvm, nothing seems to be working. I tried again and same issue: these kings of errors: N: Download is performed unsandboxed as root as file '/tmp/tmp.sErmFO0jwo/rustdesk-api-server_2.6.27_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) Anything you need from my side to test?
Author
Owner

@MickLesk commented on GitHub (Aug 22, 2025):

thats only an apt hint because lxc are root - installation working with this "issue"-hint like charm

@MickLesk commented on GitHub (Aug 22, 2025): thats only an apt hint because lxc are root - installation working with this "issue"-hint like charm
Author
Owner

@SomeBelgianDude commented on GitHub (Aug 22, 2025):

Image Image

And in case that l is a 1:

Image

Copy pasting over the password also does not work.

@SomeBelgianDude commented on GitHub (Aug 22, 2025): <img width="918" height="244" alt="Image" src="https://github.com/user-attachments/assets/52e2035e-899e-478c-b7a6-c3cec4244445" /> <img width="692" height="715" alt="Image" src="https://github.com/user-attachments/assets/8d90e5ad-d125-4ca1-83bd-d0f6e2cbe914" /> And in case that l is a 1: <img width="556" height="749" alt="Image" src="https://github.com/user-attachments/assets/a5466818-26aa-497c-9490-0b835d2c37f4" /> Copy pasting over the password also does not work.
Author
Owner

@tremor021 commented on GitHub (Aug 22, 2025):

can you do inside LXC:

cd /var/lib/rustdesk-api
rustdesk-api reset-admin-pwd 12345

then try to login with admin / 12345

@tremor021 commented on GitHub (Aug 22, 2025): can you do inside LXC: ```bash cd /var/lib/rustdesk-api rustdesk-api reset-admin-pwd 12345 ``` then try to login with admin / 12345
Author
Owner

@SomeBelgianDude commented on GitHub (Aug 22, 2025):

`root@rustdeskserver:~# cd /var/lib/rustdesk-api

root@rustdeskserver:/var/lib/rustdesk-api# ls
conf data resources runtime

root@rustdeskserver:/var/lib/rustdesk-api# rustdesk-api reset-admin-pwd 12345

[2025-08-22 20:52:31] [INFO] reset password success! (/home/runner/work/rustdesk-api/rustdesk-api/cmd/apimain.go:68 main.init.func3)`

And that seems to have worked! I can now login with that password.
Also I remembered to change my password after ;)

@SomeBelgianDude commented on GitHub (Aug 22, 2025): `root@rustdeskserver:~# cd /var/lib/rustdesk-api root@rustdeskserver:/var/lib/rustdesk-api# ls conf data resources runtime root@rustdeskserver:/var/lib/rustdesk-api# rustdesk-api reset-admin-pwd 12345 [2025-08-22 20:52:31] [INFO] reset password success! (/home/runner/work/rustdesk-api/rustdesk-api/cmd/apimain.go:68 main.init.func3)` And that seems to have worked! I can now login with that password. Also I remembered to change my password after ;)
Author
Owner

@dcgsteve commented on GitHub (Sep 3, 2025):

Not trying to necro this, but I have the same issue on a fresh install today - couldn't get the pre-generated password to work at all :(

Can/should we re-open this or do you want me to make a new issue?

Thanks!

@dcgsteve commented on GitHub (Sep 3, 2025): Not trying to necro this, but I have the same issue on a fresh install today - couldn't get the pre-generated password to work at all :( Can/should we re-open this or do you want me to make a new issue? Thanks!
Author
Owner

@Thormir84 commented on GitHub (Sep 4, 2025):

Not trying to necro this, but I have the same issue on a fresh install today - couldn't get the pre-generated password to work at all :(

Can/should we re-open this or do you want me to make a new issue?

Thanks!

Same here!

@Thormir84 commented on GitHub (Sep 4, 2025): > Not trying to necro this, but I have the same issue on a fresh install today - couldn't get the pre-generated password to work at all :( > > Can/should we re-open this or do you want me to make a new issue? > > Thanks! Same here!
Author
Owner

@PaeyMoopy commented on GitHub (Sep 7, 2025):

Same. I just posted a new issue.

@PaeyMoopy commented on GitHub (Sep 7, 2025): Same. I just posted a new issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#1766