Installing MythTV on Ubuntu
This page is up-to-date as of MythTV version 0.27.6, the current release is 35.0
Contents
Introduction
This page describes how to install MythTV on Ubuntu using the package manager. For those who prefer to avoid using the command line, Mythbuntu Control Panel can be used to install MythTV on Ubuntu.
Choose Your Package
Decide what type of installation you need.
If this is your first system and you are using a single box for recording and watching, you need a complete frontend, backend and database. Choose the mythtv package.
If you are adding a Frontend to an existing system, to allow for watching on another TV or computer system, choose the mythtv-frontend package.
If you are adding a Slave Backend use mythtv-backend. This is an advanced usage that few people will need.
There are packages for installing a complete system, or for installing parts of a multi server system.
mythtv | Complete frontend and backend system with database. |
mythtv-frontend | Frontend that connects to a separate backend. |
mythtv-backend | Backend without database. This is either a master backend where there is a separate database server or a slave backend. |
mythtv-backend-master | Master Backend with database. |
mythtv-database | MythTV database only. Advanced use where there is a separate database server from backend. You will need to also install mysql server when using this. |
mythplugins | Plugins for a frontend system. Install this after installing your main package from earlier in this list. |
mythbuntu-control-panel | Mythbuntu Control Panel is a part of MythBuntu but can be installed on any Ubuntu system to help with configuration tasks. It is not essential as all of the functions it provides can be done with other tools. Install this after installing your main package from earlier in this list. |
Check Available Version
Check which version of your package is available as follows:
sudo apt update
apt-cache policy packagename
For packagename substitute one of the available names in the table above. The display will show something like this:
bob@htpc:~$ apt-cache policy mythtv mythtv: Candidate: 2:32.0+fixes.202211050719.18f5b48ee1~ubuntu22.04.1 Version table: 2:32.0+fixes.202211050719.18f5b48ee1~ubuntu22.04.1 500 500 http://ppa.launchpad.net/mythbuntu/32/ubuntu jammy/main amd64 Packages 500 http://ppa.launchpad.net/mythbuntu/32/ubuntu jammy/main i386 Packages 2:32.0+fixes.202204231837.daa4e7e447~ubuntu22.04.1 500 500 http://ppa.launchpad.net/mythbuntu/32/ubuntu jammy/main amd64 Packages 500 http://ppa.launchpad.net/mythbuntu/32/ubuntu jammy/main i386 Packages 2:32.0+fixes.20220325.f69ce764b7-0ubuntu1 500 500 http://mirrors.ocf.berkeley.edu/ubuntu jammy/multiverse amd64 Packages 500 http://mirrors.ocf.berkeley.edu/ubuntu jammy/multiverse i386 Packages
The number following "2:" is the Release that is available in your repository. The current latest release is 35.0. You will want to install this Release unless you are installing a new frontend or slave backed to a backend that runs an earlier Release.
Install PPA
If the version in the repository is not the latest, you will need to install a PPA. The MythTV PPA has a PPA for each major version of MythTV. Install the ppa using the following command:
sudo add-apt-repository ppa:mythbuntu/XX
for example sudo add-apt-repository ppa:mythbuntu/32
or prior to v30
sudo add-apt-repository ppa:mythbuntu/0.XX
0.XX is the major version that you are installing, for example 0.29. Note that even if the Current Release (35.0) has three numbers separated by periods, the PPA name only uses the first two levels of the version number. After running this command, repeat the instructions above to check the available version.
Install Software
Prior to MythTV 31 there are some issues with MythTV packaging in the Ubuntu repositories and the Mythbuntu PPA which result in problems with the initial installation. A solution (not required for MythTV 31 and beyond) is available at MythTV forum post https://forum.mythtv.org/viewtopic.php?f=36&t=3114#p15073
A number of users are experiencing problems with network tuners e.g. HD Homerun which results in failed recordings. The root cause is mythbackend being started at boot time before networking has been fully established. This issue can also affect remote MythTV frontends connecting to MythTV backend server. A solution is available (courtesy of Stephen Worthington); see https://lists.gt.net/mythtv/users/625986#625986
Once you have the correct Release version in your repository, install the package, as follows:
sudo apt install packagename
The packages do the following:
- Install MythTV software and all prerequisites
- Install MySQL database software
- Create a MySQL database user for MythTV
- Set up the MythTV configuration file
- Create an upstart configuration that automatically runs the backend at system startup time
- Configure a weekly backup of the database using Anacron
- Create desktop entries to launch MythTV frontend and the MythTV backend setup from the GUI menus (Unity, Gnome, Cinnamon, Mate, XFCE or other desktop you may have installed)
Once the software is installed, proceed to Configuring MythTV.