zoukankan      html  css  js  c++  java
  • ubuntu 18.04 通过联网方式安装wine

    ubuntu 18.04 通过联网方式安装wine

    1.如果是64位机器,先开启允许32位架构程序运行

    sudo dpkg --add-architecture i386

    2.添加元wine源码安装仓库

    对于ubuntu18.10
    wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
    sudo apt-key add Release.key
    sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./'

    对于Linux Mint 17.x
    wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
    sudo apt-key add Release.key
    sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ trusty main'

    对于Linux Mint 18.x
    wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
    sudo apt-key add Release.key
    sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'

    对于Linux Mint 19.x
    wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
    sudo apt-key add Release.key
    sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'

    我的ubuntu18.04 LTS是 Linux Mint 18.x 这个类型的,自己选择合适自己的.

    3.更新包

    sudo apt-get update

    4.选择安装wine版本

    Stable branch----稳定版本(一般是选择这个了)
    sudo apt-get install --install-recommends winehq-stable

    Development branch(开发版本)
    sudo apt-get install --install-recommends winehq-devel

    Staging branch(分支版本)
    sudo apt-get install --install-recommends winehq-staging

    至此, wine安装完成......

    一些问题记录,如果对于第二步, 添加源仓库后,执行第三步失败

    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:
     winehq-stable : Depends: wine-stable (= 3.0.4~cosmic)
    E: Unable to correct problems, you have held broken packages.
    

    代表第二步的源仓库选择错误了,重新选择就ok....

    方法:

    • 1.vim /etc/apt/sources.list 到最后面删除刚刚添加进去的源仓库
    • 2.重新执行第二步的 sudo apt-add-repository....... 语句, 添加适合自己机器的源仓库
    • 3.再次 sudo apt-get update
    • 4.执行第四步
  • 相关阅读:
    面试只要问到分布式,必问分布式锁
    Java编程中忽略这些细节,Bug肯定找上你
    不止承上启下,带你了解工业物联网关
    论文解读二十七:文本行识别模型的再思考
    并发高?可能是编译优化引发有序性问题
    论文解读丨LayoutLM: 面向文档理解的文本与版面预训练
    SQL优化老出错,那是你没弄明白MySQL解释计划
    SQL反模式学习笔记1 开篇
    SQL Server中自定义函数:用指定的分隔符号分割字符串
    .NET软件开发与常用工具清单
  • 原文地址:https://www.cnblogs.com/liangjf/p/10122277.html
Copyright © 2011-2022 走看看