mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
Use dpkg first when APT is broken
This commit is contained in:
parent
2d571ceaed
commit
edccae121e
1 changed files with 6 additions and 0 deletions
|
@ -65,5 +65,11 @@ if [ -z "$PURGE" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! apt install --fix-broken --dry-run >/dev/null 2>&1; then
|
||||||
|
echo "APT is broken, trying with dpkg"
|
||||||
|
dpkg --purge $PURGE
|
||||||
|
apt install --fix-broken
|
||||||
|
fi
|
||||||
|
|
||||||
apt $APT_OPTS remove --purge $PURGE
|
apt $APT_OPTS remove --purge $PURGE
|
||||||
apt $APT_OPTS autoremove --purge
|
apt $APT_OPTS autoremove --purge
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue