{"id":13459197,"url":"https://github.com/zq1997/deepin-wine","last_synced_at":"2025-05-13T19:16:35.385Z","repository":{"id":37335142,"uuid":"204651389","full_name":"zq1997/deepin-wine","owner":"zq1997","description":"【deepin源移植】Debian/Ubuntu上的QQ/微信快速安装方式","archived":false,"fork":false,"pushed_at":"2025-01-07T06:17:17.000Z","size":106,"stargazers_count":5218,"open_issues_count":175,"forks_count":387,"subscribers_count":55,"default_branch":"master","last_synced_at":"2025-04-27T20:05:16.852Z","etag":null,"topics":["deepin","deepin-wine","linux","qq","wechat","wine"],"latest_commit_sha":null,"homepage":"https://deepin-wine.i-m.dev","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zq1997.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-27T08:00:21.000Z","updated_at":"2025-04-27T09:56:24.000Z","dependencies_parsed_at":"2024-01-13T17:31:59.659Z","dependency_job_id":"176c459d-372f-480e-9b53-9c2189c49ad6","html_url":"https://github.com/zq1997/deepin-wine","commit_stats":{"total_commits":67,"total_committers":5,"mean_commits":13.4,"dds":0.07462686567164178,"last_synced_commit":"116b5f7008d616a55e4d07ab199dc932353550f9"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zq1997%2Fdeepin-wine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zq1997%2Fdeepin-wine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zq1997%2Fdeepin-wine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zq1997%2Fdeepin-wine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zq1997","download_url":"https://codeload.github.com/zq1997/deepin-wine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254010822,"owners_count":21999003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deepin","deepin-wine","linux","qq","wechat","wine"],"created_at":"2024-07-31T09:01:09.942Z","updated_at":"2025-05-13T19:16:35.366Z","avatar_url":"https://github.com/zq1997.png","language":"Python","funding_links":[],"categories":["Python","DevOps"],"sub_categories":[],"readme":"# deepin-wine\n\n\u003e deepin-wine环境与应用在Debian/Ubuntu上的移植仓库\n\u003e\n\u003e 使用deepin官方原版软件包\n\u003e\n\u003e 安装QQ/微信只需要两条命令\n\n\n\n跳转查看\n\n[快速开始](#快速开始)\n\n[常见问题](#常见问题)\n\n[卸载清理](#卸载清理)\n\n[高级文档](#高级文档)\n\n[版权与致谢](#版权与致谢)\n\n\n\n## 快速开始\n\n1. 添加仓库\n\n   首次使用时，你需要运行如下一条命令将移植仓库添加到系统中。\n\n   ```sh\n   wget -O- https://deepin-wine.i-m.dev/setup.sh | sh\n   ```\n\n2. 应用安装\n\n   自此以后，你可以像对待普通的软件包一样，使用`apt-get`系列命令进行各种应用安装、更新和卸载清理了。\n\n   比如安装微信只需要运行下面的命令，\n\n   ```sh\n   sudo apt-get install com.qq.weixin.deepin\n   ```\n\n   将`com.qq.weixin.deepin`替换为下列包名，可以继续安装其他应用：\n\n   |   应用   |            包名            |\n   | :------: | :------------------------: |\n   |   微信   |    com.qq.weixin.deepin    |\n   |    QQ    |      com.qq.im.deepin      |\n   |   TIM    |    com.qq.office.deepin    |\n   |   钉钉   |    com.dingtalk.deepin     |\n   | 阿里旺旺 | com.taobao.wangwang.deepin |\n   |  QQ音乐  |    com.qq.music.deepin     |\n   |  QQ视频  |    com.qq.video.deepin     |\n   |  爱奇艺  |      com.iqiyi.deepin      |\n\n   **完整列表参见[https://deepin-wine.i-m.dev](https://deepin-wine.i-m.dev)。**\n   \n3. 遇到问题？\n\n   别急，也许[issue](https://github.com/zq1997/deepin-wine/issues/)里面也有很多人碰到了和你类似的问题，搜一搜也许就有解决方案。\n\n\n\n## 常见问题\n\n### 没有应用图标\n\n重新登入即可，可注销或重启。\n\n### 微信/QQ等无法启动\n\n最新版本可能会遇到这个问题，与`WINEPREDLL`环境变量有关，参考[issue#310](https://github.com/zq1997/deepin-wine/issues/310)。\n\n### QQ/微信托盘小图标显示异常\n\n这和桌面环境有关，Linux发行版桌众多，面布局千奇百怪，并不是每一个都具有与【Windows系统托盘】对应的控件。\n\n- 如果是Linux Mint的Cinnamon桌面环境，那基本能直接正常使用。（不过多显示屏情况下有些问题，需要把左侧显示屏的设置为主屏幕）\n\n- 如果是Gnome桌面环境，任务栏就很别扭，成了个悬浮对话框，可以安装Gnome Shell插件：\n  - Gnome 3.36以上版本安装 [Tray Icons: Reloaded](https://extensions.gnome.org/extension/2890/tray-icons-reloaded/)    \n  - Gnome 3.36及以下版本安装 [TopIcons Plus](https://extensions.gnome.org/extension/1031/topicons/)\n    \n  至于插件安装的方法，出门左转搜索引擎。\n  - Gnome 老版本的一种方法是`sudo apt-get install gnome-shell-extension-top-icons-plus gnome-tweaks`，注销重新登录后在tweak工具中启用对应插件。\n  - Gnome 新版本可以使用**扩展管理器**`sudo apt install gnome-shell-extension-manager -y`， 打开 `扩展管理器`， 在**浏览**标签页搜索**Tray Icons: Reloaded**并安装，然后切换到**已安装**标签页，确保**Tray Icons: Reloaded**已启用。 \n\n- KDE之类，我没试过，请自行探索。\n\n### 没办法进行QQ远程/视频通话\n\n视频相关的功能对硬件和底层驱动的依赖很大，Wine毕竟不是Windows，100%完美模拟是不可能的。\n\n### 字体相关问题\n\n新版本的deepin-wine似乎已经能比较好地解决字体问题了，一般装上去就能用了。如果有问题，可以先尝试复制一份完整的Windows字体到Linux中。\n\n### 安装依赖问题\n\n`依赖: xxxx 但是它将不会被安装`\n\n`Depends: xxxx but it is not going to be installed`\n\n这说明系统试图安装`xxxx`但是无法装上去，这一般是你已有的软件源配置问题、或者安装过了一些有冲突的东西。\n\n那么，你应该试着安装`xxxx`，执行`apt-get install -s xxxx`（不需sudo，只是模拟，放心测试），它一般又会接着告诉你`依赖: yyyy 但是它将不会被安装`，说明更底层的错误出在了`yyyy`，不断尝试，找到罪魁祸首，可以尝试先解决这个罪魁祸首。\n\n### 更多问题\n\n1. 尽量多测试，排除偶然因素，可能是一个重启/删除重装就能解决的事。\n\n2. 多多搜索已有issues，大家都列出了各种原因探讨和解决方案了，值得一看。\n\n3. 新的欢迎提issue，但是也请提供Linux发行版名称与版本号、桌面环境、APT源列表等信息。\n\n4. Linux不是Windows，Wine也不是Windows，不要期待100%丝滑享受。\n\n\n\n## 卸载清理\n\n卸载与清理按照层次从浅到深可以分为如下四个层级。\n\n如果只是想清除APP账户配置啥的那么请按照`1`清理；如果你发现程序奔溃之类的，请按照`1-2`清理；如果需要卸载APP，按照`1-2-3`清理；如果你想把一切回到最初的起点，执行`1-2-3-4`清理。\n\n1. 清理应用运行时目录\n\n   例如QQ/TIM会把帐号配置、聊天文件等保存`~/Documents/Tencent Files`目录下，而微信是`~/Documents/WeChat Files`，删除这些文件夹以移除帐号配置等数据。\n\n2. 清理wine容器\n\n   deepin-wine应用第一次启动后会在`~/.deepinwine/`目录下生成一个文件夹（名字各不相同）用于存储wine容器（可以理解我一个“Windows虚拟机”），如果使用出了问题，可以试试删除这个目录下对应的子文件夹。\n\n3. 卸载软件包\n\n   执行`sudo apt-get purge --autoremove \u003c包名\u003e`命令把你安装过的包给移除。\n\n4. 移除软件仓库\n\n   ```sh\n   sudo rm /etc/apt/preferences.d/deepin-wine.i-m.dev.pref \\\n           /etc/apt/sources.list.d/deepin-wine.i-m.dev.list \\\n           /etc/profile.d/deepin-wine.i-m.dev.sh\n   sudo apt-get update\n   ```\n\n\n\n## 高级文档\n\n*如果你是资深Linux用户，可以了解一下这部分。*\n\n### 移植原理\n\nDeepin把QQ/微信之类的deepin-wine应用打包放在了deepin仓库中，因此先提取出这些应用及依赖的软件包，再减去Debian/Ubuntu等发行版官方仓库中固有的软件包，就可以打包成一个移植于对应发行版的“差量仓库”，然后把这个差量仓库的索引发布出来即可，其中的`.deb`可以直接重定向到Deepin官方仓库地址去。\n\n### 配置过程详解\n\n\n环境配置其实就是添加我自行构建的软件仓库为源，具体包括以下几步。\n\n1. 添加i386架构\n\n   因为deepin-wine相关的软件包都是i386的，而现在的系统基本是64位的，所以需要先添加i386架构支持。\n\n   通过`dpkg --print-architecture`和`dpkg --print-foreign-architectures`命令查看系统原生和额外添加的架构支持，如果输出结果不含`i386`，则需要手动添加支持。\n\n   ```sh\n   sudo dpkg --add-architecture i386\n   ```\n\n2. 添加软件源\n\n   创建`/etc/apt/sources.list.d/deepin-wine.i-m.dev.list`文件，编辑其内容如下，\n\n   ```\n   deb [trusted=yes] https://deepin-wine.i-m.dev /\n   ```\n\n3. 设置源优先级\n\n   这步是为了降低本仓库的优先级，尽可能使用发行版仓库中固有的软件包而不是Deepin仓库的软件包，最小化风险。\n\n   创建`/etc/apt/preferences.d/deepin-wine.i-m.dev.pref`文件，编辑其内容如下，\n\n   ```\n   Package: *\n   Pin: release l=deepin-wine\n   Pin-Priority: 400\n   ```\n\n4. 添加XDG_DATA_DIRS配置\n\n   这是为了让应用图标能正常显示，创建`/etc/profile.d/deepin-wine.i-m.dev.sh`文件，编辑其内容如下，\n\n   ```sh\n   XDG_DATA_DIRS=${XDG_DATA_DIRS:-/usr/local/share:/usr/share}\n   for deepin_dir in /opt/apps/*/entries; do\n      if [ -d \"$deepin_dir/applications\" ]; then\n         XDG_DATA_DIRS=\"$XDG_DATA_DIRS:$deepin_dir\"\n      fi\n   done\n   export XDG_DATA_DIRS\n   ```\n\n5. 刷新软件源\n\n   ```sh\n   sudo apt-get update\n   ```\n\n\n\n## 版权与致谢\n\n这个git仓库中的代码只包括了移植版软件仓库的构建工具，最后仓库中软件包的下载地址会被301重定向到deepin的官方仓库（或者镜像）中去，其版权由 [deepin](https://www.deepin.org/) 所有。\n\n本项目受 [wszqkzqk/deepin-wine-ubuntu](https://github.com/wszqkzqk/deepin-wine-ubuntu) 项目启发，改进了一下安装方式，因此兼容原项目，已经按照deepin-wine-ubuntu项目安装好后，依然可以再按此项目进行配置，可以更方便地进行后续更新。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzq1997%2Fdeepin-wine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzq1997%2Fdeepin-wine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzq1997%2Fdeepin-wine/lists"}