几个月前我尝试安装 wine,从那时起,每当我尝试安装任何东西时,我都会收到此错误。我尝试卸载 wine,但不幸的是,每当我尝试卸载它时,我也收到此错误。我有太多的备份需要备份和设置,所以我现在不能直接进行干净的 Ubuntu 安装,但正如您可能猜到的那样,这对我来说非常困难!实际上使我无法使用我的机器。
这是我收到的错误:
wine32:i386 : Depends: libwine:i386 (= 3.0-1ubuntu1) but it is not going to be installed
wine64 : Depends: libwine (= 3.0-1ubuntu1) but it is not going to be installed
我确实读过一些关于存储库的评论,这些是我在提到 wine 的列表中看到的评论:
/etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
/etc/apt/sources.list:# deb-src https://dl.winehq.org/wine-builds/ubuntu/ bionic main
/etc/apt/sources.list.d/ubuntu-wine-ubuntu-ppa-xenial.list:# deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu bionic main # disabled on upgrade to bionic
/etc/apt/sources.list.d/ubuntu-wine-ubuntu-ppa-xenial.list:# deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
/etc/apt/sources.list.d/ubuntu-wine-ubuntu-ppa-xenial.list.distUpgrade:deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
/etc/apt/sources.list.d/ubuntu-wine-ubuntu-ppa-xenial.list.distUpgrade:# deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
/etc/apt/sources.list.d/ubuntu-wine-ubuntu-ppa-xenial.list.save:# deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu bionic main # disabled on upgrade to bionic
/etc/apt/sources.list.d/ubuntu-wine-ubuntu-ppa-xenial.list:# deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu bionic main # disabled on upgrade to bionic
/etc/apt/sources.list.d/ubuntu-wine-ubuntu-ppa-xenial.list:# deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
/etc/apt/sources.list.d/ubuntu-wine-ubuntu-ppa-xenial.list.distUpgrade:deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
/etc/apt/sources.list.d/ubuntu-wine-ubuntu-ppa-xenial.list.distUpgrade:# deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
/etc/apt/sources.list.d/ubuntu-wine-ubuntu-ppa-xenial.list.save:# deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu bionic main # disabled on upgrade to bionic
有人建议删除这些,但我不确定是否需要全部删除?我还有很多其他软件包,我要删除 xenial 吗?不删除 xenial 吗?另外,我不确定如何删除它们,因为由于上述错误,我无法安装 synaptic 软件包管理器等,就像任何其他软件包一样。
我该如何修复这个问题?我根本不想保留 wine,我只想修复这个问题 -------------------------EDIT----------------------------------------------
grep -r ^deb /etc/apt/ --include="*.list"
/etc/apt/sources.list:deb http://tr.archive.ubuntu.com/ubuntu/ bionic main restricted
/etc/apt/sources.list:deb http://tr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
/etc/apt/sources.list:deb http://tr.archive.ubuntu.com/ubuntu/ bionic universe
/etc/apt/sources.list:deb http://tr.archive.ubuntu.com/ubuntu/ bionic-updates universe
/etc/apt/sources.list:deb http://tr.archive.ubuntu.com/ubuntu/ bionic multiverse
/etc/apt/sources.list:deb http://tr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
/etc/apt/sources.list:deb http://tr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://archive.canonical.com/ubuntu bionic partner
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu bionic-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu bionic-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu bionic-security multiverse
/etc/apt/sources.list:deb http://archive.canonical.com/ bionic partner
/etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
/etc/apt/sources.list.d/obsproject-ubuntu-obs-studio-bionic.list:deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu bionic main
/etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
apt-cache policy wine32:i386 libwine:i386 wine64 libwine
wine32:i386:
Installed: 3.0-1ubuntu1
Candidate: 3.0-1ubuntu1
Version table:
*** 3.0-1ubuntu1 500
500 http://tr.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
100 /var/lib/dpkg/status
libwine:i386:
Installed: (none)
Candidate: 3.0-1ubuntu1
Version table:
3.0-1ubuntu1 500
500 http://tr.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
wine64:
Installed: 3.0-1ubuntu1
Candidate: 3.0-1ubuntu1
Version table:
*** 3.0-1ubuntu1 500
500 http://tr.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
100 /var/lib/dpkg/status
libwine:
Installed: (none)
Candidate: 3.0-1ubuntu1
Version table:
3.0-1ubuntu1 500
500 http://tr.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
dpkg -l | grep -i wine
ii q4wine 1.3.6-2 amd64 Qt GUI for wine (WINE)
iU wine-stable 3.0-1ubuntu1 all Windows API implementation - standard suite
rc wine1.6 1:1.6.2-0ubuntu14.2 amd64 Microsoft Windows Compatibility Layer (Binary Emulator and Library)
ii wine1.8 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1 amd64 Microsoft Windows Compatibility Layer (Binary Emulator and Library)
ii wine1.8-amd64 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1 amd64 Microsoft Windows Compatibility Layer (64-bit support)
ii wine1.8-i386:i386 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1 i386 Microsoft Windows Compatibility Layer (32-bit support)
iU wine32:i386 3.0-1ubuntu1 i386 Windows API implementation - 32-bit binary loader
iU wine64 3.0-1ubuntu1 amd64 Windows API implementation - 64-bit binary loader
ii winetricks 0.0+20180217-1 all package manager for Wine to install software easily
答案1
我建议使用以下方法删除 Wine 存储库:
sudo add-apt-repository -r "deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main"
并使用低级命令删除相关包
sudo dpkg -P --force-all wine1.6
sudo dpkg -P --force-all wine1.8
sudo dpkg -P --force-all wine1.8-amd64
sudo dpkg -P --force-all wine1.8-i386:i386
和正常的高级命令:
sudo apt-get purge q4wine wine-stable wine32:i386 wine64 winetricks