我安装了 wine,然后意识到我应该安装 winehq。我使用了以下代码:
sudo apt-get install --install-recommends winehq-devel
我收到了这样的回复:
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:
liblcms2-2 : Breaks: liblcms2-2:i386 (!= 2.5-0ubuntu4.1) but 2.6-3ubuntu1~trusty1 is to be installed
liblcms2-2:i386 : Breaks: liblcms2-2 (!= 2.6-3ubuntu1~trusty1) but 2.5-0ubuntu4.1 is to be installed
wine1.6-amd64 : Conflicts: wine-amd64
wine1.6-i386:i386 : Conflicts: wine-i386
winehq-devel : Depends: wine-devel
Conflicts: wine
Conflicts: wine:i386
Conflicts: wine-amd64
Conflicts: wine-amd64:i386
Conflicts: wine-i386
Conflicts: wine-i386:i386
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
然后我输入它告诉我的命令,我得到了这个:
bob@bob-HP-Stream-Notebook-PC-11:~$ sudo -s
[sudo] password for bob:
root@bob-HP-Stream-Notebook-PC-11:~# 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:
libllvm3.4 libopenvg1-mesa libwayland-egl1-mesa
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
liblcms2-2
Suggested packages:
liblcms2-utils
The following packages will be upgraded:
liblcms2-2
1 upgraded, 0 newly installed, 0 to remove and 110 not upgraded.
5 not fully installed or removed.
Need to get 0 B/134 kB of archives.
After this operation, 3,072 B of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
liblcms2-2
Install these packages without verification? [y/N] y
E: Invalid archive signature
E: Internal error, could not locate member control.tar.{gzbz2xzlzma}
E: Prior errors apply to /var/cache/apt/archives/liblcms2-2_2.6-3ubuntu1~trusty1_amd64.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg-deb: error: `/var/cache/apt/archives/liblcms2-2_2.6-3ubuntu1~trusty1_amd64.deb' is not a debian format archive
dpkg: error processing archive /var/cache/apt/archives/liblcms2-2_2.6-3ubuntu1~trusty1_amd64.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/liblcms2-2_2.6-3ubuntu1~trusty1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
有人能帮助我吗,因为这些都是我现在尝试安装任何东西时不断遇到的相同错误。
编辑:我试图安装一款游戏。以下是我最终得到的结果:
root@bob-HP-Stream-Notebook-PC-11:~# sudo apt-get install smc
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:
liblcms2-2 : Breaks: liblcms2-2:i386 (!= 2.5-0ubuntu4.1) but 2.6-3ubuntu1~trusty1 is to be installed
liblcms2-2:i386 : Breaks: liblcms2-2 (!= 2.6-3ubuntu1~trusty1) but 2.5-0ubuntu4.1 is to be installed
smc : Depends: libboost-filesystem1.54.0 but it is not going to be installed
Depends: libboost-thread1.54.0 but it is not going to be installed
Depends: libcegui-mk2-0.7.6 but it is not going to be installed
Depends: libsdl-mixer1.2 but it is not going to be installed
Depends: libsdl-ttf2.0-0 but it is not going to be installed
Depends: smc-data (= 1.9+git20121121-1ubuntu1.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
编辑2:
bob@bob-HP-Stream-Notebook-PC-11:~$ sudo apt-get install synaptic
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:
liblcms2-2 : Breaks: liblcms2-2:i386 (!= 2.5-0ubuntu4.1) but 2.6-3ubuntu1~trusty1 is to be installed
liblcms2-2:i386 : Breaks: liblcms2-2 (!= 2.6-3ubuntu1~trusty1) but 2.5-0ubuntu4.1 is to be installed
synaptic : Depends: libept1.4.12 but it is not going to be installed
Recommends: rarian-compat but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
bob@bob-HP-Stream-Notebook-PC-11:~$ dpkg --configure -a
dpkg: error: requested operation requires superuser privilege
bob@bob-HP-Stream-Notebook-PC-11:~$ sudo -s
root@bob-HP-Stream-Notebook-PC-11:~# dpkg --configure -a
dpkg: error processing package liblcms2-2:i386 (--configure):
package liblcms2-2:i386 2.6-3ubuntu1~trusty1 cannot be configured because liblcms2-2:amd64 is at a different version (2.5-0ubuntu4.1)
dpkg: dependency problems prevent configuration of wine1.6-i386:
wine1.6-i386 depends on liblcms2-2 (>= 2.2+git20110628); however:
Package liblcms2-2:i386 is not configured yet.
dpkg: error processing package wine1.6-i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wine1.6:
wine1.6 depends on wine1.6-i386 (= 1:1.6.2-0ubuntu4); however:
Package wine1.6-i386 is not configured yet.
dpkg: error processing package wine1.6 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wine:
wine depends on wine1.6 | wine1.8; however:
Package wine1.6 is not configured yet.
Package wine1.8 is not installed.
dpkg: error processing package wine (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wine1.6-amd64:
wine1.6-amd64 depends on wine1.6:any (= 1:1.6.2-0ubuntu4); however:
Package wine1.6 is not configured yet.
dpkg: error processing package wine1.6-amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
liblcms2-2:i386
wine1.6-i386
wine1.6
wine
wine1.6-amd64
编辑:这是我最后得到的。这里的内容太多了,但我还是做了
sudo apt-get remove --purge wine*
中间发生了很多事,但最后是这样的:
wine1.6-i386:i386 : Depends: wine1.6:any:i386 (= 1:1.6.2-0ubuntu4)
Recommends: wine-mono0.0.8:i386
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
答案1
该错误是由于 32 位和 64 位软件包冲突造成的
按
Ctrl+ Alt+T
航站楼开放
类型
sudo apt-get remove --purge wine*
sudo dpkg --configure -a
sudo -f install
sudo autoremove
sudo autoclean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install winehq
apt -f install