Fix RustDesk dependency resolution

- Added --fix-missing flag to apt-get install
- Added apt --fix-broken install commands to resolve dependency conflicts
- This ensures all dependencies and sub-dependencies are properly installed
parent 5fefacdc
...@@ -27,7 +27,7 @@ fi ...@@ -27,7 +27,7 @@ fi
# Install missing dependencies # Install missing dependencies
echo "Installing RustDesk dependencies..." echo "Installing RustDesk dependencies..."
apt-get install -y \ apt-get install -y --fix-missing \
libxdo3 \ libxdo3 \
libxfixes3 \ libxfixes3 \
libxcb-shape0 \ libxcb-shape0 \
...@@ -35,9 +35,16 @@ apt-get install -y \ ...@@ -35,9 +35,16 @@ apt-get install -y \
libva-drm2 \ libva-drm2 \
libva-x11-2 libva-x11-2
# Try to fix any broken packages
echo "Fixing any broken packages..."
apt-get --fix-broken install -y
echo "Installing RustDesk .deb package..." echo "Installing RustDesk .deb package..."
dpkg -i "$RUSTDESK_DEB" dpkg -i "$RUSTDESK_DEB"
# Final fix for any remaining issues
apt-get --fix-broken install -y
# Clean up # Clean up
rm -f "$RUSTDESK_DEB" rm -f "$RUSTDESK_DEB"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment