I'd like to remove the DRM protection from a couple of my eBooks, just for PERSONAL USE (since they are locked, I cannot read them). They are protected by the Adobe ADE DRM.
On the Internet there are many ways to get the result, but most of them are outdated. Is there a simple and effective one?
This is the simplest way that I have found:
The simple answer is no. There is a convoluted process to getting the DRM stripped from your ebooks, but it is possible.
You will need to install calibre, and get the DRM removal plug-in separately. To get your keys from Adobe into the Calibre ebook reader, you will need to install the Adobe Digital Editions (ADE) with Wine.
Follow the instructions in the DRM removal plugin to get it working.
Update 1: ADE 1.7 no longer works properly in Wine. Attempts to download ebooks into it inevitably fail. Only version 2.0.1 works with this method of removing DRMs, and it is still quite difficult to get it set up properly in Wine.
Update 2: The DeDRM tools linked in here are even more straightforward for use if you legally own an ebook device. My books bought or owned on the Kobo and Amazon ebook stores can be quite trivially processed with the plugins included in the DeDRM packages linked in my original answer, as they rely on the device ID for DRM removal. No more installation of ADE required. The downloaded files include steps specific for your device.
The other answers no longer work (or did for me). Unfortunately getting it to work is convoluted and will use +5GB of space. However, this is what I did to get it working. I hope I included all the steps. It installs ADE 2.0.1
Note: wine1.7 and the version in repo for winetricks failed for installing dotdeb (required for ADE 2.0.1) so I installed the latest winetricks and wine
whereis winetricks
to find it and moved the downloaded winetricks to that location (for example/usr/bin/winetricks
)sudo add-apt-repository ppa:ricotz/unstable
sudo apt-get update && sudo apt install wine-stable
Installing ADE 2.0.1
I used this guide (partially replicated here)
Files to downloadWINEPREFIX=~/.adewine WINEARCH=win32 wineboot
export WINEPREFIX=$HOME/.adewine/
winetricks -q windowscodecs && winetricks -q corefonts
wine ~/Downloads/dotnetfx35setup.exe
# Will take awhilewine ~/Downloads/ADE_2.0_Installer.exe
At this point, you should open ADE and login to authorize it to allow calibre to gain your key later on.
WINEPREFIX=$HOME/.adewine/ wine ~/.adewine/drive_c/Program\ Files/Adobe/Adobe\ Digital\ Editions\ 2.0/DigitalEditions.exe
Install Python and Pycrypto for Calibre
The script for removing drm with calibre recommends python2.7 but python2.6 seems to work. For me, there was a bug where wine cannot find python.exe and has a error of
wine: cannot find L"C:\\windows\\system32\\python.exe"
I worked around that by linking it.
Install python26export WINEPREFIX=$HOME/.adewine/
winetricks python26
cd ~/.adewine/drive_c/windows/system32 && ln -s ../../Python26/python.exe ./; cd -
export WINEPREFIX=$HOME/.adewine/
wine pycrypto-2.6.win32-py2.6.exe
Install calibre and drm plugin
Install calibre
Install DeDRM calibre pluginsudo apt-get install calibre
Download DeDRM_tools from this repo
Preferences
->Plugins
->Load Plugin from file
-> ChooseDeDRM_plugin.zip
from the directory you extracted too.Configure DRM Plugin
drm
orDeDRM
Customize plugin
->Adobe Digital Editions ebooks
/home/YOURUSERNAME/.adewine
# Replace YOURUSERNAME with your username :)Test
Download a book to ADE by opening the .ascm file (or dragging into it). You can open ADE by running
WINEPREFIX=$HOME/.adewine/ wine DigitalEditions.exe
Run Calibre and add a book from ~/Documents/My Digital Editions/bookname.epub
Miati's answer and the guide worked for me with Ubuntu 18.04. But on a new Laptop with 19.10 and Wine 4, I could not get it working despite trying for hours.
I think it is because Adobe Digital Editions 2.0.1 and DotNet 3.5 require 32 bit Windows XP, I am not sure but it is altogether very complicated setup...
But then I found another way which is even way easier and much faster: Use Lutris for installing Adobe Digital Editions (in short: ADE)!
Step by step:
WINEPREFIX=/home/YOUR_USERNAME/Games/adobe-digital-editions wine start Downloads/python-2.7.17.msi
Here/home/YOUR_USERNAME/Games/adobe-digital-editions
is the WINEPREFIX created by Lutris. Change YOUR_USERNAME to your username.WINEPREFIX=/home/YOUR_USERNAME/Games/adobe-digital-editions wine Downloads/pycrypto-2.6.win32-py2.7.exe
Again change YOUR_USERNAME to your username.That's it. As for setting up Calibre and the DeDRM plugin use Miati's answer.
As time passes always keep an eye at the Wine AppDB for ADE 2.0.1. That's how I found out about using Lutris.