我正在使用 64 位 Ubuntu,并尝试按照https://wiki.winehq.org/Ubuntu。我首先在 Ubuntu 18.04.6 LTS 上尝试了它,然后在升级到 Ubuntu 20.04.3 LTS 后再次尝试了它。无论如何,结果都是一样的。
第一步是确保启用了 32 位架构,看起来是启用了。下一步是下载并添加存储库密钥。到目前为止一切顺利。
tb@tb-Legion-Y540-17IRH:~$ dpkg --print-architecture
amd64
tb@tb-Legion-Y540-17IRH:~$ dpkg --print-foreign-architectures
i386
tb@tb-Legion-Y540-17IRH:~$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
File ‘winehq.key’ already there; not retrieving.
tb@tb-Legion-Y540-17IRH:~$ sudo apt-key add winehq.key
[sudo] password for tb:
OK
这是我遇到麻烦的地方。由于我现在使用的是 Ubuntu 20.04.3 LTS,因此我使用以下命令添加存储库:
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
...我得到以下输出:
Hit:1 http://se.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://archive.canonical.com/ubuntu focal InRelease
Hit:3 http://se.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:5 http://se.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:7 https://dl.winehq.org/wine-builds/ubuntu hirsute InRelease
Fetched 114 kB in 1s (111 kB/s)
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-1386/Packages' as repository 'http://se.archive.ubuntu.com/ubuntu focal InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'restricted/binary-1386/Packages' as repository 'http://se.archive.ubuntu.com/ubuntu focal InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'universe/binary-1386/Packages' as repository 'http://se.archive.ubuntu.com/ubuntu focal InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'multiverse/binary-1386/Packages' as repository 'http://se.archive.ubuntu.com/ubuntu focal InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'partner/binary-1386/Packages' as repository 'http://archive.canonical.com/ubuntu focal InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'main/binary-1386/Packages' as repository 'http://se.archive.ubuntu.com/ubuntu focal-updates InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'restricted/binary-1386/Packages' as repository 'http://se.archive.ubuntu.com/ubuntu focal-updates InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'universe/binary-1386/Packages' as repository 'http://se.archive.ubuntu.com/ubuntu focal-updates InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'multiverse/binary-1386/Packages' as repository 'http://se.archive.ubuntu.com/ubuntu focal-updates InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'main/binary-1386/Packages' as repository 'http://se.archive.ubuntu.com/ubuntu focal-backports InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'restricted/binary-1386/Packages' as repository 'http://se.archive.ubuntu.com/ubuntu focal-backports InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'universe/binary-1386/Packages' as repository 'http://se.archive.ubuntu.com/ubuntu focal-backports InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'multiverse/binary-1386/Packages' as repository 'http://se.archive.ubuntu.com/ubuntu focal-backports InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'main/binary-1386/Packages' as repository 'https://dl.winehq.org/wine-builds/ubuntu focal InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'main/binary-1386/Packages' as repository 'https://dl.winehq.org/wine-builds/ubuntu hirsute InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'main/binary-1386/Packages' as repository 'http://security.ubuntu.com/ubuntu focal-security InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'restricted/binary-1386/Packages' as repository 'http://security.ubuntu.com/ubuntu focal-security InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'universe/binary-1386/Packages' as repository 'http://security.ubuntu.com/ubuntu focal-security InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'multiverse/binary-1386/Packages' as repository 'http://security.ubuntu.com/ubuntu focal-security InRelease' doesn't support architecture '1386'
“不支持架构‘1386’”似乎暗示错误与 32 位架构和 64 位架构有关,但我已经采取措施确保正确设置,所以我不明白出了什么问题。我遗漏了什么,如何修复?
我用 Google 搜索了这个错误,但没有找到任何足够简单让我理解的内容。
谨致问候,一位需要一款 Windows 应用程序来工作的非程序员
答案1
不存在这样的架构1386
。这似乎可能是 的拼写错误i386
。
你可以尝试运行
sudo dpkg --remove-architecture 1386
然后sudo apt update
再次运行。