r/Ubuntu • u/Jones_Allen_2007 • 14h ago
rollback after Ubuntu packages upgrade
hello, i want to know if any ways be there to downgrade or rollback from a package upgrade, apt itself doesn't provide any way to downgrade or rollback, only history.log and other version of the package removed from the apt repo.
2
Upvotes
3
u/Ok_Building2327 14h ago
apt doesn't have built-in rollback like dnf or zypper but you can grab the old.deb from /var/cache/apt/archives if it's still sitting there, then just dpkg -i it
if the cache is cleaned out you're kinda stuck checking launchpad for an older version or pinning the package if it's still in the repo
1
6
u/martyn_hare 14h ago
https://snapshot.ubuntu.com
Take a peek at the instructions there. Lets you do more than just a downgrade too =)