在 14.04 上安装 wine1.7 依赖项时该怎么做

在 14.04 上安装 wine1.7 依赖项时该怎么做
user@chrubuntu:~$ sudo apt-get install wine1.7   
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine1.7 : Depends: wine1.7-i386 (= 1:1.7.19-0ubuntu2~trusty2) but it is not         installable
       Recommends: gnome-exe-thumbnailer but it is not going to be installed or
                   kde-runtime but it is not going to be installed
       Recommends: ttf-mscorefonts-installer but it is not going to be installed
       Recommends: fonts-horai-umefont but it is not going to be installed
       Recommends: fonts-unfonts-core but it is not going to be installed
       Recommends: ttf-wqy-microhei
       Recommends: winetricks but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
user@chrubuntu:~$ 

尝试在 Ubuntu 14.04 64 位上安装 wine1.7,但我不确定这意味着什么,非常感谢您的帮助。我已经运行了sudo apt-get update 并得到了这个:

Reading package lists... Done
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems

于是我跑去apt-get update

E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

这一切都非常令人紧张,因为过去一周我一直在尝试获取 Wine,但不得不重新安装,但它仍然无法工作。

答案1

似乎您缺少 i386 支持。您可能想尝试添加它。

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install wine

答案2

关于重复源的消息只是一个警告,可以安全地忽略。尝试

sudo apt-get -f install

它将(尝试)安装所有缺少的依赖项来“修复”您的软件包(-f“修复”)。

答案3

尝试运行以下三个命令:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.7

如果执行此操作后您收到有关重复的葡萄酒条目的消息,请尝试运行

sudo add-apt-repository ppa:ubuntu-wine/ubuntu -r
sudo apt-get update

请注意,末尾的 -r 告诉 add-apt-repository 删除一个 ppa,而不是添加一个。

另外,您可能想尝试以 root 用户身份运行您最喜欢的文本编辑器,以从 /etc/apt/sources.list 中删除 Google 条目(例如sudo gedit /etc/apt/sources.list)。保存文件并运行sudo apt-get update

答案4

  1. 使用您喜欢的文本编辑器打开/etc/apt/sources.list(先进行备份)
  2. 改变

    deb http://de.archive.ubuntu.com/ubuntu/ trusty universe
    

    deb [arch=amd64,i386] http://de.archive.ubuntu.com/ubuntu/ trusty universe
    
  3. 运行这些命令

    sudo add-apt-repository ppa:ubuntu-wine/ppa
    sudo dpkg --add-architecture i386
    sudo apt-get update
    
  4. 最后,使用 aptitude 安装 wine

    sudo aptitude --full-resolver -f install wine1.7
    

相关内容