简介
下载地址:Download - KeePassXC
使用 apt 安装
【失败】add-apt-repository 添加仓库源
# 将 PPA 添加到系统
$ sudo add-apt-repository ppa:phoerious/keepassxc
# 报错:add-apt-repository:找不到命令
$ sudo apt install software-properties-common
# 再次尝试添加 PPA
$ sudo add-apt-repository ppa:phoerious/keepassxc
Traceback (most recent call last):
…………
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/apricot
# 尝试将发行版信息伪装成 Debian
$ sudo cp /etc/lsb-release /etc/lsb-release.bak
$ cat /etc/debian_version
10.10
$ sudo vim /etc/lsb-release
DISTRIB_ID=Debian
DISTRIB_RELEASE=10.10
DISTRIB_DESCRIPTION="Debian 10.10"
DISTRIB_CODENAME=apricot
# 再次尝试依旧报同样的错,还原 lsb-release 吧
$ sudo mv /etc/lsb-release.bak /etc/lsb-release
手动添加仓库源
# 查看发行版版本,可以看到 DISTRIB_CODENAME 的值为 apricot
$ cat /etc/lsb-release
DISTRIB_ID=Deepin
DISTRIB_RELEASE=20.8
DISTRIB_DESCRIPTION="Deepin 20.8"
DISTRIB_CODENAME=apricot
$ sudo vim /etc/apt/sources.list.d/keepassxc.list
添加的内容在此查看:KeePassXC : Janek Bevendorff
deb https://ppa.launchpadcontent.net/phoerious/keepassxc/ubuntu apricot main
# deb-src https://ppa.launchpadcontent.net/phoerious/keepassxc/ubuntu apricot main
安装
# 刷新仓库源索引
$ sudo apt update
# 安装
$ sudo apt install keepassxc
评论区