Ubuntu系统安装VirtualBox遇阻,执行sudo apt -f install后移除virtualbox-7.0且提示needrestart被跳过的问题求助
Ubuntu系统安装VirtualBox遇阻,执行sudo apt -f install后移除virtualbox-7.0且提示needrestart被跳过的问题求助
各位好,我在Ubuntu系统上安装VirtualBox的时候碰上个棘手的问题。原本是想修复依赖问题,执行了sudo apt -f install命令,结果没想到系统直接把virtualbox-7.0给卸载了,最后还出现了needrestart is being skipped since pkg has failed的提示。
下面是完整的终端操作输出:
duo@duo-server-1:~/Downloads$ sudo apt -f install Reading package lists... Done Building dependency tree... Done Reading state information... Done Correcting dependencies... Done The following packages will be REMOVED: virtualbox-7.0 • upgraded, • newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 220 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 199368 files and directories currently installed.) Removing virtualbox-7.0 (7.0.8-156879-Ubuntu-jammy) Processing triggers for hicolor-icon-theme (0.17-2) Processing triggers for gnome-menus (3.36.0-lubuntu3) Processing triggers for shared-mime-info (2.1-2) Processing triggers for mailcap (3.70+mulubuntul) Processing triggers for desktop-file-utils (0.26-lubuntu3) needrestart is being skipped since pkg has failed duo@duo-server-1:~/Downloads$
现在我想搞清楚几个问题:
- 为什么执行修复依赖的命令会导致VirtualBox被卸载?
- 这个
needrestart的错误提示是什么意思,会不会影响系统稳定性? - 我该怎么重新正常安装VirtualBox呢?
麻烦各位大佬帮忙分析下,谢谢啦!
备注:内容来源于stack exchange,提问作者CBD
相关产品推荐
相关产品推荐

