ubuntu - 我无法在 Ubuntu 14.04 上使用 apt-get 安装任何东西

标签 ubuntu

第一个问题是我什至不能在 askUbuntu 上发布我的问题!

其次,我的问题是,一段时间以来我无法通过 apt-get 安装任何东西。 ,我怀疑几天前我尝试安装Deeping桌面时发生了这种情况,我在某​​处修改了存储库,但我忘记了在哪里,并且compiz导致了问题。我尝试了我在这里找到的所有东西,但没有任何效果。我找到了这个:

sudo -i
apt-get clean
cd /var/lib/apt
mv lists lists.old
mkdir -p lists/partial
apt-get clean
apt-get update

但是,它没有用。

例如,当我尝试安装 JAI 时,这就是我得到的:
sudo apt-get install libjai-core-java

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:
 compiz : Depends: compiz-core (>= 1:0.9.11.2+14.04.20140714-0ubuntu1) but it is not going to be installed
          Depends: compiz-plugins-default (>= 1:0.9.11.2+14.04.20140714-0ubuntu1) but it is not going to be installed
          Depends: compiz-gnome but it is not going to be installed
 libcompizconfig0 : Depends: compiz-core (= 1:0.9.11.2+14.04.20140714-0ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

之后,当我使用 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:
  accountsservice-ubuntu-schemas accountsservice-ubuntu-touch-schemas
  android-tools-adb automoc checkbox-ng checkbox-ng-service click-dev
  click-doc debootstrap eclipse-platform-data eclipse-rcp
  gsettings-ubuntu-touch-schemas kdelibs5-dbg kdepim-mobileui-data ktouch-data
  libandroid-properties1 libastro1 libcommons-cli-java libcommons-dbcp-java
  libcommons-lang-java libcommons-pool-java libcomposereditorng4
  libcontent-hub0 libdbus-cpp2 libequinox-osgi-java
  libfelix-bundlerepository-java libfelix-gogo-command-java
  libfelix-gogo-runtime-java libfelix-gogo-shell-java libfelix-osgi-obr-java
  libgeronimo-jta-1.1-spec-java libgflags2 libgles2-mesa-dev libglib2.0-dev
  libgoogle-glog0 libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libhud2
  libhybris-common1 libicu4j-4.4-java libkimproxy4 libkutils4
  libkwinactiveeffects1abi4 libkwinactiveglesutils1 libkwinactiveglutils1abi3
  libkxml2-java liblsofui4 libmaliit-plugins0 libmarblewidget18
  libmediascanner-2.0-0 libmirplatform libmirplatformgraphics-mesa
  libmirserver18 libofono-qt1 libonline-accounts-client1 liboxideqtcore0
  libpcre3-dev libpcrecpp0 libphonon-dev libpresage-data libpresage1
  libqdjango-db0 libqextserialport1 libqmenumodel0 libqt4-dbg libqt5feedback5
  libqt5multimedia5-plugins libqt5positioning5 libqt5positioning5-plugins
  libqt5qml-graphicaleffects libqt5sensors5-dev libqt5systeminfo5
  libqtlocation1 libquazip0 libshp1 libsoprano-dev libswt-cairo-gtk-3-jni
  libswt-glx-gtk-3-jni libswt-gnome-gtk-3-jni libswt-gtk-3-java
  libswt-gtk-3-jni libswt-webkit-gtk-3-jni libsystemsettings1 libthumbnailer0
  libtomcat7-java libubuntu-application-api-mirserver1
  libubuntu-download-manager-client0 libubuntu-download-manager-common0
  libubuntu-download-manager-priv0 libubuntu-location-service0
  libubuntu-platform-hardware-api1 libubuntuoneauth-2.0-0 libunity-action-qt1
  libunity-mir1 libunwind8 libusermetricsinput1 libusermetricsoutput1
  libwlocate0 libxslt1-dev marble-data marble-plugins mediascanner2.0
  packagekit-tools plainbox-provider-checkbox
  plainbox-provider-resource-generic plainbox-secure-policy presage
  python3-checkbox-ng python3-checkbox-support python3-gnupg python3-plainbox
  python3-pyparsing python3-requests python3-urllib3 qmenumodel-qml qmlscene
  qtcreator-plugin-ubuntu-common qtdeclarative4-kqtquickcharts-1
  qtdeclarative5-dee-plugin qtdeclarative5-doc-html
  qtdeclarative5-qtfeedback-plugin qtdeclarative5-qtmultimedia-plugin
  qtdeclarative5-systeminfo-plugin
  qtdeclarative5-ubuntu-settings-components-assets
  qtdeclarative5-ubuntu-thumbnailer0.1
  qtdeclarative5-ubuntu-ui-extras-browser-plugin-assets
  qtdeclarative5-unity-action-plugin qtdeclarative5-unity-notifications-plugin
  qtmultimedia5-doc-html qtpositioning5-dev qtscript5-doc-html qtsvg5-doc-html
  qtwebkit5-doc-html sat4j schroot schroot-common suru-icon-theme
  system-image-common system-image-dbus thumbnailer-service
  ubuntu-download-manager ubuntu-html5-theme ubuntu-html5-ui-toolkit
  ubuntu-mobile-icons ubuntu-purchase-service ubuntu-touch-sounds
  ubuntu-ui-toolkit-doc ubuntu-ui-toolkit-theme ubuntuone-credentials-common
  unity-action-doc unity-plugin-scopes unity-scope-mediascanner2
  unity-scope-scopes usermetricsservice
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  compiz
The following packages will be REMOVED:
  libcompizconfig0
The following packages will be upgraded:
  compiz
1 upgraded, 0 newly installed, 1 to remove and 189 not upgraded.
2 not fully installed or removed.
Need to get 2,348 kB of archives.
After this operation, 15.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://packages.linuxdeepin.com/deepin/ trusty/main compiz i386 1:0.9.99-4+git20140707164843~2e85d002e7 [2,348 kB]
Fetched 2,348 kB in 2min 5s (18.8 kB/s)                                        
(Reading database ... 472782 files and directories currently installed.)
Preparing to unpack .../compiz_1%3a0.9.99-4+git20140707164843~2e85d002e7_i386.deb ...
Unpacking compiz (1:0.9.99-4+git20140707164843~2e85d002e7) over (1:0.9.11.2+14.04.20140714-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/compiz_1%3a0.9.99-4+git20140707164843~2e85d002e7_i386.deb (--unpack):
 trying to overwrite '/usr/share/compiz/ccp.xml', which is also in package libcompizconfig0 1:0.9.11.2+14.04.20140714-0ubuntu1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libglib2.0-0:i386 (2.40.2-0ubuntu1) ...
Processing triggers for gconf2 (3.2.6-0ubuntu2) ...
Errors were encountered while processing:
 /var/cache/apt/archives/compiz_1%3a0.9.99-4+git20140707164843~2e85d002e7_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

P.S.我使用 Ubuntu 14.04 LTS 和 Gnome/KDE 作为桌面环境。

最佳答案

好的,我修好了。
我替换了俏皮值得信赖

/etc/apt/sources.list



enter image description here

关于ubuntu - 我无法在 Ubuntu 14.04 上使用 apt-get 安装任何东西,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27151342/

相关文章:

Node.js : NPM Install Fails

ubuntu - 构建 glibc 时未定义对 _dl_cet_check 的引用

android - Ubuntu MATE + Meteor ANDROID_HOME SDK 路径根问题

bash - 如何通过脚本或 Shell 命令将焦点切换到 Gnome 终端选项卡

php - ubuntu php 5.5.38 升级到 5.5.9

Swift 在 Ubuntu : Handling whitespace in object file names 上构建

ruby-on-rails - Rails API 404 错误 - 使用 Capistrano、Nginx 和 Passenger 部署

ubuntu - 在 Ubuntu 中执行脚本 .sh 后出现错误 "Unable to access jarfile"

Bash 脚本 - 有人可以校对并解释为什么它是错误的

git pull突然挂了