0

在我们的服务器上,我们安装了 Virtuoso 6.1,但不知何故 Ubuntu 也尝试安装 Virtuoso 7(或者可能有人尝试安装它)。无论如何,现在 apt-get 根本不可用,建议修复apt-get -f install失败(见底部)。

输出uname -aLinux servername 3.2.0-45-generic #70-Ubuntu SMP Wed May 29 20:12:06 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

输出:

# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  liblcms1 libcupsimage2 libvirtodbc0 libmagickcore4 linux-headers-3.2.0-51 libjbig2dec0 liblcms2-2 libmagickwand4 libgs9-common virtuoso-opensource-6.1-bin liblqr-1-0
  virtuoso-opensource-6.1-common imagemagick-common libijs-0.35 cmap-adobe-japan1 linux-image-3.2.0-51-generic gs-cjk-resource libgs9 ghostscript linux-headers-3.2.0-51-generic
  libpaper-utils gsfonts libpaper1 virtuoso-opensource-7.0-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  virtuoso-opensource-7.0-common
The following NEW packages will be installed:
  virtuoso-opensource-7.0-common
0 upgraded, 1 newly installed, 0 to remove and 111 not upgraded.
2 not fully installed or removed.
Need to get 0 B/44.0 kB of archives.
After this operation, 115 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 201548 files and directories currently installed.)
Unpacking virtuoso-opensource-7.0-common (from .../virtuoso-opensource-7.0-common_7.0.1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/virtuoso-opensource-7.0-common_7.0.1_amd64.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/INIFILE.1.gz', which is also in package virtuoso-opensource-6.1-common 6.1.4+dfsg1-0ubuntu1
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/virtuoso-opensource-7.0-common_7.0.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

卸载 Virtuoso 7 也不起作用。

# apt-get remove virtuoso-opensource-7.0-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package virtuoso-opensource-7.0-common is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libvirtodbc0 : Depends: virtuoso-opensource-7.0-common (= 7.0.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
4

2 回答 2

2

这不是此类问题的正确位置,但无论如何:

The following packages have unmet dependencies:
 libvirtodbc0 : Depends: virtuoso-opensource-7.0-common (= 7.0.1) but it is not going to be installed

只需做sudo apt-get remove libvirtodbc0, apt-get 应该再次工作。

于 2013-11-07T12:01:04.867 回答
1

您从哪里获得 Virtuoso 7 debian 软件包,因为我认为 Debian/Ubuntu 还没有官方的 Virtuoso 7 软件包集,或者您是自己构建的还是从其他来源获得的?

于 2013-11-11T13:35:15.943 回答