#!/bin/bash # Quick Fix for apt-ostree D-Bus Issues echo "=== Quick Fix for apt-ostree ===" echo echo "1. Rebuilding client with latest fixes..." cargo build --release echo "2. Installing updated client binary..." sudo cp target/release/apt-ostree /usr/bin/ sudo chmod +x /usr/bin/apt-ostree echo "3. Checking daemon logs..." echo "Daemon status:" sudo systemctl status apt-ostreed.service --no-pager || echo "Status check failed" echo echo "Daemon logs:" sudo journalctl -u apt-ostreed.service --no-pager -n 10 || echo "Log check failed" echo echo "4. Testing client-daemon communication..." echo "Testing client ping:" apt-ostree daemon-ping || echo "Client ping failed" echo "Testing client status:" apt-ostree daemon-status || echo "Client status failed" echo echo "=== Quick Fix Complete ==="