Hello! Thank you, but I get this error when installing gcc11 following this tutorial:
hugo@hugo-pc:~$ sudo -i
root@hugo-pc:~# apt install build-essential
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
build-essential is already the newest version (12.9ubuntu3).
build-essential set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nvidia-dkms-525 (525.60.13-0ubuntu1) …
update-initramfs: deferring update (trigger activated)
A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau
from loading. This can be reverted by deleting the following file:
/etc/modprobe.d/nvidia-graphics-drivers.conf
A new initrd image has also been created. To revert, please regenerate your
initrd by running the following command after deleting the modprobe.d file:
/usr/sbin/initramfs -u
*** Reboot your computer and verify that the NVIDIA graphics driver can ***
*** be loaded. ***
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Removing old nvidia-525.60.13 DKMS files…
Deleting module nvidia-525.60.13 completely from the DKMS tree.
Loading new nvidia-525.60.13 DKMS files…
Building for 5.15.0-57-generic
Building for architecture x86_64
Building initial module for 5.15.0-57-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/nvidia-dkms-525.0.crash’
Error! Bad return status for module build on kernel: 5.15.0-57-generic (x86_64)
Consult /var/lib/dkms/nvidia/525.60.13/build/make.log for more information.
dpkg: error processing package nvidia-dkms-525 (–configure):
installed nvidia-dkms-525 package post-installation script subprocess returned error exit status 10
Processing triggers for initramfs-tools (0.140ubuntu13.1) …
update-initramfs: Generating /boot/initrd.img-5.15.0-57-generic
Errors were encountered while processing:
nvidia-dkms-525
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@hugo-pc:~# sudo apt -y install gcc-11
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
gcc-11 is already the newest version (11.3.0-1ubuntu1~22.04).
gcc-11 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nvidia-dkms-525 (525.60.13-0ubuntu1) …
update-initramfs: deferring update (trigger activated)
A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau
from loading. This can be reverted by deleting the following file:
/etc/modprobe.d/nvidia-graphics-drivers.conf
A new initrd image has also been created. To revert, please regenerate your
initrd by running the following command after deleting the modprobe.d file:
/usr/sbin/initramfs -u
*** Reboot your computer and verify that the NVIDIA graphics driver can ***
*** be loaded. ***
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Removing old nvidia-525.60.13 DKMS files…
Deleting module nvidia-525.60.13 completely from the DKMS tree.
Loading new nvidia-525.60.13 DKMS files…
Building for 5.15.0-57-generic
Building for architecture x86_64
Building initial module for 5.15.0-57-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/nvidia-dkms-525.0.crash’
Error! Bad return status for module build on kernel: 5.15.0-57-generic (x86_64)
Consult /var/lib/dkms/nvidia/525.60.13/build/make.log for more information.
dpkg: error processing package nvidia-dkms-525 (–configure):
installed nvidia-dkms-525 package post-installation script subprocess returned error exit status 10
Processing triggers for initramfs-tools (0.140ubuntu13.1) …
update-initramfs: Generating /boot/initrd.img-5.15.0-57-generic
Errors were encountered while processing:
nvidia-dkms-525
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@hugo-pc:~# sudo update-alternatives --config gcc
update-alternatives: error: no alternatives for gcc