Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 3, 2025

✍️ Description

Homebridge update script fails on Debian 13 with "No Homebridge Installation Found!" despite package being installed. Root cause: script checks for legacy /etc/apt/sources.list.d/homebridge.list but Debian 13 uses DEB822 format (.sources files).

Change: Replace file-based check with package-based check using dpkg -s homebridge

# Before
if [[ ! -f /etc/apt/sources.list.d/homebridge.list ]]; then

# After  
if ! dpkg -s homebridge >/dev/null 2>&1; then

This aligns with existing patterns in grafana.sh, jellyfin.sh, and wireguard.sh, making detection format-agnostic and more reliable.

🔗 Related PR / Issue

Link: N/A (reported via issue tracker)

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.
Original prompt

This section details on the original issue you should resolve

<issue_title>Homebridge not updating using script</issue_title>
<issue_description>### ✅ 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?

Homebridge

📂 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 13

📈 Which Proxmox version are you on?

9.1.1

📝 Provide a clear and concise description of the issue.

When running the update script, regardless of choosing YES (Simple mode) or YES (Verbose mode), it always ends with: No Homebridge Installation Found!

Homebridge is working as usual, and I've been able to manually update it by stopping the service, run the updates and then starting it again. But the script will not update it at all. Attached is a screenshot of my terminal.

Image

🔄 Steps to reproduce the issue.

Step 1: Inside Homebridge LXC, run update or bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/homebridge.sh)" then select YES.

❌ Paste the full error output (if available).

✖️ No Homebridge Installation Found!

🖼️ Additional context (optional).

No response</issue_description>

<agent_instructions>deb13 should not use .list, maybe an dpkg check? or similar</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@MickLesk in meantime...

apt update
apt install -y homebridge</comment_new>


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix Homebridge update script issue Fix Homebridge update detection for Debian 13 DEB822 format Dec 3, 2025
Copilot AI requested a review from MickLesk December 3, 2025 17:08
@MickLesk MickLesk marked this pull request as ready for review December 3, 2025 17:23
@MickLesk MickLesk requested a review from a team as a code owner December 3, 2025 17:23
@github-actions github-actions bot added the update script A change that updates a script label Dec 3, 2025
@github-actions github-actions bot added the bugfix label Dec 3, 2025
@MickLesk MickLesk merged commit fb12b1e into main Dec 3, 2025
7 checks passed
probers1 pushed a commit to probers1/ProxmoxVE that referenced this pull request Dec 5, 2025
…y-scripts#9629)

* Initial plan

* Fix Homebridge update detection for Debian 13

Co-authored-by: MickLesk <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: MickLesk <[email protected]>
@MickLesk MickLesk deleted the copilot/fix-homebridge-update-script branch December 8, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix update script A change that updates a script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Homebridge not updating using script

3 participants