In a state of affairs the place a not too long ago upgraded software program is inflicting points?
Whilst you can at all times examine the difficulty to repair it, at instances, going again to the earlier working model saves effort and time.
If the brand new model launched a bug, you might do nothing in your finish, proper?
The nice factor is you could simply downgrade an apt package deal in Ubuntu and Debian.
All it’s important to do is to make use of the apt command like this:
sudo apt set up package_name=package-version-number
That appears simple sufficient however how would you get the precise model quantity? Which outdated variations are supported? You will get that element with:
sudo apt-cache coverage package_name
Let me clarify all this with a real-life instance.
Downgrading apt package deal
Not too long ago, I used to be updating the Ubuntu server that hosts It is FOSS Neighborhood discussion board.
I did the standard apt replace && apt improve and issues went bonkers by the point updates have been put in.
Apparently, the most recent model of Docker did not help the aufs storage driver. To scale back the downtime, I opted to downgrade to the earlier Docker model.
Examine the at the moment put in package deal model
Then verify for the accessible variations that may very well be put in:
sudo apt-cache coverage package_name
It might throw an enormous record or only a small one:
If it exhibits a minimum of one older model than the present one, you might be in luck.
Now, chances are you’ll suppose that the model variety of a package deal could be composed of simply the numbers. However that will not at all times be the case.
Principally, you copy the whole stuff earlier than 500 (the precedence quantity).
brave-browser:
Put in: 1.48.158
Candidate: 1.48.164
Model desk:
1.48.164 500
500 https://brave-browser-apt-release.s3.courageous.com secure/important amd64 Packages
*** 1.48.158 500
500 https://brave-browser-apt-release.s3.courageous.com secure/important amd64 Packages
100 /var/lib/dpkg/standing
1.47.186 500
500 https://brave-browser-apt-release.s3.courageous.com secure/important amd64 Packages
1.47.171 500
500 https://brave-browser-apt-release.s3.courageous.com secure/important amd64 Packages
1.46.153 500
Upon getting received the package deal quantity, use it to downgrade the put in package deal like this:
sudo apt set up package_name=package-version-number
You will see a warning about downgrading the package deal, after all.
However as soon as the method completes, your package deal would have been downgraded to the given older model.
So, maintain it, perhaps?
So, you simply discovered to downgrade apt packages. However in case you do not concentrate, the package deal might be upgraded once more with the subsequent system replace.
Don’t need that? You’ll be able to forestall a package deal from being up to date. Use the apt-mark command like this:
sudo apt-mark maintain package_name
Need extra particulars? Try this text.
I hope this fast tip helps you with downgrading the apt packages when the necessity arises. Let me know when you have questions or strategies.