Raspberry pi Gnome packagekit数据安装错误

Raspberry pi Gnome packagekit数据安装错误,raspberry-pi,debian,raspbian,gnome,Raspberry Pi,Debian,Raspbian,Gnome,我的Pi上有Debian,我的状态很糟糕,我再也不能正确地安装任何东西了。比如说 $ sudo apt-get install autogen 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 packag

我的Pi上有Debian,我的状态很糟糕,我再也不能正确地安装任何东西了。比如说

 $ sudo apt-get install autogen
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:
 autogen : Depends: guile-2.0-libs but it is not going to be installed
           Depends: libopts25-dev (= 1:5.18.4-3) but it is not going to be installed
           Recommends: autogen-doc but it is not going to be installed
 gnome-packagekit-session : Depends: gnome-packagekit-data (>= 3.14.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
我得到:E:subprocess/usr/bin/dpkg返回了一个错误代码(1)。完整日志:

$ sudo 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:
  coinor-libcbc3 coinor-libcgl1 coinor-libclp1 coinor-libcoinmp1 coinor-libcoinutils3 coinor-libosi1 cups-bsd cups-client epiphany-browser-data fonts-opensymbol gconf-service gconf2-common gsfonts gsfonts-x11 gstreamer0.10-alsa
  gstreamer0.10-plugins-base jackd libabw-0.1-1 libavahi-gobject0 libboost-date-time1.55.0 libcdr-0.1-1 libclucene-contribs1 libclucene-core1 libcmis-0.4-4 libcolamd2.8.0 libe-book-0.1-1 libeot0 libepoxy0 libetonyek-0.1-1 libevdev2
  libexttextcat-2.0-0 libexttextcat-data libfm-data libfm-extra4 libfm-gtk-data libfm4 libfreehand-0.1-1 libgconf-2-4 libgif4 libgnome-keyring-common libgnome-keyring0 libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libgtop2-7
  libgtop2-common libhsqldb1.8.0-java libhyphen0 liblangtag-common liblangtag1 libmenu-cache-bin libmenu-cache3 libmng1 libmotif-common libmozjs185-1.0 libmspub-0.1-1 libmtdev1 libmwaw-0.3-3 libmythes-1.2-0 libodfgen-0.1-1
  liborcus-0.8-0 libpciaccess0 libqt4-dbus libqt4-xml libqtcore4 libqtdbus4 libraptor2-0 librasqal3 librdf0 librevenge-0.0-0 libvisio-0.1-1 libvte-common libwnck-3-common libwnck-common libwpd-0.10-10 libwpg-0.3-3 libwps-0.3-3
  libxcb-util0 libxfont1 libyajl2 lp-solve lxmenu-data lxpanel-data netsurf-common pi-package-data python3-gi qdbus qtchooser qtcore4-l10n uno-libs3 ure xfonts-100dpi xfonts-encodings xfonts-utils
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  gnome-packagekit-data
The following NEW packages will be installed:
  gnome-packagekit-data
0 upgraded, 1 newly installed, 0 to remove and 54 not upgraded.
208 not fully installed or removed.
Need to get 0 B/1,302 kB of archives.
After this operation, 8,041 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 114514 files and directories currently installed.)
Preparing to unpack .../gnome-packagekit-data_3.14.0-1_all.deb ...
Unpacking gnome-packagekit-data (3.14.0-1) ...
dpkg: error processing archive /var/cache/apt/archives/gnome-packagekit-data_3.14.0-1_all.deb (--unpack):
 trying to overwrite '/usr/share/icons/hicolor/16x16/mimetypes/application-x-catalog.png', which is also in package pi-package-data 0.2
Processing triggers for hicolor-icon-theme (0.13-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/gnome-packagekit-data_3.14.0-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~ $
这个问题与“gnome packagekit数据”有关,我在网上看到类似的投诉:但没有解决方案


我怎样才能解决这个问题呢?

我设法让它对我起作用,尽管我不知道它是否有任何破坏性的后果,所以请谨慎行事

这个问题对我来说是pi包的问题。它干扰了gnome软件包。我的修复方法是删除pi包、pi包数据和pi包会话。请注意,您必须使用dpkg删除包,以便apt不会投诉

sudo dpkg -r pi-package pi-package-data pi-package-session
在该命令完成后,您应该可以自由运行:

sudo apt-get -f install
我不知道这是否会导致任何其他问题,但我认为不会,因为dpkg没有说任何包依赖于它