此操作还将删除以下软件包

此操作还将删除以下软件包

所以我使用 Kubutu 并尝试安装 Wine 来运行 Photoshop,但当我尝试通过sudo apt install wine或通过 KDE 的 Discover 软件中心安装 wine 时,它​​会弹出一个窗口,告诉我以下软件包将被删除。这些软件包包括 Firefox、WPS office、telegram-desktop 以及我通过终端安装的一大堆其他东西。

显然它绝对不应该这样做,有人能告诉我为什么会发生这种情况吗?

下面列出了一些我认为可能重要的信息:

  • 我运行最新的 Linux 内核(而不是最新的 Ubuntu 内核),因为我需要它来获得驱动程序支持。
$ uname -a
Linux LinuxIsPower 5.2.2-050202-generic #201907231250 SMP Tue Jul 23 12:53:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • 我的 sources.list 文件可能有问题?
deb http://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ disco restricted main universe multiverse
deb http://security.ubuntu.com/ubuntu/ disco-security multiverse main restricted universe
deb https://dl.winehq.org/wine-builds/ubuntu/ disco main 
  • 我已经尝试过apt updateapt upgrade一切都是最新的。
$ sudo apt update
Hit:1 http://ftp.snt.utwente.nl/pub/os/linux/ubuntu disco InRelease
Hit:2 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu disco InRelease            
Get:3 http://security.ubuntu.com/ubuntu disco-security InRelease [97,5 kB]            
Hit:4 http://packages.microsoft.com/repos/vscode stable InRelease                     
Hit:5 https://dl.winehq.org/wine-builds/ubuntu disco InRelease                        
Hit:6 http://ppa.launchpad.net/hvr/ghc/ubuntu disco InRelease                         
Fetched 97,5 kB in 1s (132 kB/s)                          
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up-to-date.

答案1

尽管问题不再可重现,但我认为,如果您尝试安装具有严重不兼容性的软件包,您可能会收到此类消息 - 例如,如果您尝试安装的 Wine 版本需要卸载 KDE 桌面,您会收到一条警告,提示您将卸载依赖于 KDE 桌面的所有内容 - 这可能是一百个或更多软件包的列表,并且由于级联依赖关系,可能包含您不会想到属于桌面环境一部分的软件包。

例如,当您尝试安装依赖于某些库的较新或较旧版本的软件包时,可能会发生这种大规模卸载——尤其是当依赖关系被写入一方或另一方的单个特定版本时。反过来,如果您尝试进行太多安装(尤其是主要安装),而没有至少注销并重新登录 Ubuntu(通常不需要重新启动硬件),则可能会发生这种情况。

相关内容