自从我第一次安装 Wine 以来,我就遇到了问题。我不记得我是如何安装它的,但我试图删除它,当它被删除时,一些软件包(我认为)还残留着,阻止我升级我的 ubuntu 及其软件。这真的让我很困惑。
sudo apt update
所以我在使用和时遇到了各种错误sudo apt upgrade
,然后我收到一条通知,说有一个新的 ubuntu 版本可用(我正在使用 ubuntu 22.04 LTS jammy),所以我尝试通过命令行升级sudo do-release-upgrade
并收到Please install all available updates for your release before upgrading.
错误。
然后我尝试了这个:
cd /etc/apt/sources.list.d
for i in *.list; do mv ${i} ${i}.disabled; done
apt clean
apt autoclean
sudo do-release-upgrade
并且它在大多数情况下都表现出色,我可以成功更新和升级。但当我尝试执行 do-release-upgrade 时,我再次收到与 Wine 相关的错误。这是我运行时得到的sudo do-get-release
:
Get:1 Upgrade tool signature [833 B]
Get:2 Upgrade tool [1,277 kB]
Fetched 1,278 kB in 0s (0 B/s)
authenticate 'noble.tar.gz' against 'noble.tar.gz.gpg'
extracting 'noble.tar.gz'
Reading cache
Checking package manager
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Ign https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Ign https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Ign https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Err https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Could not handshake: Error in the pull function. [IP: 146.75.118.217 443]
Fetched 0 B in 6s (0 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Checking for installed snaps
Calculating snap size requirements
Updating repository information
Ign https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Ign https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Ign https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Err https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Could not handshake: Error in the pull function. [IP: 146.75.54.217 443]
Fetched 0 B in 6s (0 B/s)
Ign https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Ign https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Ign https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Err https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Could not handshake: Error in the pull function. [IP: 146.75.118.217 443]
Fetched 0 B in 6s (0 B/s)
Ign https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Ign https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Ign https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Err https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Could not wait for server fd - select (11: Resource temporarily unavailable) [IP: 146.75.54.217 443]
Fetched 0 B in 6s (0 B/s)
Error during update
A problem occurred during the update. This is usually some sort of
network problem, please check your network connection and retry.
Restoring original system state
Aborting
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
有人能帮我彻底戒掉酒瘾吗?任何帮助我都会感激不尽。
我怀疑 Wine 安装程序
/etc/apt/sources.list
直接修改了该文件。查看一下它并(在某处复制后)删除所有引用 winehq 的条目。另外,如果您有一个文件
/etc/apt/sources.list.d/ubuntu.sources.disabled
,则应将其改回名为ubuntu.sources
。(我手边没有 22.04 系统,所以我不记得他们何时将其切换为单独的文件。)