# Failed upgrade to Buster from Strecth

**URL:** https://dietpi.com/forum/t/failed-upgrade-to-buster-from-strecth/6435
**Category:** Troubleshooting
**Created:** [18 March 2022 10:48 UTC](https://dietpi.com/forum/t/failed-upgrade-to-buster-from-strecth/6435 "2022-03-18T10:48:12Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [18 March 2022 16:13 UTC](https://dietpi.com/forum/t/failed-upgrade-to-buster-from-strecth/6435/13 "2022-03-18T16:13:25Z")

</div>

Yes, please do this steps for cleanup:

```nohighlight
apt autopurge 'php7.2-*' 'php8.0-*' 'php8.1-*'
apt-mark auto libpcre3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libsodium23 libxml2 libxml2-dev libzip4 php php-common php7.3-redis php7.3-sqlite3 php7.3-intl php7.3-igbinary php7.3-apcu php-igbinary php-redis
apt autopurge
dpkg -l | grep -E 'debian9|bpo9'

```

The last command is to get a list of still present Stretch packages.

---

_[View the full topic](https://dietpi.com/forum/t/failed-upgrade-to-buster-from-strecth/6435)._
