首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何将葡萄酒作为虚拟包删除?

如何将葡萄酒作为虚拟包删除?
EN

Ask Ubuntu用户
提问于 2016-10-22 00:33:55
回答 3查看 4.3K关注 0票数 3

我最近擦去了我的形象,摆脱了我的系统和重新安装Ubuntu的怪癖。我按照通常的葡萄酒安装说明(添加葡萄酒PPA、更新/升级和安装)运行winecfg,一切都进行得很顺利。然而,它拒绝运行任何Windows .exe文件,尽管它确实显示在右键菜单上。

我决定卸载葡萄酒并自己编译,以确保公共二进制文件不会出现奇怪的bug。我打开终端,输入sudo apt purge wine,但被告知Virtual packages like 'wine' can't be removed。我该怎么解决这个问题?

编辑:这是apt-cache show wine的输出:

代码语言:javascript
复制
Package: wine  
Source: wine1.8  
Priority: extra  
Section: metapackages  
Installed-Size: 6  
Maintainer: Scott Ritchie <scottritchie@ubuntu.com>  
Architecture: amd64  
Version: 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1  
Depends: wine1.6 | wine1.8  
Filename: pool/main/w/wine1.8/wine_1.8.0-0ubuntu1~ubuntu15.10.1~ppa1_amd64.deb  
Size: 992  
MD5sum: a39802d002bc8288e788b8ed18cda444  
SHA1: bb16cb968823dbde908bb5062d45a6df145d97d4  
SHA256: 85d8c892be1c13c0c819473f767217ee0c90fb05baf99fbbe0a57292afa86515  
Description-en: Microsoft Windows Compatibility Layer (meta-package)  
 Wine is a compatibility layer for running Windows applications on Linux.
 Applications are run at full speed without the need of cpu emulation.   Wine  
 does not require Microsoft Windows, however it can use native system dll  
 files in place of its own if they are available.  
 .  
 This meta-package always depends on the latest stable version of Wine.  
Description-md5: 7ca999b13ee007110685ad22b3ecb3b6  
Multi-Arch: foreign  

Package: wine  
Priority: extra  
Section: universe/otherosfs  
Installed-Size: 6  
Maintainer: Scott Ritchie <scottritchie@ubuntu.com>  
Architecture: amd64  
Source: wine1.6  
Version: 1:1.6.2-0ubuntu14  
Depends: wine1.6  
Filename: pool/universe/w/wine1.6/wine_1.6.2-0ubuntu14_amd64.deb  
Size: 974  
MD5sum: bea5bed393084b4406fcda336325bc71  
SHA1: 12cb87640d0cb8a707ce2e89ebd872e5e32c8c9b  
SHA256: ab68e0b0f6122e5d189171242a3fc706cd8689ed45feb25b3140530f17c81188  
Description-en: Microsoft Windows Compatibility Layer (meta-package)  
 Wine is a compatibility layer for running Windows applications on Linux.  
 Applications are run at full speed without the need of cpu emulation.   Wine  
 does not require Microsoft Windows, however it can use native system dll  
 files in place of its own if they are available.  
 .  
 This meta-package always depends on the default version of Wine.  
Description-md5: 6474b3e541944944e61aec502ceb28f2  
Multi-Arch: foreign  
Homepage: http://www.winehq.org/  
Bugs: https://bugs.launchpad.net/ubuntu/+filebug  
Origin: Ubuntu

aptitude search '~i~Px-wine'放入终端不会产生任何结果。

EN

回答 3

Ask Ubuntu用户

回答已采纳

发布于 2020-04-29 20:50:43

)我忘记了你,超过5年的惊喜,而你没有使用@通知。

无论如何,这个答案可能会对将来有所帮助。

  • apt-cache show wine命令没有带来我预期的结果。我们只有两包美酒,但都不提供酒。因为他们漏掉了一行声明,Provides: wine
  • aptitude search '~i~Pwine'第二个命令,这是我的错误(这是错误的:aptitude search '~i~Px-wine')。该命令应该给出提供wine虚拟包的所有已安装包。然后可以使用apt卸载它们。sudo apt删除< package - name > #或sudo apt清除在最坏的情况下,当包的名称与虚拟包相同时。使用dpkg。数多dpkg -删除<包名>#或sudo dkpg -清除<包名>
票数 1
EN

Ask Ubuntu用户

发布于 2020-04-29 15:02:19

我安装wine时使用的是wine_5.7~bionic.orig.tar.gz而不是sudo apt install wine-stable。在解压缩tar文件之后,我得到了一个文件夹wine-5.7/,并从那里进行了进一步的安装,即./configure,然后是makemake install。它完全安装了葡萄酒,但是当我想要完全删除它时,我会转到wine-5.7/文件夹并键入sudo make uninstall来完全删除葡萄酒虚拟包。

票数 1
EN

Ask Ubuntu用户

发布于 2022-10-20 20:25:21

看起来wine是一个由wine-stablewine-development.生成的虚拟包,通过sudo apt remove <package>删除其中任何一个或两者都应该修复这个问题。

在此之后,我建议使用sudo apt autoremovesudo apt clean。这是因为上一次我卸载了葡萄酒,在wine-stable之后,我还有不到1GiB的额外东西要删除。希望这能有所帮助!

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/840277

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档