Skip to content

Instantly share code, notes, and snippets.

@bmaupin
Last active November 13, 2024 15:35
Show Gist options
  • Save bmaupin/9a37b4234381cf6548f2cc0e25af4b5f to your computer and use it in GitHub Desktop.
Save bmaupin/9a37b4234381cf6548f2cc0e25af4b5f to your computer and use it in GitHub Desktop.
Install OverDrive in Ubuntu

⚠️ Support for the Overdrive desktop app and downloading audio books as MP3s was disconintued on 2024-11-13 ☹️

Install Overdrive

# Windows Media Player 10 doesn't support 64-bit
export WINEARCH=win32
# Use a separate Wine prefix to avoid messing up other Wine apps
export WINEPREFIX=~/.local/share/wineprefixes/overdrive

# Install Wine (Overdrive doesn't seem to work with the version of Wine that comes with Ubuntu 20.04)
# Check here first to see if the steps have changed: https://wiki.winehq.org/Ubuntu
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
rm winehq.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt update
sudo apt install --install-recommends winehq-stable

# Set up new Wine prefix
wineboot

# Install winetricks
sudo apt install winetricks

# Install Windows Media Player 10
winetricks wmp10

# Install OverDrive
wget https://static.od-cdn.com/ODMediaConsoleSetup.msi
wine msiexec /i ODMediaConsoleSetup.msi
rm ODMediaConsoleSetup.msi

Open OverDrive

Use the application launcher (an entry should've been automatically created) or:

export WINEPREFIX=~/.local/share/wineprefixes/overdrive; wine $WINEPREFIX/drive_c/Program\ Files/OverDrive\ for\ Windows/MediaConsole.exe

Troubleshooting

Unable to create the OMC detect object used to get version information

If everything works but you get this error when trying to run OverDrive later, make sure you are properly setting the Wine prefix using export WINEPREFIX

The download server returned response code 404

Wait a few minutes and try again. You can leave the dialogue open and just click Yes again after waiting a few minutes.

Unable to acquire a license to play the selected title. Error 1003: The requested license is either invalid or already acquired.

If it's been a while since you downloaded the .odm file from the OverDrive website, I think the license in the file expires. Download a new one from the OverDrive website and try again.

Unable to open the specified path ... The file type is not recognized by OverDrive for Windows.

Make sure you're opening a .odm file; if you have an .acsm file, you should open it with Adobe Digital Editions instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment