ubuntu 删除ppa_在Ubuntu中安全删除PPA并回滚到稳定版本

ubuntu 删除ppa

ubuntu 删除ppa

If you’ve added a PPA and run into a nasty bug in your updated software, you should revert back to the Ubuntu repositories. Doing it safely can be tricky – fortunately Ubuntu Tweak can do this for us.

如果添加了PPA并在更新的软件中遇到讨厌的错误,则应恢复到Ubuntu存储库。 安全地进行操作可能会很棘手-幸运的是Ubuntu Tweak可以为我们做到这一点。

sshot-4

删除不需要的软件包 (Remove Unwanted Packages)

There are a few issues involved in removing a PPA. The simplest is to remove any packages that were provided solely by that PPA.

删除PPA涉及一些问题。 最简单的方法是删除该PPA唯一提供的所有程序包。

For example, if we tried out the beta version of Firefox 4.0, we should remove all of the firefox-4.0 packages before removing the Firefox nightly builds PPA. To do this, we’ll open up a terminal (Applications > Accessories > Terminal or Ctrl+Alt+T) and type in the following command.

例如,如果我们试用了Firefox 4.0的测试版,则应在删除Firefox每晚生成的PPA之前删除所有的firefox-4.0软件包。 为此,我们将打开一个终端(应用程序>附件>终端或Ctrl + Alt + T),然后输入以下命令。

sudo apt-get remove firefox-4.0*

sudo apt-get remove firefox-4.0*

The exact command will depend on the packages you need to remove. If you don’t remember all of the packages provided by a certain PPA, the best thing to do is to visit the PPA’s Launchpad page and look at the packages it provides.

确切的命令将取决于您需要删除的软件包。 如果您不记得某个PPA提供的所有软件包,最好的办法是访问PPA的Launchpad页面,并查看它提供的软件包。

降级更新的软件包 (Downgrade Updated Packages)

Ubuntu Tweak offers an easy way to downgrade any packages that the PPA upgraded – and even if you don’t need to downgrade, we recommend following the steps in this section because it will also disable the PPA.

Ubuntu Tweak提供了一种简便的方法来降级PPA升级的所有软件包–即使您不需要降级,我们也建议您按照本节中的步骤进行操作,因为它还会禁用PPA。

The first step is to install Ubuntu Tweak if you don’t already have it installed. Ubuntu Tweak isn’t in the Ubuntu repositories, but fortunately it has its own PPA: ppa:tualatrix/ppa. You call follow our more detailed guide to adding new PPAs, or simply open a terminal and type in the following commands.

第一步是安装Ubuntu Tweak(如果尚未安装)。 Ubuntu Tweak不在Ubuntu存储库中,但是幸运的是它具有自己的PPA:ppa:tualatrix / ppa。 您可以致电按照我们更详细的指南添加新的PPA ,或者直接打开终端并输入以下命令。

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
须藤apt-get install ubuntu-tweak

Once installed, you can find Ubuntu Tweak in the Applications > System Tools menu.

安装后,您可以在“应用程序”>“系统工具”菜单中找到Ubuntu Tweak。

sshot-2

Open Ubuntu Tweak, and select Package Cleaner in the list on the left.

打开Ubuntu Tweak,然后在左侧列表中选择Package Cleaner。

Click on the Purge PPAs button near the right. If the list of PPAs is greyed out, click on the Unlock button and enter your administrator password.

单击右侧附近的“清除PPA”按钮。 如果PPA列表为灰色,请单击“解锁”按钮,然后输入管理员密码。

sshot-3

Select the PPAs you want to remove by clicking on the checkbox next to them. Click the Cleanup button when you’re done.

通过单击要删除的PPA旁边的复选框来选择它们。 完成后,单击“清理”按钮。

You’ll be prompted to downgrade packages that have earlier versions in the Ubuntu repositories. In our case, we are removing the PPA that contains nightly builds of Mozilla Firefox.

系统将提示您降级Ubuntu存储库中具有较早版本的软件包。 在我们的案例中,我们将删除包含Mozilla Firefox每晚版本的PPA。

sshot-4

Click Yes and Ubuntu Tweak will do the downgrade for you.

单击是,Ubuntu Tweak将为您进行降级。

sshot-5

If you want to return your system to the same state that it was before installing the PPA, you can use Ubuntu Tweak to remove its own PPA, and then apt-get remove ubuntu-tweak. However, we recommend keeping Ubuntu Tweak around for all the other neat things it does!

如果要将系统恢复为安装PPA之前的状态,则可以使用Ubuntu Tweak删除其自己的PPA,然后使用apt-get remove ubuntu-tweak 。 但是,我们建议将Ubuntu Tweak保留在它所做的所有其他整洁工作中!

翻译自: https://www.howtogeek.com/howto/29584/safely-remove-ppas-and-roll-back-to-stable-versions-in-ubuntu/

ubuntu 删除ppa

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值