无法在 Ubuntu 14.04 中安装软件包 libnetcdf6

无法在 Ubuntu 14.04 中安装软件包 libnetcdf6

我想在 ubuntu 14.04 中安装 libenetcdf6 软件包,安装时出现以下错误,请告诉我如何解决这个问题

dpkg: dependency problems prevent configuration of libnetcdf6:
 libnetcdf6 depends on libhdf5-serial-1.8.4 | libhdf5-1.8.4; however:
  Package libhdf5-serial-1.8.4 is not installed.
  Package libhdf5-1.8.4 is not installed.
 libnetcdfc7 (1:4.1.3-7ubuntu2) breaks libnetcdf6 (<< 1:4.1.1-7~) and is installed.
  Version of libnetcdf6 to be configured is 1:4.1.1-6.
 libnetcdfc++4 (1:4.1.3-7ubuntu2) breaks libnetcdf6 (<< 1:4.1.1-7~) and is installed.
  Version of libnetcdf6 to be configured is 1:4.1.1-6.

dpkg: error processing package libnetcdf6 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libnetcdf6

答案1

在你的终端(++ Ctrl)上,在 dpkg 命令后运行以下命令来安装依赖项:AltT

sudo apt-get -f install

答案2

是否有需要更新的软件包?如果是,请先执行以下操作,然后重试。

sudo apt-get update        # Fetches the list of available updates
sudo apt-get upgrade       # Strictly upgrades the current packages
sudo apt-get dist-upgrade  # Installs updates (new ones)

相关内容