You are not logged in.
Pages: 1
I'm not able to run anything with pacman because anytime I do I get this error.
error: could not open directory: /etc/pacman.d/hooks/: Not a directory
error: failed to commit transaction (failed to run transaction hooks)
Thank you in advance
Offline
If /etc/pacman.d/hooks is not a directory what is it? `stat /etc/pacman.d/hooks` I would suggest whatever it is at least renaming it.
Last edited by loqs (2023-12-04 21:42:56)
Offline
If /etc/pacman.d/hooks is not a directory what is it? `stat /etc/pacman.d/hooks` I would suggest whatever it is at least renaming it.
thanks for the quick response, yeah it is /etc/pacman.d/hooks, that being said i am i complete noob at linux and im not sure how to switch the two
Offline
See mv.1
Offline
See mv.1
$ mv /etc/pacman.d/hooks /etc/pacman.d/hooks/
mv: cannot stat '/etc/pacman.d/hooks/': Not a directory
stat /etc/pacman.d/hooks
File: /etc/pacman.d/hooks
Size: 497 Blocks: 8 IO Block: 4096 regular file
Device: 8,3 Inode: 2374367 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ resu) Gid: ( 1000/ resu)
Access: 2023-12-03 14:53:13.213926112 -0500
Modify: 2023-12-03 13:06:13.738048998 -0500
Change: 2023-12-03 13:31:47.818009427 -0500
Birth: 2023-12-03 13:06:13.738048998 -0500
Last edited by user9344 (2023-12-05 00:46:33)
Offline
mv: cannot stat '/etc/pacman.d/hooks/': Not a directory
So you didn't read the mv manpage?
cat /etc/pacman.d/hooks
sudo mv /etc/pacman.d/hooks ~/whateverthefuckthatwas
i am i complete noob at linux
And so what arch derivate are you using?
Offline
mv: cannot stat '/etc/pacman.d/hooks/': Not a directory
So you didn't read the mv manpage?
cat /etc/pacman.d/hooks sudo mv /etc/pacman.d/hooks ~/whateverthefuckthatwas
i am i complete noob at linux
And so what arch derivate are you using?
i did read the page, but i dont understand how im supposed to rename hooks to hooks/ or if i need to do something else
also im not on a derivate of arch
Last edited by user9344 (2023-12-08 23:24:06)
Offline
To rename something with mv you should write "mv old-name new-name".
Offline
To rename something with mv you should write "mv old-name new-name".
Sorry, I wrote it without thinking. Don't think it will help in turning file into directory.
Offline
also im not on a derivate of arch
You don't know how mv works and there's some bogus file that's not supposed to be there at all.
There's no way in hell you ever managed to install archlinux yourself.
This is a derivate or you used a stupid script or followed some idiot on youtube to install the system. Same thing.
i dont understand how im supposed to rename hooks to hooks/
You cannot move/rename files into being directories, something the mv error also made overly clear.
So mv it into some other file and post the file contents so maybe we can get an idea whatever the fuck that was to begin with.
The /etc/pacman.d/hooks/ directory doesn't have to be there and isn't by default.
Offline
Pages: 1