![安装了 2 个 KeepassXC 版本](https://linux22.com/image/918404/%E5%AE%89%E8%A3%85%E4%BA%86%202%20%E4%B8%AA%20KeepassXC%20%E7%89%88%E6%9C%AC.png)
一年前,我安装了 KeepassXC 来管理我的密码。但我不记得我安装过。今天我上官网查看是否有新版本,发现有升级版本。当我尝试升级时
sudo apt-get install --only-upgrade keepassxc
我有
E: Unable to locate package keepassxc
所以我通过存储库安装了它,但我现在有 2 个 keepassxc 安装。
我的问题是如何删除旧版本而不删除最新版本。
以下是对以下评论中请求的答复:
$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.42.1 8039 stable canonical✓ core
core18 0.1 19 stable canonical✓ base
gtk-common-themes 0.1-16-g2287c87 1198 stable canonical✓ -
htmldoc 1.9.7 283 stable michaelrsweet -
keepassxc 2.3.4 49 stable keepassxreboot -
nmap 7.12SVN-0.6 29 stable maxiberta -
notepad-plus-plus 7.6.4 193 stable mmtrt -
shotcut 19.10.20 55 stable meltytech✓ classic
simplescreenrecorder 0.1 1 stable xiaoguo -
skype 8.30.0.50 54 stable skype✓ classic
slack 4.1.2 19 stable slack✓ classic
stellarium-plars 0.18.1 29 stable pwlars -
wine-platform 3.0.4-4.0 88 stable mmtrt -
dpkg -l keepass*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii keepassxc 2.5.1-0ppa1~ amd64 KeePass Cross-Platform Community
un keepassxc-beta <none> <none> (no description available)
问候
答案1
您已安装了两次 keepassxc。
snap 安装为 2.3.4 版本
deb 安装为版本 2.5.1
您需要删除较旧的 snap 版本。
sudo snap remove keepassxc