You are not logged in.

#1 2025-12-03 03:02:10

NominalSum
Member
Registered: 2025-12-02
Posts: 58

[SOLVED]Got an error trying to install nvidia drivers

I got this error and do not under stand it. I am trying to follow the wiki but have not been successful. I am trying to get gaming running on my laptop that has an nvidia 4070 and decided to try Arch this time

Thanks for any help.

(3/3) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
/etc/mkinitcpio.conf: line 82: unexpected EOF while looking for matching `"'
==> ERROR: Failed to read configuration '/etc/mkinitcpio.conf'
error: command failed to execute correctly

Last edited by NominalSum (2025-12-03 05:15:28)

Offline

#2 2025-12-03 03:03:21

system72
Member
Registered: 2025-11-22
Posts: 572
Website

Re: [SOLVED]Got an error trying to install nvidia drivers

attach that file

curl -F file=@- 0x0.st < /etc/mkinitcpio.conf

Last edited by system72 (2025-12-03 03:03:38)

Offline

#3 2025-12-03 03:03:25

NominalSum
Member
Registered: 2025-12-02
Posts: 58

Re: [SOLVED]Got an error trying to install nvidia drivers

This is the whole input and output.?

[backalley@archlinux ~]$ lspci -k -d ::03xx
00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-S UHD Graphics (rev 04)
        Subsystem: CLEVO/KAPOK Computer Device a650
        Kernel driver in use: i915
        Kernel modules: i915, xe
01:00.0 VGA compatible controller: NVIDIA Corporation AD106M [GeForce RTX 4070 Max-Q / Mobile] (rev a1)
        Subsystem: CLEVO/KAPOK Computer Device a671
        Kernel driver in use: nouveau
        Kernel modules: nouveau, nvidia_drm, nvidia
[backalley@archlinux ~]$ lsmod |grep -i "nvi"
[backalley@archlinux ~]$ sudo pacman -Syu
[sudo] password for backalley: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
[backalley@archlinux ~]$ sudo pacman -S linux-headers
warning: linux-headers-6.17.9.arch1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux-headers-6.17.9.arch1-1

Total Installed Size:  251.56 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                               [################################] 100%
(1/1) checking package integrity                             [################################] 100%
(1/1) loading package files                                  [################################] 100%
(1/1) checking for file conflicts                            [################################] 100%
(1/1) checking available disk space                          [################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod nvidia/580.105.08 -k 6.17.9-arch1-1
:: Processing package changes...
(1/1) reinstalling linux-headers                             [################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Install DKMS modules
==> dkms install --no-depmod nvidia/580.105.08 -k 6.17.9-arch1-1
==> depmod 6.17.9-arch1-1
[backalley@archlinux ~]$ sudo pacman -S nvidia-utils nvidia-settings
warning: nvidia-utils-580.105.08-5 is up to date -- reinstalling
warning: nvidia-settings-580.105.08-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) nvidia-settings-580.105.08-1  nvidia-utils-580.105.08-5

Total Installed Size:  902.09 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring                               [################################] 100%
(2/2) checking package integrity                             [################################] 100%
(2/2) loading package files                                  [################################] 100%
(2/2) checking for file conflicts                            [################################] 100%
(2/2) checking available disk space                          [################################] 100%
:: Processing package changes...
(1/2) reinstalling nvidia-utils                              [################################] 100%
(2/2) reinstalling nvidia-settings                           [################################] 100%
:: Running post-transaction hooks...
(1/8) Creating system user accounts...
(2/8) Reloading system manager configuration...
(3/8) Restarting marked services...
(4/8) Reloading device manager configuration...
(5/8) Arming ConditionNeedsUpdate...
(6/8) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
/etc/mkinitcpio.conf: line 82: unexpected EOF while looking for matching `"'
==> ERROR: Failed to read configuration '/etc/mkinitcpio.conf'
error: command failed to execute correctly
(7/8) Reloading system bus configuration...
(8/8) Updating the desktop file MIME type cache...
[backalley@archlinux ~]$ sudo pacman -S nvidia-dkms
warning: nvidia-dkms-580.105.08-5 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) nvidia-dkms-580.105.08-5

