为什么使用 apt-get 时会出现错误?

为什么使用 apt-get 时会出现错误?

每当我尝试使用apt-get install package它安装任何包时,都会显示类似下面的错误消息。

dpkg: dependency problems prevent configuration of unixodbc:i386:
 unixodbc:i386 depends on odbcinst1debian1 (>= 2.2.11-3); however:
  Package odbcinst1debian1:i386 is not installed.
 libodbc1:i386 (2.2.14p2-5ubuntu3) breaks unixodbc (<< 2.2.14p2-3) and is installed.
  Version of unixodbc:i386 to be configured is 2.2.11-21.
dpkg: error processing unixodbc:i386 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 odbcinst:i386
 odbcinst1debian2:i386
 unixodbc:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

尝试使用sudo apt-get install -f解决未满足的依赖关系

相关内容