Hey guys, sorry for my english. My apt-get is corrupted, when I a try install a program using apt-get I have this message: Code (Text): apt-get install qucs 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: clang-3.8 : Depends: libllvm3.8v4 but it is not going to be installed libclang-common-3.8-dev : Depends: libllvm3.8v4 (= 1:3.8-2ubuntu3~trusty4) but it is not going to be installed libclang1-3.8 : Depends: libllvm3.8v4 but it is not going to be installed liblldb-3.8 : Depends: libllvm3.8v4 (= 1:3.8-2ubuntu3~trusty4) but it is not going to be installed lldb-3.8 : Depends: libllvm3.8v4 (= 1:3.8-2ubuntu3~trusty4) but it is not going to be installed llvm-3.8 : Depends: libllvm3.8v4 but it is not going to be installed llvm-3.8-dev : Depends: libllvm3.8v4 (= 1:3.8-2ubuntu3~trusty4) but it is not going to be installed llvm-3.8-runtime : Depends: libllvm3.8v4 but it is not going to be installed qucs : Depends: libqt4-qt3support (>= 4:4.5.3) but it is not going to be installed Recommends: freehdl but it is not going to be installed Recommends: verilog but it is not going to be installed Recommends: octave but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). If I try apt-get -f install: Code (Text): apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: libllvm3.8v4 The following NEW packages will be installed: libllvm3.8v4 0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded. 9 not fully installed or removed. Need to get 0 B/9.721 kB of archives. After this operation, 40,4 MB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 433968 files and directories currently installed.) Preparing to unpack .../libllvm3.8v4_1%3a3.8-2ubuntu3~trusty4_amd64.deb ... Unpacking libllvm3.8v4:amd64 (1:3.8-2ubuntu3~trusty4) ... dpkg: error processing archive /var/cache/apt/archives/libllvm3.8v4_1%3a3.8-2ubuntu3~trusty4_amd64.deb (--unpack): trying to overwrite '/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1', which is also in package libllvm3.8:amd64 1:3.8~svn271772-1~exp1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/libllvm3.8v4_1%3a3.8-2ubuntu3~trusty4_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) And this is what happens if i try update: Code (Text): W: GPG error: http://download.opensuse.org Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1BE1E8D7A2B5E9D5 Or autoremove: Code (Text): apt-get autoremove 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: clang-3.8 : Depends: libllvm3.8v4 but it is not installed libclang-common-3.8-dev : Depends: libllvm3.8v4 (= 1:3.8-2ubuntu3~trusty4) but it is not installed libclang1-3.8 : Depends: libllvm3.8v4 but it is not installed liblldb-3.8 : Depends: libllvm3.8v4 (= 1:3.8-2ubuntu3~trusty4) but it is not installed lldb-3.8 : Depends: libllvm3.8v4 (= 1:3.8-2ubuntu3~trusty4) but it is not installed llvm-3.8 : Depends: libllvm3.8v4 but it is not installed llvm-3.8-dev : Depends: libllvm3.8v4 (= 1:3.8-2ubuntu3~trusty4) but it is not installed llvm-3.8-runtime : Depends: libllvm3.8v4 but it is not installed E: Unmet dependencies. Try using -f. Using -f: Code (Text): apt-get -f autoremove Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: libllvm3.8v4 The following NEW packages will be installed: libllvm3.8v4 0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded. 9 not fully installed or removed. Need to get 0 B/9.721 kB of archives. After this operation, 40,4 MB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 433968 files and directories currently installed.) Preparing to unpack .../libllvm3.8v4_1%3a3.8-2ubuntu3~trusty4_amd64.deb ... Unpacking libllvm3.8v4:amd64 (1:3.8-2ubuntu3~trusty4) ... dpkg: error processing archive /var/cache/apt/archives/libllvm3.8v4_1%3a3.8-2ubuntu3~trusty4_amd64.deb (--unpack): trying to overwrite '/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1', which is also in package libllvm3.8:amd64 1:3.8~svn271772-1~exp1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) E: Sub-process /usr/bin/dpkg returned an error code (1) Anyone have an idea how to fix it?
The important line is trying to overwrite '/usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1', which is also in package libllvm3.8:amd64 1:3.8~svn271772-1~exp1 In order to install libllvm3.8v4 you either need to remove ibllvm3.8:amd64 1:3.8~svn271772-1~exp1 or you need to change the subversion package to provide libllvm3.8v4, then it will resolve the dependency of the others.
Assume you've fixed this, but for others with the same issue, try: sudo dpkg -i --force-overwrite /var/cache/apt/archives/libllvm3.8v4_1%3a3.8-2ubuntu3~trusty4_amd64.deb sudo apt install -f Use apt instead of apt-get; apt came out in 14.04 and is part of 16.04 (Freya and Loki, respectively). Among other reasons, apt auto-cleans cache (no need to apt-get autoremove). You can also do neat things like 'apt upgradeable' and so on. More details here @HowToGeek