![我在 ubuntu 14.04 中安装 keepass2 时遇到问题,错误“无法解析软件包依赖项”](https://linux22.com/image/894056/%E6%88%91%E5%9C%A8%20ubuntu%2014.04%20%E4%B8%AD%E5%AE%89%E8%A3%85%20keepass2%20%E6%97%B6%E9%81%87%E5%88%B0%E9%97%AE%E9%A2%98%EF%BC%8C%E9%94%99%E8%AF%AF%E2%80%9C%E6%97%A0%E6%B3%95%E8%A7%A3%E6%9E%90%E8%BD%AF%E4%BB%B6%E5%8C%85%E4%BE%9D%E8%B5%96%E9%A1%B9%E2%80%9D.png)
我在 ubuntu 14.04 中安装 Keepass2 时遇到问题,出现此错误
Package dependencies cannot be resolved
This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.
细节
以下软件包具有未满足的依赖关系:
keepass2: Depends: mono-runtime (>= 3.0~) but it is not going to be installed
Depends: libmono-corlib4.5-cil (>= 3.2.8) but it is not going to be installed
Depends: libmono-system-drawing4.0-cil (>= 3.0.6) but it is not going to be installed
Depends: libmono-system-security4.0-cil (>= 1.0) but it is not going to be installed
Depends: libmono-system-windows-forms4.0-cil (>= 1.0) but it is not going to be installed
Depends: libmono-system-xml4.0-cil (>= 3.2.1) but it is not going to be installed
Depends: libmono-system4.0-cil (>= 3.2.8) but it is not going to be installed
Depends: libx11-6 (>= 2:1.6.0) but 2:1.6.2-1ubuntu2 is to be installed
请帮助我解决这个问题。
答案1
安装 Mono 后,所有依赖关系相关问题都得到解决。我使用以下命令安装 Mono。
echo "deb http://download.mono-project.com/repo/ubuntu trusty main" | sudo tee /etc/apt/sources.list.d/mono-official.list
echo "deb http://download.mono-project.com/repo/ubuntu trusty main" | sudo tee /etc/apt/sources.list.d/mono-official.list
sudo apt-get update
sudo apt-get install mono-devel