You are not logged in.

#1 2022-06-06 10:50:09

wmax
Member
Registered: 2022-06-06
Posts: 4

Pacman -Syu error

I'm trying to upgrade my system but its  coming up with errors.


warning: could not get file information for usr/share/beef/Gemfile.lock
error: hook /etc/pacman.d/hooks/gdm.hook line 9: invalid option /usr/lib/systemd/system/gdm.service to work around bug
error: failed to commit transaction (failed to run transaction hooks)
Errors occurred, no packages were upgraded.


I've tried multiple different solutions that I've found but nothing is solving it.

Last edited by wmax (2022-06-06 10:50:38)

Offline

#2 2022-06-06 11:31:00

bjornp_
Member
Registered: 2020-12-31
Posts: 42

Re: Pacman -Syu error

Could you share your complete `/etc/pacman.d/hooks/gdm.hook' file?


Fun fact: I actually have no clue what I'm doing

Offline

#3 2022-06-06 11:32:35

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 1,928

Re: Pacman -Syu error

Where does '/etc/pacman.d/hooks/gdm.hook' come from?

Offline

#4 2022-06-06 12:02:41

wmax
Member
Registered: 2022-06-06
Posts: 4

Re: Pacman -Syu error

this is /etc/pacman.d/hooks/gdm.hook

[Trigger]
Operation=Install
Operation=Upgrade
Type=Package
Target=gdm

[Action]
Description=Adds a small delay to
/usr/lib/systemd/system/gdm.service to work around bug
Depends=coreutils
When=PostTransaction
Exec=/usr/bin/sed -i '/^\[service]/a
ExecStartPre=\/bin\/sleep 2'
/usr/lib/systemd/system/gdm.service

i made this when my boot up was coming up as a black screen, im still not sure if this was the fix or not though

Offline

#5 2022-06-06 12:08:25

Scimmia
Fellow
Registered: 2012-09-01
Posts: 9,290

Re: Pacman -Syu error

It's actually wrapped like that in the file? Yeah, that obviously isn't good.

Most people will add their display driver to the initramfs to get around those issues.

Offline

#6 2022-06-06 12:14:44

wmax
Member
Registered: 2022-06-06
Posts: 4

Re: Pacman -Syu error

ok so should i get rid of the hook then?

if i do im still going to have this error:
warning: could not get file information for usr/share/beef/Gemfile.lock

Offline

#7 2022-06-06 12:24:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 9,290

Re: Pacman -Syu error

Or fix it, the error should be obvious. But yeah, early kms is a better solution.

Warnings are not errors. That file (which is not from the repos, no idea what package has it) got deleted for some reason.

Offline

#8 2022-06-06 12:27:30

wmax
Member
Registered: 2022-06-06
Posts: 4

Re: Pacman -Syu error

alright thanks appreciate the help

Offline

Board footer

Powered by FluxBB