How to Remove the DRM from Kindle Books on Debian

My Kindle is from 2012, it is a 5th generation Kindle Paperwhite, and it works perfectly. I don't need to buy a new one. Unfortunately, it is no longer supported by Amazon (it won't receive new updates). So if and when its hardware fails, I would like to have the option to buy whichever brand of ereader I like without feeling locked in the Kindle brand by my previous purchases from Amazon. I first…