无法解压 libgdal

无法解压 libgdal

我正在尝试安装 opengeo-suite,但由于某种原因,由于无法解压 libgdal,因此我无法安装。

这是我每次执行时都会遇到的错误apt-get install opengeo-suite

Unpacking libgdal (from .../libgdal_1.8.1-1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libgdal_1.8.1-1_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/gdal-config', which is also in package libgdal-dev 1.9.0-1~exp5p1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

......

Unpacking opengeo-suite (from .../opengeo-suite_2.5_amd64.deb) ...
    Processing triggers for man-db ...
    Errors were encountered while processing:
     /var/cache/apt/archives/libgdal_1.8.1-1_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

我该如何解决这个错误?

答案1

dpkg -i --force-overwrite /var/cache/apt/archives/libgdal_1.8.1-1_amd64.deb
apt-get -f install

相关内容