如何在 Ubuntu 上安装最新版本的 Handbrake
HandBrake

> 
> 此快速教程介绍了如何使用在基于 Ubuntu 的发行版上使用官方 PPA 安装最新版本的 HandBrake。
> 
> 
> 


![](/data/attachment/album/202008/13/223818yghmgmagqggm2pa0.jpg)


[HandBrake](https://handbrake.fr/) 是可用于 Linux、Windows 和 macOS 的最受欢迎的开源视频转换器之一。


此 GUI 应用让你只需单击几下即可将视频从一种格式转换为另一种格式。你还可以根据需要自定义输出视频。


[HandBrake](https://itsfoss.com/handbrake/) 存在于 [Ubuntu 的通用存储库](https://itsfoss.com/ubuntu-repositories/)中，但它可能并不总是最新版本。让我向你展示如何在 Ubuntu 和其他基于 Ubuntu 的发行版（如 Linux Mint、Linux Lite、elementray OS 等）上获得最新的 HandBrake。


### 在基于 Ubuntu 的 Linux 发行版上安装最新的 HandBrake


HandBrake 的开发人员维护着一个[官方的 PPA](https://launchpad.net/~stebbins/+archive/ubuntu/handbrake-releases)。[使用此 PPA](https://itsfoss.com/ppa-guide/)，你可以轻松地在基于 Ubuntu 的发行版中安装最新版本的 HandBrake。


打开终端，然后使用以下命令添加 PPA 仓库。需要时按下回车键：



```
sudo add-apt-repository ppa:stebbins/handbrake-releases

```

你可能需要更新本地软件包缓存（在 Ubuntu 18.04 和更高版本中不是必需的）：



```
sudo apt update

```

现在，使用以下命令安装最新版本的 HandBrake：



```
sudo apt-get install handbrake-gtk

```

这个方法最好的地方是会删除旧的 handbrake 软件包，从而避免安装两个不同版本的 handbrake。


![](/data/attachment/album/202008/13/223951sh65r661p3g1toti.png)


在你的 Linux 系统上享受最新最好的 HandBrake 并转换视频。


### 从系统中卸载 HandBrake


由于某些原因，如果你不喜欢 HandBrake 并希望将它删除，那么需要执行以下操作。


打开终端并使用以下命令卸载 HandBrake：



```
sudo apt remove handbrake-gtk

```

现在，你已经删除了该应用，如果你不再需要它，那么[删除它的 PPA](https://itsfoss.com/how-to-remove-or-delete-ppas-quick-tip/) 是一个好主意。



```
sudo add-apt-repository -r ppa:stebbins/handbrake-releases

```

在询问时确认。


在这篇快速 Ubuntu 教程中，你学习了使用 PPA 安装最新的 HandBrake 的步骤。你还了解了正确删除它的步骤。


我希望你觉得这篇快速教程有用。如果你有任何问题或建议，请在下面发表评论。




---


via: <https://itsfoss.com/install-handbrake-ubuntu/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

HandBrake is one of the most popular [open-source video converters for Linux](https://itsfoss.com/open-source-video-converters/), Windows, and macOS.

This GUI application enables you to convert videos from one format to another in just a few clicks. You can also customize the output video as per your requirements.

**Starting with version 20.04, **

**HandBrake**is available in the

**universe repository of Ubuntu**. This means you can install it using the command below:

`sudo apt install handbrake`


Or look for it in the Software Center.

**But you might not get the latest version of HandBrake this way.**

Let me show you how you can get the **latest HandBrake on Ubuntu** and other Ubuntu-based distributions like Linux Mint, Linux Lite, elementary OS etc.

## Installing the latest HandBrake on Ubuntu

The developers of [HandBrake](https://handbrake.fr/?ref=itsfoss.com) maintain an [official PPA](https://launchpad.net/~stebbins/+archive/ubuntu/handbrake-releases?ref=itsfoss.com) for **Ubuntu 20.04 LTS and older**. [Using this PPA](https://itsfoss.com/ppa-guide/), you can easily install the latest version of HandBrake on your Ubuntu-based distribution.

Open a terminal and use the following command to add the PPA repository. Press enter when asked for it:

`sudo add-apt-repository ppa:stebbins/handbrake-releases`


You may have to update the local package cache after adding the PPA (not required in Ubuntu 18.04 and higher versions):

`sudo apt update`


Now install the latest version of the HandBrake using this command:

`sudo apt install handbrake-gtk`


![Install Handbrake Ubuntu](https://itsfoss.com/content/images/wordpress/2020/07/install-handbrake-ubuntu-800x498.png)

## Remove HandBrake

For some reason, if you don’t like HandBrake and want to remove it, here’s what you need to do.

Open a terminal and use the following command to uninstall HandBrake:

`sudo apt remove handbrake-gtk`


If that does not work, you can try:

`sudo apt remove handbrake`


Now that you have removed the application, it will be a good idea to [remove the PPA](https://itsfoss.com/how-to-remove-or-delete-ppas-quick-tip/) (if you added it), as you don’t need it anymore.

`sudo add-apt-repository -r ppa:stebbins/handbrake-releases`


Confirm when asked for it.

## Bonus tip: Using the Flatpak package

You can also utilize the Flatpak package available on [Flathub](https://flathub.org/apps/details/fr.handbrake.ghb?ref=itsfoss.com). Follow our [Flatpak guide](https://itsfoss.com/flatpak-guide/) if you cannot install the Flatpak package on your system.

With the setup done, you can find it using the software center (or your package manager). In either case, you can use the following command to install it via the terminal:

`flatpak install flathub fr.handbrake.ghb`


## More on video converters

HandBrake is one of the several encoders available for Linux.

[Open Source Video Converters for Linux [GUI and CLI]Video downloads are fun until they become unplayable. So, here’s the list of top open-source video converters to help your downloads stay relevant everywhere. Video conversion is not the best thing you want to do with a video, but it becomes unavoidable sometimes. For instance, you can onl…](https://itsfoss.com/open-source-video-converters/)![](https://itsfoss.com/content/images/wordpress/2022/01/best-open-source-video-converters.png)


![](https://itsfoss.com/content/images/wordpress/2022/01/best-open-source-video-converters.png)

FFmpeg is the most popular and popular of them all. It's a command-line tool and many [GUI converters](https://itsfoss.com/format-factory-alternative-linux/), including HandBrake, use it underneath.

[Install and Use ffmpeg in Linux [Complete Guide]This detailed guide shows how to install ffmpeg in Ubuntu and other Linux distributions. It also demonstrates some useful ffmpeg commands for practical usage.](https://itsfoss.com/ffmpeg/)![](https://itsfoss.com/content/images/wordpress/2019/03/ffmpeg-tutorial.png)


![](https://itsfoss.com/content/images/wordpress/2019/03/ffmpeg-tutorial.png)

In this quick tutorial, you learned how to install the latest HandBrake on Ubuntu using the official PPA. You also learned the steps for removing it properly.

I hope you find this quick tip useful. If you have questions or suggestions, please leave a comment below.