今天在学校,我用安装了 kubuntu 的笔记本电脑工作。我想让第二台显示器工作。它无法被识别(它是一台较旧的 4:3 VGA 平板显示器),所以我猜想显卡驱动程序出了问题。
“附加驱动程序”中未找到任何驱动程序,因此我决定清除并重新安装新驱动程序。我使用了:
sudo apt-get remove --purge nvidia-*
这关闭了 KDE 桌面。然后我使用:
sudo apt-get install nvidia-current
进而
sudo apt-get install kubuntu-desktop
(意识到第一个命令卸载它之后)
重启后,它卡在 800x600。我明天要重新安装 ubuntu 12.04(因为我发现 ubuntu 安装往往与专有驱动程序配合得很好)但我仍然想了解 kubuntu 到底出了什么问题。为什么清除卸载 kubuntu-desktop?
答案1
出色地 - ;)
1)您的命令:
sudo apt-get remove --purge nvidia-*
正在删除所有带有“nvidia”部分的软件包。
关于正则表达式:
2)你可以模拟事物:
man apt-get
-s, --simulate, --just-print, --dry-run, --recon, --no-act
No action; perform a simulation of events that would occur but do not actually change the system.
模拟,就在这里
模拟一下,在这里,(K)ubuntu 13.04,KDE 4.10.5,我有 AMD 而不是 Nvidia:
:~$ apt-get -s remove --purge nvidia-*
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
glx-alternative-mesa* glx-diversions* kde-window-manager* kde-workspace* kde-workspace-dev*
libkwinactivenvidiahack4* libkwinnvidiahack4* nvidia-installer-cleanup*
0 upgraded, 0 newly installed, 8 to remove and 0 not upgraded.
Purg glx-alternative-mesa [0.2.90]
Purg glx-diversions [0.2.90]
Purg kde-workspace [4:4.10.5-0ubuntu0.1]
Purg kde-window-manager [4:4.10.5-0ubuntu0.1]
Purg kde-workspace-dev [4:4.10.5-0ubuntu0.1]
Purg libkwinactivenvidiahack4 [4:4.10.5-0ubuntu0.1]
Purg libkwinnvidiahack4 [4:4.10.5-0ubuntu0.1]
Purg nvidia-installer-cleanup [20120731+1]
整体输出:http://pastebin.com/t3Nwca8f
为什么要删除 kde-window-manager
kde-window-manager 取决于
:~$ apt-cache show kde-window-manager
...
Depends:..libkwinnvidiahack4,...
为何 kubuntu-desktop 将被删除 (如果已安装)
kubuntu-desktop 取决于
:~$ apt-cache show kubuntu-desktop
Depends:...kde-window-manager, ...