在Ubuntu 16.04上安装软件包时出错

时间:2017-09-01 04:16:03

标签: java maven ubuntu dpkg

我正在尝试在我的实例Ubuntu 16.04上设置Apache Confluent Platform和maven 执行完2个步骤后,我收到以下错误

sudo apt-get update && sudo apt-get install confluent-platform-2.11


Hit:1 ://packages.confluent.io/deb/2.0 stable InRelease Hit:2 ://us-central1.gce.archive.ubuntu.com/ubuntu xenial InRelease      Get:3 ://us-central1.gce.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]                           Hit:4 ://packages.confluent.io/deb/3.3 stable InRelease                  Get:5 ://us-central1.gce.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]                         Hit:6 ://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease      Hit:7 ://security.ubuntu.com/ubuntu xenial-security InRelease      Hit:8 ://archive.canonical.com/ubuntu xenial InRelease Fetched 204 kB in 0s (470 kB/s)                Reading package lists... Done W: ://packages.confluent.io/deb/2.0/dists/stable/InRelease: Signature by key 1A77041E0314E6C5A486524E670540C841 468433 uses weak digest algorithm (SHA1) Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  confluent-platform-2.11 : Depends: confluent-kafka-2.11 (>= 0.11.0.0-1) but it is not going to be installed
                           Depends: confluent-kafka-connect-replicator (>= 3.3.0-1) but it is not going to be insta lled
                           Depends: confluent-support-metrics (>= 3.3.0-1) but it is not going to be installed
                           Depends: confluent-control-center (>= 3.3.0-1) but it is not going to be installed  confluent-platform-oss-2.11 : Depends: confluent-kafka-2.11 (>=
0.11.0.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).

sudo apt-get -f install

Reading package lists...
Done Building dependency tree        
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
   confluent-kafka-2.11
The following NEW packages will be installed:
   confluent-kafka-2.11
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
10 not fully installed or removed.
Need to get 0 B/44.1 MB of archives.
After this operation, 49.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 99862 files and directories currently installed.)
Preparing to unpack .../confluent-kafka-2.11_0.11.0.0-1_all.deb ...
Unpacking confluent-kafka-2.11 (0.11.0.0-1) ...
dpkg: error processing archive /var/cache/apt/archives/confluent-kafka-2.11_0.11.0.0-1_all.deb (--unpack):  
**trying to overwrite** '/usr/share/java/kafka/osgi-resource-locator-1.0.1.jar', which is also in package confluent-ka fka-2.11.7 0.9.0.1-1 
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) 
Errors were encountered while processing:  
/var/cache/apt/archives/confluent-kafka-2.11_0.11.0.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

错误提到了覆盖文件。我提到了多个帮助链接,所以删除了osgi-resource-locator-1.0.1.jar,但它仍然显示相同的错误。

现在正在安装任何Ubuntu软件包

如果有人知道这个问题,请告诉我

0 个答案:

没有答案