Total Installed Size:  117.77 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                               [################################] 100%
(1/1) checking package integrity                             [################################] 100%
(1/1) loading package files                                  [################################] 100%
(1/1) checking for file conflicts                            [################################] 100%
(1/1) checking available disk space                          [################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod nvidia/580.105.08 -k 6.17.9-arch1-1
:: Processing package changes...
(1/1) reinstalling nvidia-dkms                               [################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Install DKMS modules
==> dkms install --no-depmod nvidia/580.105.08 -k 6.17.9-arch1-1
==> depmod 6.17.9-arch1-1
(3/3) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
/etc/mkinitcpio.conf: line 82: unexpected EOF while looking for matching `"'
==> ERROR: Failed to read configuration '/etc/mkinitcpio.conf'
error: command failed to execute correctly
[backalley@archlinux ~]$ 

Offline

#4 2025-12-03 03:04:46

killertofus
Member
Registered: 2025-02-10
Posts: 182

Re: [SOLVED]Got an error trying to install nvidia drivers

https://github.com/archlinux/archinstall/pull/3902 change your /etc/mkinitcpio.conf to remove that


I Have Linux Perl Can i Download Gnome???

Offline

#5 2025-12-03 03:13:45

NominalSum
Member
Registered: 2025-12-02
Posts: 58

Re: [SOLVED]Got an error trying to install nvidia drivers

system72 wrote:

attach that file

curl -F file=@- 0x0.st < /etc/mkinitcpio.conf

I input that into the terminal but there was no output.

Offline

#6 2025-12-03 03:15:05

system72
Member
Registered: 2025-11-22
Posts: 572
Website

Re: [SOLVED]Got an error trying to install nvidia drivers

NominalSum wrote:
system72 wrote:

attach that file

curl -F file=@- 0x0.st < /etc/mkinitcpio.conf

I input that into the terminal but there was no output.

just use code tags and paste it inside of those then

Offline

#7 2025-12-03 03:18:58

NominalSum
Member
Registered: 2025-12-02
Posts: 58

Re: [SOLVED]Got an error trying to install nvidia drivers

killertofus wrote:

https://github.com/archlinux/archinstall/pull/3902 change your /etc/mkinitcpio.conf to remove that

I am new to getting this deep into computing and do not understand where to start looking for how to make those changes. I am googling and trying to suss it out, but if you have any resources that may explain it more thatd be awesome. Also, thank you because it does seem like what I need to figure out.

Offline

#8 2025-12-03 03:20:19

NominalSum
Member
Registered: 2025-12-02
Posts: 58

Re: [SOLVED]Got an error trying to install nvidia drivers

system72 wrote:
NominalSum wrote:
system72 wrote:

attach that file

curl -F file=@- 0x0.st < /etc/mkinitcpio.conf

I input that into the terminal but there was no output.

just use code tags and paste it inside of those then


This is my output to that line of code .

[backalley@archlinux ~]$ curl -F file=@- 0x0.st < /etc/mkinitcpio.conf
[backalley@archlinux ~]$ 

Offline

#9 2025-12-03 03:21:42

system72
Member
Registered: 2025-11-22
Posts: 572
Website

Re: [SOLVED]Got an error trying to install nvidia drivers

no, paste the files content inside of the code tags. anyways since the problem is related to archinstall this thread belongs in the archinstaller subforum

to fix your issue simply open the /etc/mkinitcpio.conf file with a text editor with root privs and delete the stray characters at the end of the file
here you go https://wiki.archlinux.org/title/Nano

Offline

#10 2025-12-03 03:31:23

NominalSum
Member
Registered: 2025-12-02
Posts: 58

Re: [SOLVED]Got an error trying to install nvidia drivers

Arch is installed. Having issues with steam games and saw that nouvea drivers were going and set out to fix that. Which got me here. Is nano like vim? I have edited something with vim before but when I tried to open the curl thing I dont thin k anything happened.

Sorry if Im slow at this. I did get the install running though, so I got that going, which is nice.

Last edited by NominalSum (2025-12-03 03:33:56)

Offline

#11 2025-12-03 03:33:29

system72
Member
Registered: 2025-11-22
Posts: 572
Website

Re: [SOLVED]Got an error trying to install nvidia drivers

if you want to use vim then go ahead, the process would be the same.

first open the file:

sudo vim /etc/mkinitcpio.conf

use shift+g to go to the bottom, use dd to delete that line, shift+zz to save

if the EOF only contains the 'o"'

Offline

#12 2025-12-03 03:39:58

NominalSum
Member
Registered: 2025-12-02
Posts: 58

Re: [SOLVED]Got an error trying to install nvidia drivers

system72 wrote:

if you want to use vim then go ahead, the process would be the same.

first open the file:

sudo vim /etc/mkinitcpio.conf

use shift+g to go to the bottom, use dd to delete that line, shift+zz to save

if the EOF only contains the 'o"'


Here is whats in vim. I only see one o" 

Edit. Trying top figure out how to paste the thing I copied in vim into the message

Last edited by NominalSum (2025-12-03 03:41:59)

Offline

#13 2025-12-03 03:42:40

system72
Member
Registered: 2025-11-22
Posts: 572
Website

Re: [SOLVED]Got an error trying to install nvidia drivers

then delete it using the key combo d+d and then shift+z+z to save

if you cant figure it out then use this:

sudo sed -i "s/o\"//g" /etc/mkinitcpio.conf

Last edited by system72 (2025-12-03 03:46:17)

Offline

#14 2025-12-03 03:48:46

NominalSum
Member
Registered: 2025-12-02
Posts: 58

Re: [SOLVED]Got an error trying to install nvidia drivers

That worked Thank you

Offline

#15 2025-12-03 04:01:22

system72
Member
Registered: 2025-11-22
Posts: 572
Website

Re: [SOLVED]Got an error trying to install nvidia drivers

edit the original posts title and prefix [solved] if your issue has been fixed

Offline

Board footer

Powered by FluxBB