我发现我的电脑上的终端无法正常工作。我尝试安装一个程序,但它不起作用。我尝试通过 Ubuntu 软件中心安装一些程序,但结果也不起作用。
我使用命令
sudo apt install (name of the program)
在这种情况下,Code::Blocks
之后终端给我一个错误信息:
codeblocks : depends: libcodeblocks0 it isn't going to be installed
depends: codeblocks-common (= 13.12+dfsg-4) it isn't going to be installed
kde-telephaty-minimal: Depends: kde-confing-telephaty-accounts (=> 15.04.0) but it isn't going to be installed
我在网上搜索了解决方案,但没有帮助,我猜这与 Kde-telephaty 有关,但我真的不明白那是什么……
我希望这个东西消失,因为它阻止我安装新程序。我该如何解决这个问题,是什么原因造成的?
结果sudo apt-get -f install
:
sudo apt-get -f 安装 正在读取文件列表...完成 我做了一棵相互依存的树 正在读取状态信息...完成 纠正相互依赖...完成 以下软件包是单独安装的,不再需要: cabextract clamtk exo-utils fonts-horai-umefont fonts-unfonts-core gcc-5-base:i386 gir1.2-nautilus-3.0 gnome-exe-缩略图程序 gnome-图标主题 hddtemp kde-l10n-engb kde-l10n-ru kde-l10n-sr libasn1-8-heimdal:i386 libasound2:i386 libasound2-插件:i386 libasyncns0:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 libbsd0:i386 libcapi20-3 libcapi20-3:i386 libcommon-sense-perl libcups2:i386 libdbus-1-3:i386 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386 libedit2:i386 libelf1:i386 libexif12:i386 libexo-1-0 libexo-common libexo-helpers libexpat1:i386 libffi6:i386 libflac8:i386 libfontconfig1:i386 libfreetype6:i386 libgarcon-1-0 libgarcon-common libgd3:i386 libgif7:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libglapi-mesAa:i386 libglu1-mesa:i386 libgmp10:i386 libgnutls30:i386 libgphoto2-6:i386 libgphoto2-port12:i386 libgssapi-krb5-2:i386 libgssapi3-heimdal:i386 libhcrypto4-heimdal:i386 libheimbase1-heimdal:i386 libheimntlm0-heimdal:i386 libhogweed4:i386 libhx509-5-heimdal:i386 libice6:i386 libicu55:i386 libidn11:i386 libieee1284-3:i386 libjack-jackd2-1:i386 libjavascriptcoregtk-3.0-0 libjbig0:i386 libjpeg-turbo8:i386 libjpeg8:i386 libjson-c2:i386 libjson-perl libjson-xs-perl libk5crypto3:i386 libkeyutils1:i386 libkrb5-26-heimdal:i386 libkrb5-3:i386 libkrb5support0:i386 liblcms2-2:i386 libllvm4.0 libllvm5.0 libllvm5.0:i386 libllvm6.0:i386 libltdl7:i386 libmpg123-0:i386 libmsi0 libnettle6:i386 libogg0:i386 libopenal1:i386 libosmesa6 libosmesa6:i386 libp11-kit-gnome-keyring:i386 libp11-kit0:i386 libpciaccess0:i386 libpng12-0:i386 libpulse0:i386 libroken18-heimdal:i386 libsamplerate0:i386 libsane:i386 libsensors4:i386 libsm6:i386 libsndfile1:i386 libspeexdsp1:i386 libsqlite3-0:i386 libssl1.0.0:i386 libstdc++6:i386 libtasn1-6:i386 libtext-csv-perl libtext-csv-xs-perl libtiff5:i386 libtxc-dxtn-s2tc0:i386 libtypes-serialiser-perl libunibreak1 libusb-1.0-0:i386 libv4l-0:i386 libv4lconvert0:i386 libvorbis0a:i386 libvorbisenc2:i386 libvpx3:i386 libwebkitgtk-3.0-0 libwebkitgtk-3.0-common libwind0-heimdal:i386 libwnck-common libwnck22 libwrap0:i386 libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386 libxcb1:i386 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfce4ui-1-0 libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7 libxfconf-0-2 libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxml2:i386 libxpm4:i386 libxrandr2:i386 libxrender1:i386 libxshmfence1:i386 libxslt1.1:i386 libxt6:i386 libxxf86vm1:i386 libzlcore-数据 libzlcore0.13 libzltext-数据 libzltext0.13 libzlui-qt4 Linux 标头-4.15.0-36 Linux 标头-4.15.0-36-通用 Linux 映像-4.15.0-36-通用 Linux 模块-4.15.0-36-通用 linux-modules-extra-4.15.0-36-通用 msitools ocl-icd-libopencl1:i386 p7zip psensor-common python-nautilus ttf-wqy-microhei wine-gecko2.21 wine-gecko2.21:i386 wine-mono0.0.8 xfce4-panel xfconf 使用“sudo apt autoremove”来删除它们。 将会安装以下附加软件包: kde-config-telepathy 账户 将安装以下新软件包: kde-config-telepathy 账户 已升级 — 0、新安装 — 1、删除 — 0、未升级 — 0。 安装不完整或已删除—2. 我需要下载 0 B/137 kB 档案。 此操作完成后,磁盘上将使用825 kB的额外空间。 您想继续吗?[Y/n] y (正在读取数据库...当前有 376714 个文件或目录可用。) 准备解压“.../kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb”... 正在解压“kde-config-telepathy-accounts”(4:15.12.3-0ubuntu1)... dpkg: 错误处理档案“/var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb”(--unpack): 尝试覆盖“/usr/share/accounts/services/google-im.service”,该文件也包含在 account-plugin-google 0.12+16.04.20160126-0ubuntu1 软件包中 我正在处理“libc-bin”(2.23-0ubuntu10)的触发器... 处理过程中发现错误: /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb E: 子进程 /usr/bin/dpkg 返回错误代码 (1)
答案1
您可以删除所有引起问题的文件。
脚步
dpkg --list | grep codeblock
这将列出所有与 codeblock 相关的包
sudo dpkg --purge codeblocks-dev
删除未满足依赖关系的软件包
sudo apt-get update && sudo apt-get upgrade
始终保持最新...如果不升级,可能会产生问题。
sudo apt-get -f install
这将恢复未完成的安装。
sudo apt-get clean
终于。