Plex LXC UPDATE error (minor) #2045

Closed
opened 2026-02-05 03:33:41 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @syl779 on GitHub (Nov 21, 2025).

Have you read and understood the above guidelines?

yes

🔎 Did you run the script with verbose mode enabled?

Yes, verbose mode was enabled and the output is included below

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

plex

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

update

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📈 Which Proxmox version are you on?

pve-manager/8.4.13/5b08ebc2823dd9cb (running kernel: 6.8.12-15-pve)

📝 Provide a clear and concise description of the issue.

____  __         

/ __ / /__ _ __
/ // / / _ | |//
/ / / __/> <
/
/ /
/___/
/|
|

environment: line 26: [: missing `]'
Hit:1 https://downloads.plex.tv/repo/deb public InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
8 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libnss-systemd libpam-systemd libsystemd0 libudev1 systemd systemd-sysv systemd-timesyncd udev
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
✔️ Updated Plex LXC
✔️ Updated successfully!

🔄 Steps to reproduce the issue.

update

Always gives environment: line 26: [: missing `]'

I think it relates to this line:

if [ ! -f /etc/apt/sources.list.d/plexmediaserver.list ]] && ! -f /etc/apt/sources.list.d/plexmediaserver.sources ; then

Paste the full error output (if available).

environment: line 26: [: missing `]'

🖼️ Additional context (optional).

No response

Originally created by @syl779 on GitHub (Nov 21, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 🔎 Did you run the script with verbose mode enabled? Yes, verbose mode was enabled and the output is included below ### 📜 What is the name of the script you are using? plex ### 📂 What was the exact command used to execute the script? update ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📈 Which Proxmox version are you on? pve-manager/8.4.13/5b08ebc2823dd9cb (running kernel: 6.8.12-15-pve) ### 📝 Provide a clear and concise description of the issue. ____ __ / __ \/ /__ _ __ / /_/ / / _ \| |/_/ / ____/ / __/> < /_/ /_/\___/_/|_| environment: line 26: [: missing `]' Hit:1 https://downloads.plex.tv/repo/deb public InRelease Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu jammy-security InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 8 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages have been kept back: libnss-systemd libpam-systemd libsystemd0 libudev1 systemd systemd-sysv systemd-timesyncd udev 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded. ✔️ Updated Plex LXC ✔️ Updated successfully! ### 🔄 Steps to reproduce the issue. update Always gives environment: line 26: [: missing `]' I think it relates to this line: if [ ! -f /etc/apt/sources.list.d/plexmediaserver.list ]] && [[ ! -f /etc/apt/sources.list.d/plexmediaserver.sources ]]; then ### ❌ Paste the full error output (if available). environment: line 26: [: missing `]' ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-05 03:33:41 +03:00
Author
Owner

@MickLesk commented on GitHub (Nov 21, 2025):

Can you add Screenshots of process? Which whiptail? What Happens completly?

Why you enter Debian and put Ubuntu URLs?

@MickLesk commented on GitHub (Nov 21, 2025): Can you add Screenshots of process? Which whiptail? What Happens completly? Why you enter Debian and put Ubuntu URLs?
Author
Owner

@syl779 commented on GitHub (Nov 21, 2025):

I thought Proxmox 8 was built on Debian 12.
This is the Plex media Server LXC as installed by the script.
Here is a screenshot, I don't think it adds much.

https://freeimage.host/i/f265NkX

@syl779 commented on GitHub (Nov 21, 2025): I thought Proxmox 8 was built on Debian 12. This is the Plex media Server LXC as installed by the script. Here is a screenshot, I don't think it adds much. [https://freeimage.host/i/f265NkX](https://freeimage.host/i/f265NkX)
Author
Owner

@MickLesk commented on GitHub (Nov 21, 2025):

I see the Syntax Error. Its fixed with Linked PR

@MickLesk commented on GitHub (Nov 21, 2025): I see the Syntax Error. Its fixed with Linked PR
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#2045