程式不會卸載

程式不會卸載

我在我的 ubuntu 20.04 機器上安裝了 john the ripper。最初,我只是使用apt-get.

但現在我需要將其從我的機器上刪除。目前,當我輸入時,john我得到這個:

ask@Garsy:~/Notes/TA/AppliedInfoSec/PassCracking$ john
John the Ripper 1.9.0-jumbo-1 OMP [linux-gnu 64-bit x86_64 AVX2 AC]
Copyright (c) 1996-2019 by Solar Designer and others
Homepage: http://www.openwall.com/john/

這是位置:

ask@Garsy:~/Notes/TA/AppliedInfoSec/PassCracking$ whereis john
john: /snap/bin/john

首先我嘗試:

ask@Garsy:~/Notes/TA/AppliedInfoSec/PassCracking$ sudo apt-get remove john
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'john' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.

' 但這沒有任何效果,約翰仍然在我的系統上。然後ask@Garsy:~/Notes/TA/AppliedInfoSec/PassCracking$ sudo apt-get remove --auto-remove john它具有相同的效果。

我也嘗試了sudo apt-get purge john沒有效果。

我真的不知道該怎麼做,除了我已經嘗試過的東西之外,我似乎找不到任何有關卸載約翰的資訊。

答案1

可執行檔的路徑是/snap/bin/john,因此 John the Ripper 已安裝為折斷,不通過apt-get.

要刪除套件(或更準確地說,快照),您必須運行

sudo snap remove john

相關內容