Table of Contents
iTunes is a free movie and music player, media player, internet radio that can run under Mac OS X, Windows, produced by Apple, and is written in C++. So how is this application used in the Linux operating system?
In this article, we will install this application on Ubuntu, which is a Debian based operating system and a popular distribution among end users, so that you can use.
Different methods to install iTunes on Ubuntu
This job can be done with 2 different methods. In fact, in both methods, we will install a Wine application and iTunes. In the second method, we will use PlayOnLinux, a GUI application for Wine. It uses Wine in the background on PlayOnLinux. Let's start.
Method-1: Install with Wine
Wine is a free application layer that enables Windows software to run on POSIX-compliant operating systems such as Linux and Mac OS X. Wine stands for "Wine Is Not an Emulator".
First we will install Wine, then we will install iTunes with the help of Wine. First of all, let's download the wine repository key and add it to the system:
foc@ubuntu22desktop:~$ wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). OK
Then let's add the wine store and then press Enter to update the package store:
foc@ubuntu22desktop:~$ sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main" Repository: 'deb https://dl.winehq.org/wine-builds/ubuntu/ jammy main' Description: Archive for codename: jammy components: main More info: https://dl.winehq.org/wine-builds/ubuntu/ Adding repository. Press [ENTER] to continue or Ctrl-c to cancel. Adding deb entry to /etc/apt/sources.list.d/archive_uri-https_dl_winehq_org_wine-builds_ubuntu_-jammy.list Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-https_dl_winehq_org_wine-builds_ubuntu_-jammy.list Get:1 https://dl.winehq.org/wine-builds/ubuntu jammy InRelease [8.041 B] Hit:2 http://tr.archive.ubuntu.com/ubuntu jammy InRelease Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] ... Get:29 http://tr.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B] Get:30 http://tr.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [11,7 kB] Fetched 6.395 kB in 3s (1.841 kB/s) Reading package lists... Done W: https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Finally, install the Winehq-Stable package:
foc@ubuntu22desktop:~$ sudo apt install --install-recommends winehq-stable
The wine was successfully installed. Let's start with the iTunes installation.
You can download the version you want to install by going to the iTunes official download address. We wanted to install the latest version, but after the installation was getting the black screen error. Installation is explained over this version by downloading 12.4.3(iTunes 12.4.3 for Windows (64-bit - for older video cards)) from the original download address.
1 - Right click on the downloaded .exe file, click "Open With Other Application".
2 - Click on "Wine Windows Program Loader".
3 - The Wine Mono Installer is installed.
4 - Clicking on the Next icon continues the installation.
5 - Clicking on the Finish icon completes the installation.
6 - Created shortcut for iTunes on desktop. Right click on this icon and give permission to run.
7 - Confirm your agreement with Apple.
8 - You can use the iTunes application on Ubuntu.
Method-2: Install with PlayOnLinux
PlayOnLinux is a graphical frontend for the Wine software compatibility layer. If you haven't installed Wine before because it uses Wine in the infrastructure, install with the following commands.
Add the Wine repository key:
foc@ubuntu22desktop:~$ wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
Add the Wine repository:
foc@ubuntu22desktop:~$ sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main" Repository: 'deb https://dl.winehq.org/wine-builds/ubuntu/ jammy main' Description: Archive for codename: jammy components: main More info: https://dl.winehq.org/wine-builds/ubuntu/ Adding repository. Press [ENTER] to continue or Ctrl-c to cancel.
Then install Wine:
foc@ubuntu22desktop:~$ sudo apt install --install-recommends winehq-stable -y
Wine is installed, now it's PlayOnLinux's turn. Add the PlayOnLinux repository key:
foc@ubuntu22desktop:~$ sudo wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add - Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). OK
Add the PlayOnLinux repository:
foc@ubuntu22desktop:~$ sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list --2022-11-21 22:45:42-- http://deb.playonlinux.com/playonlinux_precise.list Resolving deb.playonlinux.com (deb.playonlinux.com)... 18.104.22.168, 2001:41d0:1008:d93::1e Connecting to deb.playonlinux.com (deb.playonlinux.com)|22.214.171.124|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 45 Saving to: ‘/etc/apt/sources.list.d/playonlinux.list’ /etc/apt/sources. 100%[=============>] 45 --.-KB/s in 0s 2022-11-21 22:45:42 (4,59 MB/s) - ‘/etc/apt/sources.list.d/playonlinux.list’ saved [45/45]
Update package list after adding repository:
foc@ubuntu22desktop:~$ sudo apt update
Install the PlayOnlinux and Wine 64 package with the updated repository:
foc@ubuntu22desktop:~$ sudo apt install playonlinux wine64 -y
Now search PlayOnLinux from the menu. And start the installation:
- During a PlayOnLinux installation > Next
- PlayOnLinux is not related to WineHQ > Next
- Welcome to PlayOnLinux manual installation wizard > Next
- What would you like to do? > Install a program in a new virtual drive > Next
Give the virtual drive a name:
If you want, you can configure it before installation, but we are installing for the first time, continue with Next.
- 64 bits windows installation > Next
- Wine Mono Installer > Install
- Browse > Select your .exe file. > Next
After this step, the standard iTunes installation steps come. If you haven't installed it before, you can follow the steps in the previous method.
Create a shortcut for the application in PlayOnLinux.
Creating shortcuts is displayed again, this time we will not create shortcuts.
You can now use iTunes via PlayOnLinux.
In this article, we have explained how to install iTunes on Ubuntu with 2 methods. Whether you install with Wine or PlayOnLinux, you may not be able to catch the stability on Microsoft.
Although we have installed iTunes, you can install different Microsoft applications on Ubuntu with this method. It is available in many applications that PlayOnLinux recommends for you. By choosing the application you need, you can easily install on Ubuntu quickly.