Installing MythTV on Ubuntu
Introduction
This page describes how to install MythTV on Ubuntu using the package manager. For those who prefer to minimize the need to use 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. |
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 36.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/35
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 (36.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.
sudo apt update
Install Software
Some users have reported issues with the Ubuntu (probably all Debian derived systems) packages depending on but not requiring pwgen. Might as well install it first.
sudo apt install pwgen
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 systemd 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)
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 as described on the mailing list. Alternatively, HDHomeRun tuner owners can use this script.
Once the software is installed, proceed to Post Installation Tasks.