![如何从列表中彻底卸载 Jenkins war 包](https://linux22.com/image/1022830/%E5%A6%82%E4%BD%95%E4%BB%8E%E5%88%97%E8%A1%A8%E4%B8%AD%E5%BD%BB%E5%BA%95%E5%8D%B8%E8%BD%BD%20Jenkins%20war%20%E5%8C%85.png)
很久以前,我安装了 Jenkins,后来又卸载了,现在我试图重新安装它,但无法登录localhost:8080
,而且即使我已经卸载了 Jenkins,我仍然可以jenkins.war
在列表中看到软件包。我需要删除它。
我已经尝试过这一切:
sudo apt-get remove jenkins.war
或者
sudo apt-get purge jenkins.war
或者
sudo apt-get remove jenkins
仍然不起作用,显示如下错误:
E: Unable to locate package jenkins.war'
E: Couldn't find any package by glob 'jenkins.war'
E: Couldn't find any package by regex 'jenkins.war'
使用此命令:
sudo apt-get remove --auto-remove jenkins
变得像:
package 'jenkins' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.