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