我是 Ubuntu 新手。我查看了这里无数的帖子,但还没有找到任何有用的方法。
我目前正在上一些 Linux 课程,所以我会在这方面做得更好(希望如此):)。
无论如何,我一直在尝试安装 Nvidia 驱动程序,但没有成功。我收到一条错误消息,提示“软件包系统已损坏”。它要求我运行apt-get install -f
。因此,当我运行此命令时:
sudo apt-get install -f
我收到以下输出:
The following packages were automatically installed and are no longer required:
libnvidia-cfg1-390 libnvidia-common-390 libnvidia-compute-390
libnvidia-compute-390:i386 libnvidia-decode-390 libnvidia-decode-390:i386
libnvidia-encode-390 libnvidia-encode-390:i386 libnvidia-fbc1-390
libnvidia-fbc1-390:i386 libnvidia-gl-390 libnvidia-ifr1-390 libvdpau1
libwayland-client0:i386 libwayland-server0:i386 libxnvctrl0
mesa-vdpau-drivers nvidia-compute-utils-390 nvidia-dkms-390
nvidia-kernel-common-390 nvidia-kernel-source-390 nvidia-prime
nvidia-settings nvidia-utils-390 pkg-config screen-resolution-extra
vdpau-driver-all xserver-xorg-video-nvidia-390
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libnvidia-gl-390
The following NEW packages will be installed:
libnvidia-gl-390
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
15 not fully installed or removed.
Need to get 0 B/14.3 MB of archives.
After this operation, 73.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 168111 files and directories currently installed.)
Preparing to unpack .../libnvidia-gl-390_390.77-0ubuntu0.18.04.1_amd64.deb ...
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-390_390.77-0ubuntu0.18.04.1_amd64.deb (--unpack):
new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-gl-390_390.77-0ubuntu0.18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
任何帮助都将不胜感激。谢谢。
答案1
重新开始。安装 Ubuntu 时甚至无需考虑显卡。安装完成后,只需选择附加驱动程序来自优先部分。
软件将自动探测并确认 NVIDIA 硬件。然后您只需从显示的菜单中选择它并单击申请。请耐心等待,因为下载和安装的文件相当大。完成后,重新启动。
之后,你会发现NVIDIA 设置软件中的行政Ubuntu 部分。
喝点茶。