mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -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
|
||||
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 autoremove --purge
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue