ソフトウェアとPPAを完全に削除します。

ソフトウェアとPPAを完全に削除します。

さまざまなソースから多くのソフトウェアがインストールされており、PPAの代わりにFlatpaksを使用したいと思います。しかし、PPAなどを介して現在のソフトウェアを完全に削除する方法は?これは私の出力ですsudo apt update。 (私はUbuntu 16.04ベースの基本OSを使用しています。

Hit:1 http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu xenial InRelease
Hit:2 http://archive.canonical.com/ubuntu xenial InRelease                                                                                               
Hit:3 http://ppa.launchpad.net/atareao/atareao/ubuntu xenial InRelease                                                                                   
Hit:4 http://de.archive.ubuntu.com/ubuntu xenial InRelease                                                                                               
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                             
Hit:6 http://download.virtualbox.org/virtualbox/debian xenial InRelease                                                                                  
Hit:7 http://ppa.launchpad.net/bablu-boy/nutty-daily/ubuntu xenial InRelease                                                                             
Hit:8 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease                                                                                
Hit:9 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease                                                                              
Hit:10 http://ppa.launchpad.net/djcj/vapoursynth/ubuntu xenial InRelease                                             
Hit:11 http://dl.google.com/linux/chrome/deb stable Release                                    
Hit:12 http://ppa.launchpad.net/elementary-os/stable/ubuntu xenial InRelease                                       
Hit:13 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease                                       
Get:14 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]                                        
Hit:15 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial InRelease                                                  
Hit:16 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease                                                             
Hit:17 http://ppa.launchpad.net/elementary-os/os-patches/ubuntu xenial InRelease                                               
Hit:18 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease                                                       
Hit:19 https://deb.nodesource.com/node_7.x xenial InRelease                                              
Hit:21 http://download.mono-project.com/repo/debian wheezy InRelease                                                    
Hit:22 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease

後でFlatpaks経由でインストールできるように、Blender、MonoDevelop、LibreOfficeを完全に削除したいとしましょう。どのように削除しますか?

ベストアンサー1

sudo apt-get autoremove --purge "packagename"

次に/etc/apt/sources.list.dディレクトリを参照し、リポジトリを参照するすべてのファイルを削除します。

またはを介してリポジトリを削除またはコメントアウトすることもできます/etc/apt/sources.listsources.list~sudo visudo nano

最後に、リポジトリのGPGキーを削除してください。

sudo apt-key list

sudo apt-key del #A#A#A

おすすめ記事