From 59921563562ee95fcd17ce5730c1f66e5a749d54 Mon Sep 17 00:00:00 2001 From: Smittix Date: Fri, 16 Jan 2026 11:30:57 +0000 Subject: [PATCH] Fix RTL-SDR package conflicts in setup.sh Remove conflicting librtlsdr packages before installing to avoid dpkg errors when RTL-SDR Blog drivers conflict with stock packages. Co-Authored-By: Claude Opus 4.5 --- setup.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 17cc19e..75e5ef9 100755 --- a/setup.sh +++ b/setup.sh @@ -700,7 +700,17 @@ install_debian_packages() { $SUDO apt-get update -y >/dev/null progress "Installing RTL-SDR" - apt_install rtl-sdr + # Fix potential package conflicts between RTL-SDR Blog drivers and stock packages + # These can conflict when switching between source-built and apt versions + if dpkg -l 2>/dev/null | grep -qE "librtlsdr0|librtlsdr2"; then + info "Cleaning up existing RTL-SDR packages to avoid conflicts..." + $SUDO apt-get remove -y librtlsdr0 librtlsdr2 rtl-sdr librtlsdr-dev 2>/dev/null || true + $SUDO apt-get autoremove -y 2>/dev/null || true + fi + # Now install fresh + if ! apt_install rtl-sdr; then + warn "rtl-sdr package failed, RTL-SDR Blog drivers will provide the tools" + fi progress "Installing RTL-SDR Blog drivers (V4 support)" install_rtlsdr_blog_drivers_debian