Pihole scripts fails trying to install Unbound #649

Closed
opened 2026-02-04 20:34:26 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @ccoles146 on GitHub (Mar 17, 2025).

Have you read and understood the above guidelines?

yes

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

Pi-hole LXC

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

bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/pihole.sh)"

📝 Provide a clear and concise description of the issue.

I tried to install a pihole LXC and then decided to also install the Unbound option. Shortly after attempting to install Unbound the script failed as shown below:

Would you like to add Unbound? <y/N> y
 \sed: can't read /etc/pihole/setupVars.conf: No such file or directory

[ERROR] in line 98: exit code 0: while executing command sed -i -e 's/PIHOLE_DNS_1=8.8.8.8/PIHOLE_DNS_1=127.0.0.1#5335/' -e 's/PIHOLE_DNS_2=8.8.4.4/#PIHOLE_DNS_2=8.8.4.4/' /etc/pihole/setupVars.conf

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Using PVE shell as root.
Attempt to run the pihole installation script
Agree to install Unbound

Paste the full error output (if available).

\sed: can't read /etc/pihole/setupVars.conf: No such file or directory

[ERROR] in line 98: exit code 0: while executing command sed -i -e 's/PIHOLE_DNS_1=8.8.8.8/PIHOLE_DNS_1=127.0.0.1#5335/' -e 's/PIHOLE_DNS_2=8.8.4.4/#PIHOLE_DNS_2=8.8.4.4/' /etc/pihole/setupVars.conf

🖼️ Additional context (optional).

No response

Originally created by @ccoles146 on GitHub (Mar 17, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Pi-hole LXC ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/pihole.sh)" ### 📝 Provide a clear and concise description of the issue. I tried to install a pihole LXC and then decided to also install the Unbound option. Shortly after attempting to install Unbound the script failed as shown below: ``` Would you like to add Unbound? <y/N> y \sed: can't read /etc/pihole/setupVars.conf: No such file or directory [ERROR] in line 98: exit code 0: while executing command sed -i -e 's/PIHOLE_DNS_1=8.8.8.8/PIHOLE_DNS_1=127.0.0.1#5335/' -e 's/PIHOLE_DNS_2=8.8.4.4/#PIHOLE_DNS_2=8.8.4.4/' /etc/pihole/setupVars.conf ``` ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. Using PVE shell as root. Attempt to run the pihole installation script Agree to install Unbound ### ❌ Paste the full error output (if available). \sed: can't read /etc/pihole/setupVars.conf: No such file or directory [ERROR] in line 98: exit code 0: while executing command sed -i -e 's/PIHOLE_DNS_1=8.8.8.8/PIHOLE_DNS_1=127.0.0.1#5335/' -e 's/PIHOLE_DNS_2=8.8.4.4/#PIHOLE_DNS_2=8.8.4.4/' /etc/pihole/setupVars.conf ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-04 20:34:26 +03:00
Author
Owner

@MickLesk commented on GitHub (Mar 17, 2025):

Old repo. Use the new

@MickLesk commented on GitHub (Mar 17, 2025): Old repo. Use the new
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#649