我在 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