You are not logged in.

#1 2023-01-03 06:17:08

backspace
Member
Registered: 2023-01-03
Posts: 2

Cannot uninstall ufw or any package

I try to uninstall UFW with the "sudo pacman -r ufw" and it spits out:

error: failed to initialize alpm library:
(root: ufw, dbpath: ufw/var/lib/pacman/)
could not find or read directory

I tried to uninstall other packages and it gives me the same error but changing the path to "example/var/lib/pacman". I tried creating the folder and running it again then gives me a new error:

warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
warning: database file for 'community' does not exist (use '-Sy' to download)
warning: database file for 'multilib' does not exist (use '-Sy' to download)
warning: database file for 'chaotic-aur' does not exist (use '-Sy' to download)

I am trying to uninstal ufw in the hopes that it will fix my wireguard vpn not connecting when i set it up through network connections  (kde) after i tried and failed through the cli and this issue showed up. Sorry for the little information I am new to posting on the forums, any help would be much appreciated.

Offline

#2 2023-01-03 06:18:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Cannot uninstall ufw or any package

Read man pacman: there is no `-r` option. Captialisation matters.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2023-01-03 06:20:38

backspace
Member
Registered: 2023-01-03
Posts: 2

Re: Cannot uninstall ufw or any package

I literally read other posts saying the sam thing and i thought that there was no way that i was not capitalizing it wrong, I have been using arch for almost a year and this is the most embarrassing moment of my life. Thank you for the quick reply though, it fixed my issue.

Last edited by backspace (2023-01-03 06:21:41)

Offline

#4 2023-01-03 06:22:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Cannot uninstall ufw or any package

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.

Or, you could ask a mod to delete it so that it is a not part of the premanent record...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB