sudo apt-get -f install 错误

sudo apt-get -f install 错误

我是一个 ubuntu 新手,每当我尝试下载某些东西时,都会出现一堆未满足的 wine 依赖项,我就会运行 sudo apt-get -f install 并得到这个。

bailey@bailey-FQ565AA-ABA-a6700f:~$ 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:
  libkresources4 libqrencode3 libkprintutils4 libqscintilla2-8 libsm-dev
  libkldap4 ttf-umefont libice-dev libkcalcore4 libprison0
  gir1.2-ubuntuoneui-3.0 libkholidays4 libknewstuff2-4 libpthread-stubs0
  linux-headers-3.2.0-55 python-qscintilla2 linux-headers-3.2.0-55-generic
  nvidia-settings-304-updates libakonadi-kmime4 libakonadiprotocolinternals1
  mysql-server-core-5.5 wine-mono0.0.8 akonadi-backend-mysql x11proto-kb-dev
  libkmbox4 xtrans-dev libkcalutils4 akonadi-server libmicroblog4
  wine-gecko2.21 wine-gecko2.21:i386 wine-gecko1.4 wine-gecko1.4:i386
  x11proto-input-dev libkabc4 mysql-client-core-5.5 libxt-dev
  linux-headers-3.5.0-23-generic libkcal4 libkalarmcal2 libakonadi-calendar4
  language-pack-kde-en linux-headers-3.5.0-23 libkimap4 libxau-dev
  kde-l10n-engb libmailtransport4 libubuntuoneui-3.0-1 openjdk-7-jre-lib
  libkpimtextedit4 libkmime4 kdepimlibs-kio-plugins ttf-unfonts-core
  thunderbird-globalmenu xorg-sgml-doctools libakonadi-kabc4 libx11-dev
  libkpimidentities4 libkpimutils4 libx11-doc libxcb1-dev
  language-pack-kde-en-base kdepim-runtime libakonadi-kcal4 x11proto-core-dev
  libakonadi-notes4 libxdmcp-dev libpthread-stubs0-dev libakonadi-contact4
  libakonadi-kde4 python-kde4 libdmtx0a
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  wine1.7 wine1.7-amd64 wine1.7-i386:i386
Suggested packages:
  dosbox:any
Recommended packages:
  wine-gecko2.24
The following packages will be upgraded:
  wine1.7 wine1.7-amd64 wine1.7-i386:i386
3 upgraded, 0 newly installed, 0 to remove and 305 not upgraded.
3 not fully installed or removed.
Need to get 0 B/58.2 MB of archives.
After this operation, 7,751 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of wine1.7:
 wine1.7 depends on wine1.7-i386 (= 1:1.7.15-0ubuntu1); however:
  Package wine1.7-i386 is not installed.
  Version of wine1.7-i386:i386 on system is 1:1.7.16-0ubuntu1.
dpkg: error processing wine1.7 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wine1.7-i386:i386:
 wine1.7-i386:i386 depends on wine1.7:any (= 1:1.7.16-0ubuntu1); however:
  Version of wine1.7 on system is 1:1.7.15-0ubuntu1.
dpkg: error processing wine1.7-i386:i386 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of wine1.7-amd64:
 wine1.7-amd64 depends on wine1.7:any (= 1:1.7.15-0ubuntu1); however:
  Package wine1.7 is not configured yet.
dpkg: error processing wine1.7-amd64 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 wine1.7
 wine1.7-i386:i386
 wine1.7-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

首先删除与 WineHQ 相关的所有内容:

sudo apt-get purge wine*

现在运行清理程序以清除所有剩余的东西(顺便问一下,所有 KDE 的东西从哪里来的?)。这将删除任何作为依赖项安装的不再需要的程序。

sudo apt-get autoremove

现在运行sudo apt-get install -f,以防仍然有损坏的包。

安装PlayOnLinux:

sudo apt-get install playonlinux

使用 PlayOnLinux 处理与 Wine 相关的所有事务。它有一个虚拟驱动器管理器,可以为您安装的每个程序创建一个 Wine 前缀。

相关内容